[Git][haskell-team/DHG_packages][master] cmark-gfm: Fix for big-endian arches

Ilias Tsitsimpis gitlab at salsa.debian.org
Wed Jun 27 11:53:16 BST 2018


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


Commits:
274bd14a by Ilias Tsitsimpis at 2018-06-27T13:32:52+03:00
cmark-gfm: Fix for big-endian arches

- - - - -


3 changed files:

- p/haskell-cmark-gfm/debian/changelog
- + p/haskell-cmark-gfm/debian/patches/fix-big-endian
- + p/haskell-cmark-gfm/debian/patches/series


Changes:

=====================================
p/haskell-cmark-gfm/debian/changelog
=====================================
--- a/p/haskell-cmark-gfm/debian/changelog
+++ b/p/haskell-cmark-gfm/debian/changelog
@@ -1,8 +1,12 @@
-haskell-cmark-gfm (0.1.3-2) UNRELEASED; urgency=medium
+haskell-cmark-gfm (0.1.3-2) unstable; urgency=medium
 
+  [ Clint Adams ]
   * Set Rules-Requires-Root to no.
 
- -- Clint Adams <clint at debian.org>  Sun, 06 May 2018 22:09:25 -0400
+  [ Ilias Tsitsimpis ]
+  * Apply fix for big-endian arches (Closes: #897001)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Wed, 27 Jun 2018 13:20:22 +0300
 
 haskell-cmark-gfm (0.1.3-1) unstable; urgency=low
 


=====================================
p/haskell-cmark-gfm/debian/patches/fix-big-endian
=====================================
--- /dev/null
+++ b/p/haskell-cmark-gfm/debian/patches/fix-big-endian
@@ -0,0 +1,36 @@
+Description: Use correct type for C enumerations
+ The storage type of an enum can be any integer type big enough to cover
+ the required range. Use the '#type' keyword of c2hs to derive the
+ correct storage type for the cmark_node_type enumeration.
+ .
+ Note that the previous use of CUShort produced incorrect results in big
+ endian architectures where 'sizeof(cmark_node_type) > sizeof(CUShort)'.
+Author: Ilias Tsitsimpis <iliastsi at debian.org>
+Bug: https://github.com/kivikakk/cmark-gfm-hs/issues/6
+Bug-Debian: https://bugs.debian.org/897001
+
+Index: b/CMarkGFM.hsc
+===================================================================
+--- a/CMarkGFM.hsc
++++ b/CMarkGFM.hsc
+@@ -640,16 +640,16 @@ foreign import ccall "cmark_extension_ap
+     c_cmark_parser_attach_syntax_extension :: ParserPtr -> ExtensionPtr -> IO ()
+ 
+ foreign import ccall "strikethrough.h &CMARK_NODE_STRIKETHROUGH"
+-    c_CMARK_NODE_STRIKETHROUGH :: Ptr CUShort
++    c_CMARK_NODE_STRIKETHROUGH :: Ptr #type cmark_node_type
+ 
+ foreign import ccall "table.h &CMARK_NODE_TABLE"
+-    c_CMARK_NODE_TABLE :: Ptr CUShort
++    c_CMARK_NODE_TABLE :: Ptr #type cmark_node_type
+ 
+ foreign import ccall "table.h &CMARK_NODE_TABLE_ROW"
+-    c_CMARK_NODE_TABLE_ROW :: Ptr CUShort
++    c_CMARK_NODE_TABLE_ROW :: Ptr #type cmark_node_type
+ 
+ foreign import ccall "table.h &CMARK_NODE_TABLE_CELL"
+-    c_CMARK_NODE_TABLE_CELL :: Ptr CUShort
++    c_CMARK_NODE_TABLE_CELL :: Ptr #type cmark_node_type
+ 
+ foreign import ccall "core-extensions.h cmarkextensions_get_table_columns"
+     c_cmarkextensions_get_table_columns :: NodePtr -> IO CUShort


=====================================
p/haskell-cmark-gfm/debian/patches/series
=====================================
--- /dev/null
+++ b/p/haskell-cmark-gfm/debian/patches/series
@@ -0,0 +1 @@
+fix-big-endian



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

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/274bd14a347d197adeffea9310e0b04b2c771298
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/20180627/952a76aa/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list