[DHG_packages] 02/27: darcs: Try to improve powerpc patch

Joachim Breitner nomeata at moszumanska.debian.org
Thu Jul 16 13:39:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

nomeata pushed a commit to branch master
in repository DHG_packages.

commit f79385285cd949beb34ee04efc1215c16286d779
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Wed Jul 15 20:06:12 2015 +0200

    darcs: Try to improve powerpc patch
---
 p/darcs/debian/changelog              |  6 ++++++
 p/darcs/debian/patches/Num-constraint | 31 ++++++++++++++++++++++++++++++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/p/darcs/debian/changelog b/p/darcs/debian/changelog
index 403b5ad..9544c2b 100644
--- a/p/darcs/debian/changelog
+++ b/p/darcs/debian/changelog
@@ -1,3 +1,9 @@
+darcs (2.10.1-3) unstable; urgency=medium
+
+  * Try to improve powerpc patch 
+
+ -- Joachim Breitner <nomeata at debian.org>  Wed, 15 Jul 2015 20:05:57 +0200
+
 darcs (2.10.1-2) unstable; urgency=medium
 
   * New patch, trying to fix buiding on powerpc 
diff --git a/p/darcs/debian/patches/Num-constraint b/p/darcs/debian/patches/Num-constraint
index 52a00e4..5245fee 100644
--- a/p/darcs/debian/patches/Num-constraint
+++ b/p/darcs/debian/patches/Num-constraint
@@ -1,7 +1,18 @@
 Index: darcs/hashed-storage/Storage/Hashed/Utils.hs
 ===================================================================
 --- darcs.orig/hashed-storage/Storage/Hashed/Utils.hs	2015-07-09 18:48:56.000000000 +0200
-+++ darcs/hashed-storage/Storage/Hashed/Utils.hs	2015-07-15 19:35:55.341427506 +0200
++++ darcs/hashed-storage/Storage/Hashed/Utils.hs	2015-07-15 20:05:09.425950430 +0200
+@@ -91,8 +91,8 @@
+                      x -> i + boundary - x
+ {-# INLINE align #-}
+ 
+-xlate32 :: (Bits a) => a -> a
+-xlate64 :: (Bits a) => a -> a
++xlate32 :: (Num a, Bits a) => a -> a
++xlate64 :: (Num a, Bits a) => a -> a
+ 
+ #ifdef LITTLEENDIAN
+ xlate32 = id
 @@ -100,7 +100,7 @@
  #endif
  
@@ -11,3 +22,21 @@ Index: darcs/hashed-storage/Storage/Hashed/Utils.hs
  bytemask = 255
  
  xlate32 a = ((a .&. (bytemask `shift`  0)) `shiftL` 24) .|.
+Index: darcs/hashed-storage/Storage/Hashed/Index.hs
+===================================================================
+--- darcs.orig/hashed-storage/Storage/Hashed/Index.hs	2015-07-09 18:48:56.000000000 +0200
++++ darcs/hashed-storage/Storage/Hashed/Index.hs	2015-07-15 20:05:52.470960853 +0200
+@@ -166,11 +166,11 @@
+ itemIsDir i = unsafeHead (iDescriptor i) == c2w 'D'
+ 
+ -- xlatePeek32 = fmap xlate32 . peek
+-xlatePeek64 :: (Storable a, Bits a) => Ptr a -> IO a
++xlatePeek64 :: (Storable a, Num a, Bits a) => Ptr a -> IO a
+ xlatePeek64 = fmap xlate64 . peek
+ 
+ -- xlatePoke32 ptr v = poke ptr (xlate32 v)
+-xlatePoke64 :: (Storable a, Bits a) => Ptr a -> a -> IO ()
++xlatePoke64 :: (Storable a, Num a, Bits a) => Ptr a -> a -> IO ()
+ xlatePoke64 ptr v = poke ptr (xlate64 v)
+ 
+ -- | Lay out the basic index item structure in memory. The memory location is

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list