Ticket #24244: hs-hashed-storage.patch

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

Patch to Portfile, source for hashed-storage 0.4.11

  • devel/hs-hashed-storage/Portfile

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/hs-hashed-storage/Portfile devel/hs-hashed-storage/Portfile
    old new  
    33PortSystem 1.0
    44
    55PortGroup       haskell 1.0
    6 haskell.setup   hashed-storage 0.4.7
     6haskell.setup   hashed-storage 0.4.11
    77maintainers     gwright
    88platforms       darwin
    99
     
    1818        a plain filesystem tree and an indexed plain tree (where the    \
    1919        index maintains hashes of the plain files and directories).
    2020
    21 checksums       md5     357688675e348eee8c3c60058635f907 \
    22                 sha1    dc732b95ea3f454d870544012093fd203dd214fd \
    23                 rmd160  07d11934511f0cb2731faea7f3158067377e4c96
     21patchfiles      patch-mmap-0.5
     22
     23checksums       md5     2b779e9668479c2361a2bdb8ea7233eb \
     24                sha1    f5d42e0c84503421076e9c4e35f7d419db6699f2 \
     25                rmd160  5ba098205c23ae41fa6f783a46b15c0f35e553dd
    2426
    2527depends_lib     port:ghc                \
    2628                port:hs-binary          \
  • devel/hs-hashed-storage/files/patch-mmap-0.5

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/hs-hashed-storage/files/patch-mmap-0.5 devel/hs-hashed-storage/files/patch-mmap-0.5
    old new  
     1--- hashed-storage.cabal.orig   2010-06-18 10:03:43.000000000 -0700
     2+++ hashed-storage.cabal        2010-06-18 10:03:59.000000000 -0700
     3@@ -73,7 +73,7 @@
     4                    dataenc,
     5                    binary,
     6                    zlib,
     7-                   mmap >= 0.4 && < 0.5
     8+                   mmap >= 0.5 && < 0.6
     9 
     10     c-sources: Bundled/sha2.c
     11 
     12--- Storage/Hashed/Index.hs.orig        2010-06-18 10:05:43.000000000 -0700
     13+++ Storage/Hashed/Index.hs     2010-06-18 10:06:12.000000000 -0700
     14@@ -213,8 +213,8 @@
     15                  if req_size > 0 then fromIntegral req_size else act_size
     16   case size of
     17     0 -> return (castForeignPtr nullForeignPtr, size)
     18-    _ -> do (x, _) <- mmapFileForeignPtr indexpath
     19-                                         ReadWrite (Just (0, size + size_magic))
     20+    _ -> do (x, _, _) <- mmapFileForeignPtr indexpath
     21+                                            ReadWriteEx (Just (0, size + size_magic))
     22             return (x, size)
     23 
     24 data IndexM m = Index { mmap :: (ForeignPtr ())