[Pkg-haskell-commits] darcs: haskell-skein: Add a flag to manually set endianness and poke this in the rules file. (Closes: #654254)

Iain Lane laney at debian.org
Mon Jan 2 21:55:31 UTC 2012


Mon Jan  2 21:52:35 UTC 2012  Iain Lane <laney at debian.org>
  * Add a flag to manually set endianness and poke this in the rules file. (Closes: #654254)
  Ignore-this: e91b7995b5e6a3cf8041a193bc7eae46

    M ./changelog +7
    A ./patches/
    A ./patches/Add-endianness-flag
    A ./patches/series
    M ./rules +8

Mon Jan  2 21:52:35 UTC 2012  Iain Lane <laney at debian.org>
  * Add a flag to manually set endianness and poke this in the rules file. (Closes: #654254)
  Ignore-this: e91b7995b5e6a3cf8041a193bc7eae46
diff -rN -u old-haskell-skein//changelog new-haskell-skein//changelog
--- old-haskell-skein//changelog	2012-01-02 21:55:31.322189894 +0000
+++ new-haskell-skein//changelog	2012-01-02 21:55:31.346693555 +0000
@@ -1,3 +1,10 @@
+haskell-skein (0.1.0.3-2) UNRELEASED; urgency=low
+
+  * Add a flag to manually set endianness and poke this in the rules file.
+    (Closes: #654254)
+
+ -- Iain Lane <laney at debian.org>  Mon, 02 Jan 2012 18:10:42 +0000
+
 haskell-skein (0.1.0.3-1) unstable; urgency=low
 
   * New upstream version.
diff -rN -u old-haskell-skein//patches/Add-endianness-flag new-haskell-skein//patches/Add-endianness-flag
--- old-haskell-skein//patches/Add-endianness-flag	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-skein//patches/Add-endianness-flag	2012-01-02 21:55:31.342197251 +0000
@@ -0,0 +1,27 @@
+Description: Add a flag to manually set endianness
+Author: Iain Lane <laney at debian.org>
+
+--- haskell-skein-0.1.0.3.orig/skein.cabal
++++ haskell-skein-0.1.0.3/skein.cabal
+@@ -54,6 +54,9 @@ Flag reference
+     Description: Use the reference implementation instead of the optimized one.
+     Default: False
+ 
++Flag be
++    Description: Swap byte ordering for big-endian arches
++    Default: False
+ 
+ Library
+     Hs-Source-Dirs: src
+@@ -81,9 +84,9 @@ Library
+     Includes:
+         skein.h
+ 
+-    if arch(i386) || arch(x86_64)
++    if arch(i386) || arch(x86_64) || !flag(be)
+         CC-options: "-DSKEIN_NEED_SWAP=0"
+-    if arch(ppc) || arch(sparc)
++    if arch(ppc) || arch(sparc) || flag(be) 
+         CC-options: "-DSKEIN_NEED_SWAP=1"
+ 
+     if flag(reference)
diff -rN -u old-haskell-skein//patches/series new-haskell-skein//patches/series
--- old-haskell-skein//patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-skein//patches/series	2012-01-02 21:55:31.342197251 +0000
@@ -0,0 +1 @@
+Add-endianness-flag
diff -rN -u old-haskell-skein//rules new-haskell-skein//rules
--- old-haskell-skein//rules	2012-01-02 21:55:31.322189894 +0000
+++ new-haskell-skein//rules	2012-01-02 21:55:31.346693555 +0000
@@ -2,3 +2,11 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
+
+DEB_HOST_ARCH_ENDIAN := $(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
+
+ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
+	DEB_SETUP_GHC_CONFIGURE_ARGS := -fbe
+else
+	DEB_SETUP_GHC_CONFIGURE_ARGS := -f-be
+endif





More information about the Pkg-haskell-commits mailing list