[MacPorts] #24244: hs-hashed-storage won't install
MacPorts
noreply at macports.org
Sun Apr 18 12:20:11 PDT 2010
#24244: hs-hashed-storage won't install
-----------------------------+----------------------------------------------
Reporter: bhyde@… | Owner: gwright@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: | Port: hs-hashed-storage
-----------------------------+----------------------------------------------
Comment(by josephholsten@…):
I heard back from the maintainer. He sent me a patch that fixes hashed-
storage with mmap 0.5. They've made these changes in head, but the darcs
team doesn't want to bump mmap to 0.5 during 2.4.x. I'm not sure what the
best thing to do is.
Revert hs-mmap back to 0.4? Create a hs-mmap0.4 port? Apply the patch and
see if it plays nice with darcs?
I haven't had a chance to test this patch, so please let me know how it
works.
{{{
15:16:21 | morn at twi:~/dev/darcs/hashed-storage -> darcs diff -p 'mmap >=
0.5'
Sun Mar 7 12:31:07 CET 2010 Petr Rockai <me at mornfall.net>
* Use mmap >= 0.5.
diff -rN -u -p old-hashed-storage/hashed-storage.cabal new-hashed-storage
/hashed-storage.cabal
--- old-hashed-storage/hashed-storage.cabal 2010-04-18
15:16:23.000000000 +0200
+++ new-hashed-storage/hashed-storage.cabal 2010-04-18
15:16:23.000000000 +0200
@@ -73,7 +73,7 @@ library
dataenc,
binary,
zlib,
- mmap >= 0.4 && < 0.5
+ mmap >= 0.5 && < 0.6
c-sources: Bundled/sha2.c
diff -rN -u -p old-hashed-storage/Storage/Hashed/Index.hs new-hashed-
storage/Storage/Hashed/Index.hs
--- old-hashed-storage/Storage/Hashed/Index.hs 2010-04-18
15:16:23.000000000 +0200
+++ new-hashed-storage/Storage/Hashed/Index.hs 2010-04-18
15:16:23.000000000 +0200
@@ -214,8 +214,8 @@ mmapIndex indexpath req_size = do
| otherwise -> 0
case size of
0 -> return (castForeignPtr nullForeignPtr, size)
- _ -> do (x, _) <- mmapFileForeignPtr indexpath
- ReadWrite (Just (0, size +
size_magic))
+ _ -> do (x, _, _) <- mmapFileForeignPtr indexpath
+ ReadWriteEx (Just (0, size +
size_magic))
return (x, size)
data IndexM m = Index { mmap :: (ForeignPtr ())
}}}
--
Ticket URL: <http://trac.macports.org/ticket/24244#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list