debian/0000755000000000000000000000000012151073612007164 5ustar debian/watch0000644000000000000000000000040312036250125010210 0ustar # See uscan(1) for format version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|hashed-storage-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/hashed-storage \ ([\d\.]*\d)/ debian/rules0000755000000000000000000000022212036250125010236 0ustar #!/usr/bin/make -f DEB_BUILD_DEPENDENCIES = build-arch include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk debian/copyright0000644000000000000000000000663512036250125011127 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Upstream-Name: hashed-storage Upstream-Maintainer: Petr Rockai Upstream-Source: http://hackage.haskell.org/packages/archive/hashed-storage/0.3.6/hashed-storage-0.3.6.tar.gz Files: Storage/Hashed/*, Bundled/Posix.hsc Copyright: Copyright 2009, Petr Rockai License: FreeBSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: Bundled/SHA256.hs Copyright: Zooko O'Whielacronx License: GPL On Debian systems the full text of the GNU General Public License can be found in the `/usr/share/common-licenses/GPL' file. Files: Bundled/sha2.* Copyright: 2005, 2007 Olivier Gay License: BSD-C3 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/source/0000755000000000000000000000000012036250125010462 5ustar debian/source/format0000644000000000000000000000001412036250125011670 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012150333551010613 5ustar debian/patches/bits-num.patch0000644000000000000000000000301512150333551013371 0ustar Description: Add a "Num" constraint to the bytemask constant and functions which use Bits In GHC versions < 7.6.1 this was implicit, but it was removed. Author: Iain Lane Forwarded: yes (email) Index: b/Storage/Hashed/Utils.hs =================================================================== --- a/Storage/Hashed/Utils.hs +++ b/Storage/Hashed/Utils.hs @@ -92,8 +92,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 @@ -101,7 +101,7 @@ #endif #ifdef BIGENDIAN -bytemask :: (Bits a) => a +bytemask :: (Num a, Bits a) => a bytemask = 255 xlate32 a = ((a .&. (bytemask `shift` 0)) `shiftL` 24) .|. Index: b/Storage/Hashed/Index.hs =================================================================== --- a/Storage/Hashed/Index.hs +++ b/Storage/Hashed/Index.hs @@ -152,11 +152,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 debian/patches/series0000644000000000000000000000001712150333551012026 0ustar bits-num.patch debian/compat0000644000000000000000000000000212147616206010371 0ustar 9 debian/control0000644000000000000000000000573312150230127010572 0ustar Source: haskell-hashed-storage Section: haskell Priority: extra Maintainer: Debian Haskell Group Uploaders: Marco Túlio Gontijo e Silva , Trent W. Buck Build-Depends: debhelper (>= 9) , haskell-devscripts (>= 0.8.15) , cdbs , ghc , ghc-prof , libghc-binary-dev , libghc-binary-prof , libghc-dataenc-dev , libghc-dataenc-prof , libghc-mmap-dev (>= 0.5) , libghc-mmap-dev (<< 0.6) , libghc-mmap-prof , libghc-mtl-dev , libghc-mtl-prof , libghc-zlib-dev , libghc-zlib-prof , libghc-extensible-exceptions-dev , libghc-extensible-exceptions-prof Build-Depends-Indep: ghc-doc , libghc-binary-doc , libghc-dataenc-doc , libghc-mmap-doc , libghc-mtl-doc , libghc-extensible-exceptions-doc , libghc-zlib-doc Standards-Version: 3.9.4 Homepage: http://hackage.haskell.org/package/hashed-storage Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hashed-storage Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hashed-storage DM-Upload-Allowed: yes Package: libghc-hashed-storage-dev Architecture: any Depends: ${haskell:Depends} , ${shlibs:Depends} , ${misc:Depends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: hashed file storage support code${haskell:ShortBlurb} Support code for reading and manipulating hashed file storage (where each file and directory is associated with a cryptographic hash, for corruption-resistant storage and fast comparisons). . The supported storage formats include darcs hashed pristine, a plain filesystem tree and an indexed plain tree (where the index maintains hashes of the plain files and directories). . ${haskell:Blurb} Package: libghc-hashed-storage-prof Architecture: any Depends: ${haskell:Depends} , ${shlibs:Depends} , ${misc:Depends} Provides: ${haskell:Provides} Description: hashed file storage support code${haskell:ShortBlurb} Support code for reading and manipulating hashed file storage (where each file and directory is associated with a cryptographic hash, for corruption-resistant storage and fast comparisons). . The supported storage formats include darcs hashed pristine, a plain filesystem tree and an indexed plain tree (where the index maintains hashes of the plain files and directories). . ${haskell:Blurb} Package: libghc-hashed-storage-doc Section: doc Architecture: all Depends: ${haskell:Depends}, ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Description: hashed file storage support code${haskell:ShortBlurb} Support code for reading and manipulating hashed file storage (where each file and directory is associated with a cryptographic hash, for corruption-resistant storage and fast comparisons). . The supported storage formats include darcs hashed pristine, a plain filesystem tree and an indexed plain tree (where the index maintains hashes of the plain files and directories). . ${haskell:Blurb} debian/changelog0000644000000000000000000000746512151073612011052 0ustar haskell-hashed-storage (0.5.10-4build1) saucy; urgency=low * Rebuild for new GHC ABIs. -- Colin Watson Tue, 28 May 2013 10:23:22 +0100 haskell-hashed-storage (0.5.10-4) unstable; urgency=low * Move Haskell blurb to the end of the description, reduces the impact of #708703 -- Joachim Breitner Sun, 26 May 2013 09:20:13 +0200 haskell-hashed-storage (0.5.10-3) unstable; urgency=low [ Iain Lane ] * Add a Num constraint to the bytemask constant and functions which use bits; GHC 7.6 made an incompatible change — this was implicit before. -- Colin Watson Sat, 25 May 2013 22:43:01 +0100 haskell-hashed-storage (0.5.10-2) unstable; urgency=low * Enable compat level 9 * Use substvars for Haskell description blurbs -- Joachim Breitner Fri, 24 May 2013 12:50:49 +0200 haskell-hashed-storage (0.5.10-1) experimental; urgency=low * Depend on haskell-devscripts 0.8.13 to ensure this packages is built against experimental * Bump standards version, no change * New upstream release -- Joachim Breitner Fri, 19 Oct 2012 22:49:06 +0200 haskell-hashed-storage (0.5.9-2) unstable; urgency=low * Fix -doc package dependency. * Bump to Standards-Version 3.9.2. -- Clint Adams Sun, 12 Feb 2012 21:48:49 -0500 haskell-hashed-storage (0.5.9-1) unstable; urgency=low * New upstream release * Adjust BDs in debian/control to match .cabal file -- Iain Lane Sat, 08 Oct 2011 23:02:43 +0100 haskell-hashed-storage (0.5.6-1) unstable; urgency=low [ Marco Silva ] * Use ghc instead of ghc6 [ Trent W. Buck ] * New upstream release -- Trent W. Buck Tue, 26 Apr 2011 11:43:54 +1000 haskell-hashed-storage (0.4.13-1) unstable; urgency=low * New upstream release -- Trent W. Buck Mon, 10 May 2010 17:59:39 +1000 haskell-hashed-storage (0.4.11-1) unstable; urgency=low * New upstream release -- Trent W. Buck Sat, 08 May 2010 20:19:49 +1000 haskell-hashed-storage (0.4.7-1) unstable; urgency=low * New upstream release * Revert mmap 0.5 compatibility (see http://bugs.darcs.net/issue1753). * New build dependencies: binary, dataenc. * List myself as an uploader (mainly to appease lintian). -- Trent W. Buck Sun, 21 Mar 2010 00:25:08 +1100 haskell-hashed-storage (0.3.9-1) unstable; urgency=low [ Marco Túlio Gontijo e Silva ] * debian/control: Use more sintetic name for Vcs-Darcs. * debian/control: Change Priority: to extra. * debian/watch: Use format that works for --download-current-version. * debian/watch: Add .tar.gz to downloaded filename. * debian/watch: Include package name in downloaded .tar.gz. * debian/watch: Remove spaces, since they're not allowed by uscan. * debian/control: Add field Provides: ${haskell:Provides} to -dev and -prof packages. * Update Uploader e-mail. * debian/control: Use Vcs-Browser: field. * debian/control: Remove dependency in hscolour, since it's now a dependency of haskell-devscripts. * debian/control: Remove haddock from Build-Depends:, since it's now a Depends: of haskell-devscripts. * debian/control: Bump Standards-Version: to 3.8.4, no changes needed. * Use debian/compat 7. * debian/control: Use more sintetic link in Homepage:. [ Joachim Breitner ] * Bump haskell-devscripts dependency to 0.7 * New upstream release * Switch to 3.0 (quilt) version * patches/mmap_0.5_compat.patch: Build with mmap-0.5 -- Joachim Breitner Thu, 25 Feb 2010 09:59:17 +0100 haskell-hashed-storage (0.3.6-1) unstable; urgency=low * Initial release. (Closes: #532154) -- Marco Túlio Gontijo e Silva Thu, 16 Jul 2009 12:09:38 -0300