Ticket #24244: hs-hashed-storage-patch

File hs-hashed-storage-patch, 2.8 KB (added by scooter.phd@…, 14 years ago)

Updated patch with corrected checksums (but otherwise, the same)

Line 
1diff -r -u -N /opt/local/var/macports/sources/rsync.macports.org/release/devel/hs-hashed-storage/Portfile devel/hs-hashed-storage/Portfile
2--- /opt/local/var/macports/sources/rsync.macports.org/release/devel/hs-hashed-storage/Portfile 1969-12-31 16:00:00.000000000 -0800
3+++ devel/hs-hashed-storage/Portfile    2010-07-14 22:39:35.000000000 -0700
4@@ -0,0 +1,37 @@
5+# $Id: Portfile 65849 2010-04-02 03:49:11Z ryandesign@macports.org $
6+
7+PortSystem 1.0
8+
9+PortGroup      haskell 1.0
10+haskell.setup  hashed-storage 0.4.11
11+maintainers    gwright
12+platforms      darwin
13+
14+description    Hashed file storage support code.
15+long_description       \
16+       Support code for reading and manipulating hashed file storage   \
17+       (where each file and directory is associated with a             \
18+       cryptographic hash, for corruption-resistant storage and fast   \
19+       comparisons).                                                   \
20+                                                                       \
21+       The supported storage formats include darcs hashed pristine,    \
22+       a plain filesystem tree and an indexed plain tree (where the    \
23+       index maintains hashes of the plain files and directories).
24+
25+patchfiles     patch-mmap-0.5
26+
27+checksums      md5     43355f71bf8d5abea395e2b0f06385b2 \
28+               sha1    a1e6154aa5600393d279ec901378e1a1ddb97a0a \
29+               rmd160  ee98487c9dc464d7efa9872912dba0c794bde77e
30+
31+depends_lib    port:ghc                \
32+               port:hs-binary          \
33+               port:hs-dataenc         \
34+               port:hs-mmap
35+
36+universal_variant      no
37+
38+configure.args-append  -v --enable-library-profiling   \
39+                       --with-gcc=${configure.cc}
40+
41+build.args-append     -v
42diff -r -u -N /opt/local/var/macports/sources/rsync.macports.org/release/devel/hs-hashed-storage/files/patch-mmap-0.5 devel/hs-hashed-storage/files/patch-mmap-0.5
43--- /opt/local/var/macports/sources/rsync.macports.org/release/devel/hs-hashed-storage/files/patch-mmap-0.5     1969-12-31 16:00:00.000000000 -0800
44+++ devel/hs-hashed-storage/files/patch-mmap-0.5        2010-06-18 10:07:29.000000000 -0700
45@@ -0,0 +1,24 @@
46+--- hashed-storage.cabal.orig  2010-06-18 10:03:43.000000000 -0700
47++++ hashed-storage.cabal       2010-06-18 10:03:59.000000000 -0700
48+@@ -73,7 +73,7 @@
49+                    dataenc,
50+                    binary,
51+                    zlib,
52+-                   mmap >= 0.4 && < 0.5
53++                   mmap >= 0.5 && < 0.6
54+
55+     c-sources: Bundled/sha2.c
56+
57+--- Storage/Hashed/Index.hs.orig       2010-06-18 10:05:43.000000000 -0700
58++++ Storage/Hashed/Index.hs    2010-06-18 10:06:12.000000000 -0700
59+@@ -213,8 +213,8 @@
60+                  if req_size > 0 then fromIntegral req_size else act_size
61+   case size of
62+     0 -> return (castForeignPtr nullForeignPtr, size)
63+-    _ -> do (x, _) <- mmapFileForeignPtr indexpath
64+-                                         ReadWrite (Just (0, size + size_magic))
65++    _ -> do (x, _, _) <- mmapFileForeignPtr indexpath
66++                                            ReadWriteEx (Just (0, size + size_magic))
67+             return (x, size)
68+
69+ data IndexM m = Index { mmap :: (ForeignPtr ())