[Git][haskell-team/DHG_packages][master] yaml: Backport upstream patch to fix tests on 32-bit machines

Ilias Tsitsimpis gitlab at salsa.debian.org
Tue Oct 23 14:40:00 BST 2018


Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
caef3515 by Ilias Tsitsimpis at 2018-10-23T13:32:48Z
yaml: Backport upstream patch to fix tests on 32-bit machines

- - - - -


3 changed files:

- p/haskell-yaml/debian/changelog
- + p/haskell-yaml/debian/patches/fix-tests-on-32-bit
- p/haskell-yaml/debian/patches/series


Changes:

=====================================
p/haskell-yaml/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-yaml (0.8.32-4) unstable; urgency=medium
+
+  * Backport upstream patch to fix tests on 32-bit machines
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Tue, 23 Oct 2018 16:31:21 +0300
+
 haskell-yaml (0.8.32-3) unstable; urgency=medium
 
   * Backport upstream patch to build against system libyaml


=====================================
p/haskell-yaml/debian/patches/fix-tests-on-32-bit
=====================================
@@ -0,0 +1,33 @@
+From 256c06dd7ddcd60018d0b02a06f991413fe2d80b Mon Sep 17 00:00:00 2001
+From: Michael Snoyman <michael at snoyman.com>
+Date: Sun, 30 Sep 2018 13:56:46 +0300
+Subject: [PATCH] Use Int64 instead of Int #158
+
+---
+ ChangeLog.md          | 1 +
+ test/Data/YamlSpec.hs | 5 +++--
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+Index: b/test/Data/YamlSpec.hs
+===================================================================
+--- a/test/Data/YamlSpec.hs
++++ b/test/Data/YamlSpec.hs
+@@ -9,6 +9,7 @@ module Data.YamlSpec (main, spec) where
+ 
+ import qualified Text.Libyaml as Y
+ import qualified Data.ByteString.Char8 as B8
++import Data.Int (Int64)
+ 
+ import Test.HUnit hiding (Test, path)
+ 
+@@ -190,8 +191,8 @@ spec = do
+       go "0o123" (83 :: Int)
+       go "0xC" (12 :: Int)
+       go "0xc" (12 :: Int)
+-      go "0xdeadBEEF" (3735928559 :: Int)
+-      go "0xDEADBEEF" (3735928559 :: Int)
++      go "0xdeadBEEF" (3735928559 :: Int64)
++      go "0xDEADBEEF" (3735928559 :: Int64)
+       go "1.23015e+3" (1230.15 :: Scientific)
+       go "12.3015e+02" (1230.15 :: Scientific)
+       go "1230.15" (1230.15 :: Scientific)


=====================================
p/haskell-yaml/debian/patches/series
=====================================
@@ -1 +1,2 @@
 fix-system-libyaml
+fix-tests-on-32-bit



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/caef351577741358caca4b46bcf36b3a038fcf6f

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/caef351577741358caca4b46bcf36b3a038fcf6f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20181023/764b6708/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list