debian 4.0.5 → 4.1
raw patch · 21 files changed
+132/−1909 lines, 21 filesdep +ordered-containersdep ~basePVP ok
version bump matches the API change (PVP)
Dependencies added: ordered-containers
Dependency ranges changed: base
API changes (from Hackage documentation)
- Debian.Apt.Dependencies: gutsyPackages :: String
- Debian.Apt.Dependencies: sidPackages :: String
- Debian.Control.ByteString: instance Debian.Control.Common.ControlFunctions Data.ByteString.Internal.ByteString
- Debian.Relation: Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
- Debian.Relation.ByteString: Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
- Debian.Relation.ByteString: instance Debian.Relation.Common.ParseRelations Data.ByteString.Internal.ByteString
- Debian.Relation.Common: Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
- Debian.Relation.Common: prettyArchitectureReq :: ArchitectureReq -> Doc
- Debian.Relation.Common: prettyOrRelation :: [Relation] -> Doc
- Debian.Relation.Common: prettyRelation :: Relation -> Doc
- Debian.Relation.Common: prettyRelations :: [[Relation]] -> Doc
- Debian.Relation.Common: prettyVersionReq :: VersionReq -> Doc
- Debian.Relation.String: Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
- Debian.Relation.Text: Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
- Debian.Version.ByteString: instance Debian.Version.Common.ParseDebianVersion Data.ByteString.Internal.ByteString
+ Debian.Control.ByteString: instance Debian.Control.Common.ControlFunctions Data.ByteString.Internal.Type.ByteString
+ Debian.Relation: RRel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> [RestrictionList] -> Relation
+ Debian.Relation: pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
+ Debian.Relation.ByteString: RRel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> [RestrictionList] -> Relation
+ Debian.Relation.ByteString: instance Debian.Relation.Common.ParseRelations Data.ByteString.Internal.Type.ByteString
+ Debian.Relation.ByteString: pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
+ Debian.Relation.Common: RRel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> [RestrictionList] -> Relation
+ Debian.Relation.Common: pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
+ Debian.Relation.Common: type RestrictionList = OMap String Bool
+ Debian.Relation.String: RRel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> [RestrictionList] -> Relation
+ Debian.Relation.String: pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
+ Debian.Relation.Text: RRel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> [RestrictionList] -> Relation
+ Debian.Relation.Text: pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation
+ Debian.Version.ByteString: instance Debian.Version.Common.ParseDebianVersion Data.ByteString.Internal.Type.ByteString
- Debian.Apt.Dependencies: mkSearchTree :: forall a. CSP a -> Tree (State a)
+ Debian.Apt.Dependencies: mkSearchTree :: CSP a -> Tree (State a)
- Debian.Apt.Dependencies: type Labeler a = CSP a -> Tree (State a) -> Tree (State a, ConflictSet)
+ Debian.Apt.Dependencies: type Labeler a = CSP a -> Tree State a -> Tree (State a, ConflictSet)
- Debian.Apt.Package: findProvides :: forall p. (p -> [BinPkgName]) -> [p] -> [(BinPkgName, p)]
+ Debian.Apt.Package: findProvides :: (p -> [BinPkgName]) -> [p] -> [(BinPkgName, p)]
- Debian.Control.Common: protectFieldText' :: forall a. (StringLike a, ListLike a Char) => ControlFunctions a => a -> a
+ Debian.Control.Common: protectFieldText' :: (StringLike a, ListLike a Char, ControlFunctions a) => a -> a
- Debian.GenBuildDeps: buildable :: forall a. (a -> DepInfo) -> [a] -> BuildableInfo a
+ Debian.GenBuildDeps: buildable :: (a -> DepInfo) -> [a] -> BuildableInfo a
- Debian.Relation: class Pretty (PP a) => PkgName a
+ Debian.Relation: class Pretty PP a => PkgName a
- Debian.Relation.Common: class Pretty (PP a) => PkgName a
+ Debian.Relation.Common: class Pretty PP a => PkgName a
Files
- Test/Control.hs +37/−39
- changelog +0/−596
- debian.cabal +17/−8
- debian/changelog +0/−596
- debian/changelog.pre-debian +0/−625
- src/Debian/Apt/Dependencies.hs +0/−5
- src/Debian/Apt/Index.hs +0/−4
- src/Debian/Apt/Methods.hs +0/−1
- src/Debian/Apt/Package.hs +1/−1
- src/Debian/Arch.hs +0/−1
- src/Debian/Changes.hs +0/−1
- src/Debian/Control/ByteString.hs +2/−6
- src/Debian/Control/Common.hs +0/−1
- src/Debian/GenBuildDeps.hs +3/−6
- src/Debian/Loc.hs +0/−1
- src/Debian/Relation/Common.hs +41/−8
- src/Debian/Relation/String.hs +29/−1
- src/Debian/Sources.hs +0/−1
- src/Debian/UTF8.hs +0/−3
- src/Debian/VendorURI.hs +1/−4
- utils/AptGetBuildDeps.hs +1/−1
Test/Control.hs view
@@ -2,6 +2,7 @@ module Control where import Test.HUnit+import qualified Data.Map.Ordered as MO import Data.Monoid ((<>)) import Data.List as L (intercalate) import Data.Text as T (Text)@@ -18,11 +19,6 @@ import Text.PrettyPrint.HughesPJClass (Doc, text) import Text.Regex.TDFA ((=~), MatchResult(..)) -#if !MIN_VERSION_pretty(1,1,2)-instance Eq Doc where- a == b = show a == show b-#endif- instance Eq DebianControl where a == b = unDebianControl a == unDebianControl b -- deriving instance Show (Control' Text)@@ -87,7 +83,7 @@ -- where appropriate to the expected test results. paragraphs :: [String] paragraphs =- [ "Source: haskell-debian\nSection: haskell\nPriority: extra\nMaintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>\nUploaders: Joachim Breitner <nomeata@debian.org>\nBuild-Depends: debhelper (>= 7)\n , cdbs\n , haskell-devscripts (>= 0.7)\n , ghc\n , ghc-prof\n , libghc-hunit-dev\n , libghc-hunit-prof\n , libghc-mtl-dev\n , libghc-mtl-prof\n , libghc-parsec3-dev\n , libghc-parsec3-prof\n , libghc-pretty-class-dev\n , libghc-pretty-class-prof\n , libghc-process-extras-dev (>= 0.4)\n , libghc-process-extras-prof (>= 0.4)\n , libghc-regex-compat-dev\n , libghc-regex-compat-prof\n , libghc-regex-tdfa-dev (>= 1.1.3)\n , libghc-regex-tdfa-prof\n , libghc-bzlib-dev (>= 0.5.0.0-4)\n , libghc-bzlib-prof\n , libghc-haxml-prof (>= 1:1.20)\n , libghc-unixutils-dev (>= 1.50)\n , libghc-unixutils-prof (>= 1.50)\n , libghc-zlib-dev\n , libghc-zlib-prof\n , libghc-network-dev (>= 2.4)\n , libghc-network-prof (>= 2.4)\n , libghc-utf8-string-dev\n , libghc-utf8-string-prof,\n , libcrypto++-dev\nBuild-Depends-Indep: ghc-doc\n , libghc-hunit-doc\n , libghc-mtl-doc\n , libghc-parsec3-doc\n , libghc-pretty-class-doc\n , libghc-process-extras-doc (>= 0.4)\n , libghc-regex-compat-doc\n , libghc-regex-tdfa-doc\n , libghc-bzlib-doc\n , libghc-haxml-doc (>= 1:1.20)\n , libghc-unixutils-doc (>= 1.50)\n , libghc-zlib-doc\n , libghc-network-doc (>= 2.4)\n , libghc-utf8-string-doc\nStandards-Version: 3.9.2\nHomepage: http://hackage.haskell.org/package/debian\nVcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-debian\nVcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-debian",+ [ "Source: haskell-debian\nSection: haskell\nPriority: extra\nMaintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>\nUploaders: Joachim Breitner <nomeata@debian.org>\nBuild-Depends: debhelper (>= 7)\n , cdbs\n , haskell-devscripts (>= 0.7)\n , ghc\n , ghc-prof\n , libghc-hunit-dev\n , libghc-hunit-prof\n , libghc-mtl-dev\n , libghc-mtl-prof\n , libghc-parsec3-dev\n , libghc-parsec3-prof\n , libghc-pretty-class-dev\n , libghc-pretty-class-prof\n , libghc-process-extras-dev (>= 0.4)\n , libghc-process-extras-prof (>= 0.4)\n , libghc-regex-compat-dev\n , libghc-regex-compat-prof\n , libghc-regex-tdfa-dev (>= 1.1.3)\n , libghc-regex-tdfa-prof\n , libghc-bzlib-dev (>= 0.5.0.0-4)\n , libghc-bzlib-prof\n , libghc-haxml-prof (>= 1:1.20)\n , libghc-unixutils-dev (>= 1.50)\n , libghc-unixutils-prof (>= 1.50)\n , libghc-zlib-dev\n , libghc-zlib-prof\n , libghc-network-dev (>= 2.4)\n , libghc-network-prof (>= 2.4)\n , libghc-utf8-string-dev\n , libghc-utf8-string-prof,\n , libcrypto++-dev\n , libghc-faketestdependency-dev <!nocheck two !three> <four !five six>\nBuild-Depends-Indep: ghc-doc\n , libghc-hunit-doc\n , libghc-mtl-doc\n , libghc-parsec3-doc\n , libghc-pretty-class-doc\n , libghc-process-extras-doc (>= 0.4)\n , libghc-regex-compat-doc\n , libghc-regex-tdfa-doc\n , libghc-bzlib-doc\n , libghc-haxml-doc (>= 1:1.20)\n , libghc-unixutils-doc (>= 1.50)\n , libghc-zlib-doc\n , libghc-network-doc (>= 2.4)\n , libghc-utf8-string-doc\nStandards-Version: 3.9.2\nHomepage: http://hackage.haskell.org/package/debian\nVcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-debian\nVcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-debian", "Package: libghc-debian-dev\nArchitecture: any\nDepends: ${haskell:Depends}\n , ${shlibs:Depends}\n , ${misc:Depends}\nRecommends: ${haskell:Recommends}\nSuggests: ${haskell:Suggests}\nProvides: ${haskell:Provides}\nDescription: Haskell library for working with the Debian package system\n This package provides a library for the Haskell programming language.\n See http://www.haskell.org/ for more information on Haskell.\n .\n This library includes modules covering almost every aspect of the Debian\n packaging system, including low level data types such as version numbers\n and dependency relations, on up to the types necessary for computing and\n installing build dependencies, building source and binary packages,\n and inserting them into a repository.\n .\n This package contains the libraries compiled for GHC 6.", "Package: libghc-debian-prof\nArchitecture: any\nDepends: ${haskell:Depends}\n , ${shlibs:Depends}\n , ${misc:Depends}\nRecommends: ${haskell:Recommends}\nSuggests: ${haskell:Suggests}\nProvides: ${haskell:Provides}\nDescription: Profiling library for working with the Debian package system\n This package provides a library for the Haskell programming language,\n compiled for profiling.\n See http://www.haskell.org/ for more information on Haskell.\n .\n This library includes modules covering almost every aspect of the Debian\n packaging system, including low level data types such as version numbers\n and dependency relations, on up to the types necessary for computing and\n installing build dependencies, building source and binary packages,\n and inserting them into a repository.\n .\n This package contains the profiling libraries compiled for GHC 6.", "Package: libghc-debian-doc\nSection: doc\nArchitecture: all\nDepends: ${misc:Depends}, ${haskell:Depends}\nRecommends: ${haskell:Recommends}\nSuggests: ${haskell:Suggests}\nDescription: Documentation for Debian package system library\n This package provides the documentation for a library for the Haskell\n programming language.\n See http://www.haskell.org/ for more information on Haskell.\n .\n This library includes modules covering almost every aspect of the Debian\n packaging system, including low level data types such as version numbers\n and dependency relations, on up to the types necessary for computing and\n installing build dependencies, building source and binary packages,\n and inserting them into a repository.\n .\n This package contains the library documentation.",@@ -95,42 +91,44 @@ -- The parsed build dependencies builddeps :: Relations-builddeps = [[Rel (BinPkgName {unBinPkgName = "debhelper"}) (Just (GRE (Debian.Version.parseDebianVersion' ("7" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "cdbs"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "haskell-devscripts"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.7" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "ghc"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "ghc-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-hunit-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-hunit-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-mtl-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-mtl-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-parsec3-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-parsec3-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-pretty-class-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-pretty-class-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-process-extras-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.4" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-process-extras-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.4" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-regex-compat-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-regex-compat-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-regex-tdfa-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.1.3" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-regex-tdfa-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-bzlib-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.5.0.0-4" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-bzlib-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-haxml-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1:1.20" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-unixutils-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.50" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-unixutils-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.50" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-zlib-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-zlib-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-network-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("2.4" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-network-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("2.4" :: String)))) Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-utf8-string-dev"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libghc-utf8-string-prof"}) Nothing Nothing],- [Rel (BinPkgName {unBinPkgName = "libcrypto++-dev"}) Nothing Nothing]]+builddeps = [[RRel (BinPkgName {unBinPkgName = "debhelper"}) (Just (GRE (Debian.Version.parseDebianVersion' ("7" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "cdbs"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "haskell-devscripts"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.7" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "ghc"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "ghc-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-hunit-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-hunit-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-mtl-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-mtl-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-parsec3-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-parsec3-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-pretty-class-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-pretty-class-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-process-extras-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.4" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-process-extras-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.4" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-regex-compat-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-regex-compat-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-regex-tdfa-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.1.3" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-regex-tdfa-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-bzlib-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("0.5.0.0-4" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-bzlib-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-haxml-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1:1.20" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-unixutils-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.50" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-unixutils-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("1.50" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-zlib-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-zlib-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-network-dev"}) (Just (GRE (Debian.Version.parseDebianVersion' ("2.4" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-network-prof"}) (Just (GRE (Debian.Version.parseDebianVersion' ("2.4" :: String)))) Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-utf8-string-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-utf8-string-prof"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libcrypto++-dev"}) Nothing Nothing []],+ [RRel (BinPkgName {unBinPkgName = "libghc-faketestdependency-dev"}) Nothing Nothing [MO.fromList [("nocheck", False), ("two", True), ("three", False)], MO.fromList [("four", True), ("five", False), ("six", True)]]]+ ] sample :: String sample = intercalate "\n\n" paragraphs <> "\n" --- | The expecte result of parsing the sample control file.+-- | The expected result of parsing the sample control file. control :: Control' Text control = Control@@ -139,7 +137,7 @@ ,Field ("Priority"," extra") ,Field ("Maintainer"," Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>") ,Field ("Uploaders"," Joachim Breitner <nomeata@debian.org>")- ,Field ("Build-Depends"," debhelper (>= 7)\n , cdbs\n , haskell-devscripts (>= 0.7)\n , ghc\n , ghc-prof\n , libghc-hunit-dev\n , libghc-hunit-prof\n , libghc-mtl-dev\n , libghc-mtl-prof\n , libghc-parsec3-dev\n , libghc-parsec3-prof\n , libghc-pretty-class-dev\n , libghc-pretty-class-prof\n , libghc-process-extras-dev (>= 0.4)\n , libghc-process-extras-prof (>= 0.4)\n , libghc-regex-compat-dev\n , libghc-regex-compat-prof\n , libghc-regex-tdfa-dev (>= 1.1.3)\n , libghc-regex-tdfa-prof\n , libghc-bzlib-dev (>= 0.5.0.0-4)\n , libghc-bzlib-prof\n , libghc-haxml-prof (>= 1:1.20)\n , libghc-unixutils-dev (>= 1.50)\n , libghc-unixutils-prof (>= 1.50)\n , libghc-zlib-dev\n , libghc-zlib-prof\n , libghc-network-dev (>= 2.4)\n , libghc-network-prof (>= 2.4)\n , libghc-utf8-string-dev\n , libghc-utf8-string-prof,\n , libcrypto++-dev")+ ,Field ("Build-Depends"," debhelper (>= 7)\n , cdbs\n , haskell-devscripts (>= 0.7)\n , ghc\n , ghc-prof\n , libghc-hunit-dev\n , libghc-hunit-prof\n , libghc-mtl-dev\n , libghc-mtl-prof\n , libghc-parsec3-dev\n , libghc-parsec3-prof\n , libghc-pretty-class-dev\n , libghc-pretty-class-prof\n , libghc-process-extras-dev (>= 0.4)\n , libghc-process-extras-prof (>= 0.4)\n , libghc-regex-compat-dev\n , libghc-regex-compat-prof\n , libghc-regex-tdfa-dev (>= 1.1.3)\n , libghc-regex-tdfa-prof\n , libghc-bzlib-dev (>= 0.5.0.0-4)\n , libghc-bzlib-prof\n , libghc-haxml-prof (>= 1:1.20)\n , libghc-unixutils-dev (>= 1.50)\n , libghc-unixutils-prof (>= 1.50)\n , libghc-zlib-dev\n , libghc-zlib-prof\n , libghc-network-dev (>= 2.4)\n , libghc-network-prof (>= 2.4)\n , libghc-utf8-string-dev\n , libghc-utf8-string-prof,\n , libcrypto++-dev\n , libghc-faketestdependency-dev <!nocheck two !three> <four !five six>\n") ,Field ("Build-Depends-Indep"," ghc-doc\n , libghc-hunit-doc\n , libghc-mtl-doc\n , libghc-parsec3-doc\n , libghc-pretty-class-doc\n , libghc-process-extras-doc (>= 0.4)\n , libghc-regex-compat-doc\n , libghc-regex-tdfa-doc\n , libghc-bzlib-doc\n , libghc-haxml-doc (>= 1:1.20)\n , libghc-unixutils-doc (>= 1.50)\n , libghc-zlib-doc\n , libghc-network-doc (>= 2.4)\n , libghc-utf8-string-doc") ,Field ("Standards-Version"," 3.9.2") ,Field ("Homepage"," http://hackage.haskell.org/package/debian")
− changelog
@@ -1,596 +0,0 @@-haskell-debian (3.95) unstable; urgency=medium-- * Clean up error handling and monad transformers.- * Move source code into src subdirectory to avoid build problems on case- insensitive HFS partitions.- * Move Debian.Except module to Extra.Except in sr-extra package.-- -- David Fox <dsf@seereason.com> Tue, 12 Feb 2019 16:38:30 -0800--haskell-debian (3.94) unstable; urgency=medium-- * Additions to Debian.URI.-- -- David Fox <dsf@seereason.com> Sat, 02 Feb 2019 08:18:12 -0800--haskell-debian (3.93.6) unstable; urgency=medium-- * Throw a UserError when dirFromURI gets 404 Not Found-- -- David Fox <dsf@seereason.com> Fri, 25 Jan 2019 12:12:56 -0800--haskell-debian (3.93.5) unstable; urgency=medium-- * Restore import of <$> for older versions of base.-- -- David Fox <dsf@x1> Fri, 18 Jan 2019 19:04:40 -0800--haskell-debian (3.93.4) unstable; urgency=medium-- * Handle errors in the shell commands run by functions in Debian.URI-- -- David Fox <dsf@seereason.com> Fri, 18 Jan 2019 06:25:22 -0800--haskell-debian (3.93.3) unstable; urgency=medium-- * Changes for ghc-8.6-- -- David Fox <dsf@seereason.com> Tue, 01 Jan 2019 15:57:16 -0800--haskell-debian (3.93.2) unstable; urgency=low-- * Put SHA256 checksums into package info rather than obsolete md5-- -- David Fox <dsf@foxthompson.net> Thu, 13 Jul 2017 16:00:10 -0700--haskell-debian (3.92.1) unstable; urgency=low-- * Import mconcat for older base compatibility.-- -- David Fox <dsf@foxthompson.net> Wed, 12 Jul 2017 09:03:18 -0700--haskell-debian (3.92) unstable; urgency=low-- * Support parsing of the option list in sources.list lines - see- https://manpages.debian.org/stretch/apt/sources.list.5.en.html- * Move tests of sources.list pretty and parse into Debian.Sources- * Change sig of parseSourceLine' to return Either rather than Maybe-- -- David Fox <dsf@foxthompson.net> Wed, 12 Jul 2017 06:30:01 -0700--haskell-debian (3.91.2) unstable; urgency=low-- * Work around for https://ghc.haskell.org/trac/ghc/ticket/12130- * Add travis config for ghc-8.0- * fix test suite- * Make changelog a duplicate of debian/changelog- * eliminate error call in parseChangeLog-- -- David Fox <dsf@foxthompson.net> Fri, 11 Nov 2016 21:31:09 -0800--haskell-debian (3.91) unstable; urgency=low-- * Eliminate error call in parseChangeLog-- -- David Fox <dsf@seereason.com> Thu, 06 Oct 2016 09:42:06 -0700--haskell-debian (3.89) unstable; urgency=low-- * Change signature of parseDebianVersion to return Either ParseError DebianVerions.- * Provide the old signature as parseDebianVersion'.-- -- David Fox <dsf@seereason.com> Mon, 21 Sep 2015 15:23:32 -0700--haskell-debian (3.88.1) unstable; urgency=low-- * Make ghc-7.10.2 a required travis test- * Sort out the List/Map/Set imports in Debian.GenBuildDeps-- -- David Fox <dsf@seereason.com> Mon, 24 Aug 2015 10:29:00 -0700--haskell-debian (3.88) unstable; urgency=low-- * Improved handling of white space- * Speed up Debian.GenBuildDeps.buildable-- -- David Fox <dsf@seereason.com> Mon, 24 Aug 2015 06:29:29 -0700--haskell-debian (3.87.2) unstable; urgency=low-- * Functor, Applicative, and Alternative instances for ghc-7.10- * Fiddle with imports and ifdefs to fix build- * Switch from ansi-wl-pprint package to pretty-- -- David Fox <dsf@seereason.com> Sun, 22 Mar 2015 12:55:39 -0700--haskell-debian (3.87.1) unstable; urgency=low-- * Version bump to match cabal-- -- David Fox <dsf@seereason.com> Mon, 02 Mar 2015 13:13:00 -0800--haskell-debian (3.86) unstable; urgency=low-- * Avoid dependency on th-orphans- * Turn test program into a test-suite- * add DEB_ENABLE_TESTS = yes to debian/rules- * Support builds on older versions of GHC-- -- David Fox <dsf@seereason.com> Sun, 15 Feb 2015 07:32:42 -0800--haskell-debian (3.85.3) unstable; urgency=low-- * Handle new pretty-1.1.2 package, which supercedes prettyclass.- * Make a change to trigger a travis build.-- -- David Fox <dsf@seereason.com> Fri, 06 Feb 2015 10:18:30 -0800--haskell-debian (3.85.2) unstable; urgency=low-- * If any of the lines of a multi-line control file field are not- indented, indent all the lines by one space.- * When formatting multi-line control file fields, make sure empty- lines are replaced by a single (indented) '.'.-- -- David Fox <dsf@seereason.com> Wed, 04 Feb 2015 11:23:42 -0800--haskell-debian (3.85.1) unstable; urgency=low-- * Allow build with process-extras-0.2.0-- -- David Fox <dsf@seereason.com> Thu, 04 Dec 2014 06:23:38 -0800--haskell-debian (3.85) unstable; urgency=low-- * Fix some cases where the pretty printer output parsed to something- different from its input-- -- David Fox <dsf@seereason.com> Sat, 29 Nov 2014 09:27:42 -0800--haskell-debian (3.84.1) unstable; urgency=low-- * Remove a Show instance that overlaps the one derived in the Control- type declaration.-- -- David Fox <dsf@seereason.com> Sat, 29 Nov 2014 05:18:40 -0800--haskell-debian (3.84) unstable; urgency=low-- * Replace the Debian.Pretty module with a module copied from the- pretty-class package, Text.PrettyPrint.HughesPJClass. This is almost- identical to the module in Lennart's prettyclass package, but has what- I believe to be a more correct pPrintList method for type Char.-- -- David Fox <dsf@seereason.com> Sun, 14 Sep 2014 12:37:57 -0700--haskell-debian (3.83.4.2) unstable; urgency=low-- * Require a better version of process-listlike.- * Trigger a new build on hackage to get documentation.-- -- David Fox <dsf@seereason.com> Tue, 02 Sep 2014 08:29:32 -0700--haskell-debian (3.83.4.1) unstable; urgency=low-- * Merge change from version 3.83.3.1 (which only went to hackage)- and 3.83.4 (whose version change didn't get checked into git.)- * Require ListLike >= 4.- * Fix repository type in the cabal file.-- -- David Fox <dsf@seereason.com> Tue, 02 Sep 2014 07:24:27 -0700--haskell-debian (3.83.3) unstable; urgency=low-- * Moved repository to https://github.com/ddssff/debian-haskell-- -- David Fox <dsf@seereason.com> Thu, 28 Aug 2014 08:36:16 -0700--haskell-debian (3.83.2) unstable; urgency=low-- * Add some Read, Show, Data, and Typeable instances.-- -- David Fox <dsf@seereason.com> Mon, 25 Aug 2014 03:47:38 -0700--haskell-debian (3.83.1) unstable; urgency=low-- * Support new network-uri package.-- -- David Fox <dsf@seereason.com> Sun, 24 Aug 2014 17:17:55 -0700--haskell-debian (3.83) unstable; urgency=low-- * Add a Loc value to the ControlFileError type, the template- haskell location where the exception was created.-- -- David Fox <dsf@seereason.com> Thu, 07 Aug 2014 13:54:27 -0700--haskell-debian (3.82) unstable; urgency=low-- * Add Debian.Control.Policy which has knowledge of specific fields, such- as Source and Package, which are expected to be present in a debian- control file.- * Replace a 3-tuple in Debian.GenBuildDeps with a record named- ReadyTargets.- * Add Debian.Pretty.display :: Pretty a => a -> String-- -- David Fox <dsf@seereason.com> Wed, 06 Aug 2014 06:13:15 -0700--haskell-debian (3.81.3) unstable; urgency=low-- * Remove spurious dependency on Cabal.-- -- David Fox <dsf@seereason.com> Tue, 15 Jul 2014 06:58:42 -0700--haskell-debian (3.81.2) unstable; urgency=low-- * Update debian build dependencies.-- -- David Fox <dsf@seereason.com> Sat, 05 Jul 2014 22:30:43 -0700--haskell-debian (3.81.1) unstable; urgency=low-- * Modernize cabal file.-- -- David Fox <dsf@seereason.com> Sat, 17 May 2014 06:36:43 -0700--haskell-debian (3.81) unstable; urgency=low-- * Replace library pretty and library ansi-wl-pprint with an ultra-simple- custom pretty printing library in Debian.Pretty.-- -- David Fox <dsf@seereason.com> Sun, 12 Jan 2014 07:34:21 -0800--haskell-debian (3.80.2) unstable; urgency=low-- * Neil Mayhew's patch to greatly speed parsing of control files.-- -- David Fox <dsf@seereason.com> Mon, 06 Jan 2014 04:36:37 -0800--haskell-debian (3.80.1) unstable; urgency=low-- * Fix for fakechanges from Neil Mayhew - don't reject all .deb files.-- -- David Fox <dsf@seereason.com> Mon, 30 Dec 2013 08:02:08 -0800--haskell-debian (3.80) unstable; urgency=low-- * Make the SliceName type an alias for ReleaseName. Pretty sure- they are the same thing.-- -- David Fox <dsf@seereason.com> Thu, 19 Dec 2013 11:41:38 -0800--haskell-debian (3.79.4) unstable; urgency=low-- * Add changelog to list of extra source files so it is added to- the tarball.-- -- David Fox <dsf@seereason.com> Tue, 15 Oct 2013 07:36:41 -0700--haskell-debian (3.79.3) unstable; urgency=low-- * Make the changelog visible in hackage2.-- -- David Fox <dsf@seereason.com> Tue, 15 Oct 2013 07:33:02 -0700--haskell-debian (3.79.2) unstable; urgency=low-- * Allow package to build with either process-listlike or process-extra.-- -- David Fox <dsf@seereason.com> Fri, 04 Oct 2013 09:02:48 -0700--haskell-debian (3.79.1) unstable; urgency=low-- * Switch from using package process-extras to process-listlike.-- -- David Fox <dsf@seereason.com> Wed, 05 Jun 2013 06:22:26 -0700--haskell-debian (3.79) unstable; urgency=low-- * Efficiency fix for the Text instance of Debian.Control.- * Get rid of the Data.Text parser, instead parse the ByteString and- then decode the resulting control file. Much faster I think.-- -- David Fox <dsf@seereason.com> Mon, 29 Apr 2013 21:33:55 -0700--haskell-debian (3.78) unstable; urgency=low-- * Change URI' to simplify its Read and Show instances, it is now just a- private constructor applied to a string for which parseURI was known- to succeed.- * Add changelog.pre-debian to the source file list-- -- David Fox <dsf@seereason.com> Sun, 28 Apr 2013 12:51:11 -0700--haskell-debian (3.77) unstable; urgency=low-- * Add a URI' type that is a wrapper around URI with working Read and- Show instances.-- -- David Fox <dsf@seereason.com> Fri, 26 Apr 2013 11:00:10 -0700--haskell-debian (3.76) unstable; urgency=low-- * Add Debian.UTF, with support for reading and decoding "almost-utf8" files-- -- David Fox <dsf@seereason.com> Thu, 25 Apr 2013 07:56:45 -0700--haskell-debian (3.75) unstable; urgency=low-- * If we get a UTF8 decoding error just insert the offending character- into the output stream. There is an-- -- David Fox <dsf@seereason.com> Wed, 24 Apr 2013 15:30:30 -0700--haskell-debian (3.74) unstable; urgency=low-- * Add Debian.Relation.Text and Debian.Version.Text.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 18:11:00 -0700--haskell-debian (3.73) unstable; urgency=low-- * Use Text instead of ByteString in the functions exported- by Debian.Control.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 17:59:21 -0700--haskell-debian (3.72) unstable; urgency=low-- * Add Debian.Control.Text, Data.Text support for control files.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 17:19:22 -0700--haskell-debian (3.71) unstable; urgency=low-- * Refine the ArchitectureReq type to parse things like !linux-any.-- -- David Fox <dsf@seereason.com> Sat, 13 Apr 2013 15:55:27 -0700--haskell-debian (3.70.2) unstable; urgency=low-- * Fix source repository location in cabal file.-- -- David Fox <dsf@seereason.com> Sat, 13 Apr 2013 11:11:45 -0700--haskell-debian (3.70.1) unstable; urgency=low-- * Add Show and Read instances for DebianVersion.-- -- David Fox <dsf@seereason.com> Tue, 09 Apr 2013 08:58:44 -0700--haskell-debian (3.70) unstable; urgency=low-- * Make Pretty instances for all the types in Debian.Relation:- Relation, Relations, BinPkgName, etc. Don't export the individual- functions like prettyRelation, clients can just call pretty.-- -- David Fox <dsf@seereason.com> Thu, 27 Dec 2012 05:50:56 -0800--haskell-debian (3.69.3) unstable; urgency=low-- * Add a missing newline in the generated log entry comments.-- -- David Fox <dsf@seereason.com> Wed, 26 Dec 2012 16:42:41 -0800--haskell-debian (3.69.2) unstable; urgency=low-- * Fix formatting of pretty printed changelog entries - There were two- newlines before the signature and none after, there should be one and- one.-- -- David Fox <dsf@seereason.com> Wed, 26 Dec 2012 16:05:49 -0800--haskell-debian (3.69.1) unstable; urgency=low-- * Fix the darcs repo path.-- -- David Fox <dsf@seereason.com> Mon, 19 Nov 2012 16:35:37 -0800--haskell-debian (3.69) unstable; urgency=low-- * Fix changelog formatting by adding a newtype named ChangeLog with- a Pretty instance.- * Rename parseLog -> parseEntries, add a parseChangeLog function.-- -- David Fox <dsf@seereason.com> Mon, 19 Nov 2012 11:10:37 -0800--haskell-debian (3.68) unstable; urgency=low-- * Fix the formatting of changelog entries (an extra newline was being- appended) and replace the functions prettyChanges, prettyChangesFile,- and prettyEntry with instances of Pretty.-- -- David Fox <dsf@seereason.com> Sun, 18 Nov 2012 07:04:28 -0800--haskell-debian (3.67) unstable; urgency=low-- * Eliminate the PkgName type, instead make BinPkgName and SrcPkgName- instances of a class named PkgName.-- -- David Fox <dsf@seereason.com> Sat, 17 Nov 2012 06:11:06 -0800--haskell-debian (3.66) unstable; urgency=low-- * Eliminate the use of the tiny pretty-class package, use the Pretty- class from ansi-wl-pprint instead.- * Improve the pretty printing of control files in terms of terminating- newlines and the newlines between paragraphs.- * Add some control file unit tests.-- -- David Fox <dsf@seereason.com> Sun, 11 Nov 2012 08:21:07 -0800--haskell-debian (3.65) unstable; urgency=low-- * Replace the Show instances for control files with Pretty instances.-- -- David Fox <dsf@seereason.com> Thu, 18 Oct 2012 12:26:37 -0700--haskell-debian (3.64.1) unstable; urgency=low-- * Fix typo in maintainer name.-- -- David Fox <dsf@seereason.com> Mon, 01 Oct 2012 09:19:45 -0700--haskell-debian (3.64) unstable; urgency=low-- * Eliminate dependency on progress, eliminate most of the Unixutils- dependency. We still need the ByteString versions of the functions- from System.Process, and a couple of other process functions.-- -- David Fox <dsf@seereason.com> Mon, 26 Mar 2012 17:25:17 -0700--haskell-debian (3.63) unstable; urgency=low-- * Use distinct types for Debian source package names and binary package- names everywhere, instead of strings.-- -- David Fox <dsf@seereason.com> Thu, 15 Mar 2012 12:33:05 -0700--haskell-debian (3.62.2) unstable; urgency=low-- * When parsing a list of package version relations, strip any lines- that begin with a '#' - they are comments.-- -- David Fox <dsf@seereason.com> Thu, 08 Mar 2012 10:22:13 -0800--haskell-debian (3.62.1) unstable; urgency=low-- * Export old relaxinfo functions and data structures for diagnosing- performance problems.-- -- David Fox <dsf@seereason.com> Thu, 01 Mar 2012 13:14:53 -0800--haskell-debian (3.62) unstable; urgency=low-- * New type for RelaxInfo, was RelaxInfo [(BinPkgName, Maybe SrcPkgName)]- now (SrcPkgName -> BinPkgName -> Bool).-- -- David Fox <dsf@seereason.com> Sat, 25 Feb 2012 18:07:16 -0800--haskell-debian (3.61.1) unstable; urgency=low-- * Add some Data and Typeable instances.-- -- David Fox <dsf@seereason.com> Thu, 12 Jan 2012 10:18:58 -0800--haskell-debian (3.61) unstable; urgency=low-- * Uploading to hackage.- * Remove crypto++ dependency (it was a mistake.)- * Add optimization flag to ghc-options- * Reference seereason darcs repo-- -- David Fox <dsf@seereason.com> Thu, 06 Oct 2011 09:04:38 -0700--haskell-debian (3.60) unstable; urgency=low-- * Replace bogus Show instances in Debian.Relation.Common with pretty- printing functions.- * Change cabal category from System to Debian (to join the dpkg package)- * Fix some of the compiler warnings.- * Change the Show instances in Debian.Version into pretty printing- functions too.-- -- David Fox <dsf@seereason.com> Sun, 25 Sep 2011 07:33:25 -0700--haskell-debian (3.59) unstable; urgency=low-- * Move the cabal-debian program into a separate pacakge.-- -- David Fox <dsf@seereason.com> Sun, 18 Sep 2011 06:43:36 -0700--haskell-debian (3.58-0.2) unstable; urgency=low-- * Remove the --deb-name option, all the package name special cases need- to be encoded in the Distribution.Package.Debian.Bundled.debianName function- so that we can fix both the names for the package we are building and- the names of its dependencies.-- -- David Fox <dsf@seereason.com> Thu, 25 Aug 2011 10:58:11 -0700--haskell-debian (3.58-0.1) unstable; urgency=low-- * Add --deb-name option, which sets the part of the package name between- the prefix libghc- and the suffix -dev.- * Add --epoch- * Add --deb-version-- -- David Fox <dsf@seereason.com> Wed, 24 Aug 2011 20:45:33 -0700--haskell-debian (3.58) unstable; urgency=low-- * Add a --ghc-version option to specify what the ghc version is in the- build environment, in case it is different from the one where the- autobuilder is being run. This affects what packages cabal-debian- thinks are built into the compiler. I have non-working code to actually- look in the environment for this information, but it depends on having- the compiler already installed there.- * Greatly sped-up cabal-debian.- * Add --build-dep to specify extra build dependencies.- * Generate a haskell-packagename-utils deb with all the executables, rather- than one deb per executable.-- -- David Fox <dsf@seereason.com> Fri, 19 Aug 2011 08:34:36 -0700--haskell-debian (3.57) unstable; urgency=low-- * Re-order generated dependencies so we are more likely to build- with newer packages installed.-- -- David Fox <dsf@seereason.com> Tue, 16 Aug 2011 19:04:29 -0700--haskell-debian (3.56-1) unstable; urgency=low-- * I created a new repository by importing the sid version of- haskell-debian-3.55 and then applying my patches. This is because- I don't understand why Marco's repository is so different from the- code in sid. At some point we will get this all sorted out.-- -- David Fox <dsf@seereason.com> Tue, 16 Aug 2011 13:00:15 -0700--haskell-debian (3.55-2) unstable; urgency=low-- * Build against parsec 3-- -- Joachim Breitner <nomeata@debian.org> Mon, 13 Jun 2011 18:13:10 +0200--haskell-debian (3.55-1) unstable; urgency=low-- * Use ghc instead of ghc6- * control: Standards-Version: Bump, no changes needed.- * control: haskell-debian-utils: Adds Recommends: apt-file.- * New upstream version.- * patches/dont-build-teste.patch: Update patch to new upstream- version.- * control: Update dependency on haxml to 1.20.*.- * control: Depends on utf8-string.-- -- Marco Túlio Gontijo e Silva <marcot@debian.org> Fri, 03 Jun 2011 22:49:23 -0300--haskell-debian (3.47-3) unstable; urgency=low-- * Re-add dont-build-tests.patch, lost in the previous upload -- -- Joachim Breitner <nomeata@debian.org> Thu, 24 Jun 2010 19:33:30 +0200--haskell-debian (3.47-2) unstable; urgency=low-- [ Erik de Castro Lopo ]- * debian/control: Fix lintian warnings.- * Add man pages for apt-get-build-depends, cabal-debian, debian-report and- fakechanges.- * Add libghc6-debian-doc.doc-base.- * Move installation of binaries and man pages from rules file to new file- haskell-debian-utils.install.-- [ Joachim Breitner ]- * Adjust copyright file per FTP master request. - * Bump haskell-regex-tdfa dependency-- -- Joachim Breitner <nomeata@debian.org> Thu, 24 Jun 2010 09:47:55 +0200--haskell-debian (3.47-1) unstable; urgency=low-- * Initial release.-- -- Joachim Breitner <nomeata@debian.org> Sun, 09 May 2010 19:08:20 +0200
debian.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 Name: debian-Version: 4.0.5+Version: 4.1 License: BSD-3-Clause License-File: debian/copyright Author: David Fox <dsf@seereason.com>, Jeremy Shaw <jeremy@seereason.com>, Clifford Beshers <beshers@seereason.com>@@ -9,13 +9,13 @@ Homepage: https://github.com/clinty/debian-haskell Build-Type: Simple Synopsis: Modules for working with the Debian package system-Tested-With: GHC ==9.6.2 || ==9.4.7 || ==9.2.8 || ==9.0.2 || ==8.10.7+Tested-With: GHC ==9.14.1 || ==9.12.3 || ==9.10.3 || ==9.8.4 || ==9.6.6 || ==9.4.8 Description: This library includes modules covering some basic data types defined by the Debian policy manual - version numbers, control file syntax, etc. extra-source-files: Test/Main.hs, Test/Changes.hs, Test/Dependencies.hs,- Test/Versions.hs, Test/Control.hs, changelog, debian/changelog, debian/changelog.pre-debian+ Test/Versions.hs, Test/Control.hs flag network-uri Description: Get Network.URI from the network-uri package@@ -24,7 +24,7 @@ Library Hs-Source-Dirs: src Build-Depends:- base >= 4 && < 5,+ base >= 4.8 && < 5, bytestring, bz2, Cabal >= 2.2.0.1,@@ -39,6 +39,7 @@ ListLike >= 4.3.5, mtl, old-locale,+ ordered-containers >= 0.2, parsec >= 2 && <4, pretty >= 1.1.2, process,@@ -123,10 +124,18 @@ default-language: Haskell2010 Test-Suite debian-tests- Type: exitcode-stdio-1.0- Hs-Source-Dirs: Test- Main-Is: Main.hs- Build-Depends: base, Cabal, debian, HUnit, parsec, pretty >= 1.1.2, regex-tdfa, text+ Type: exitcode-stdio-1.0+ Hs-Source-Dirs: Test+ Main-Is: Main.hs+ Build-Depends: base+ , Cabal+ , debian+ , HUnit+ , ordered-containers >= 0.2+ , parsec+ , pretty >= 1.1.2+ , regex-tdfa+ , text other-modules: Apt , Changes , Control
− debian/changelog
@@ -1,596 +0,0 @@-haskell-debian (3.95) unstable; urgency=medium-- * Clean up error handling and monad transformers.- * Move source code into src subdirectory to avoid build problems on case- insensitive HFS partitions.- * Move Debian.Except module to Extra.Except in sr-extra package.-- -- David Fox <dsf@seereason.com> Tue, 12 Feb 2019 16:38:30 -0800--haskell-debian (3.94) unstable; urgency=medium-- * Additions to Debian.URI.-- -- David Fox <dsf@seereason.com> Sat, 02 Feb 2019 08:18:12 -0800--haskell-debian (3.93.6) unstable; urgency=medium-- * Throw a UserError when dirFromURI gets 404 Not Found-- -- David Fox <dsf@seereason.com> Fri, 25 Jan 2019 12:12:56 -0800--haskell-debian (3.93.5) unstable; urgency=medium-- * Restore import of <$> for older versions of base.-- -- David Fox <dsf@x1> Fri, 18 Jan 2019 19:04:40 -0800--haskell-debian (3.93.4) unstable; urgency=medium-- * Handle errors in the shell commands run by functions in Debian.URI-- -- David Fox <dsf@seereason.com> Fri, 18 Jan 2019 06:25:22 -0800--haskell-debian (3.93.3) unstable; urgency=medium-- * Changes for ghc-8.6-- -- David Fox <dsf@seereason.com> Tue, 01 Jan 2019 15:57:16 -0800--haskell-debian (3.93.2) unstable; urgency=low-- * Put SHA256 checksums into package info rather than obsolete md5-- -- David Fox <dsf@foxthompson.net> Thu, 13 Jul 2017 16:00:10 -0700--haskell-debian (3.92.1) unstable; urgency=low-- * Import mconcat for older base compatibility.-- -- David Fox <dsf@foxthompson.net> Wed, 12 Jul 2017 09:03:18 -0700--haskell-debian (3.92) unstable; urgency=low-- * Support parsing of the option list in sources.list lines - see- https://manpages.debian.org/stretch/apt/sources.list.5.en.html- * Move tests of sources.list pretty and parse into Debian.Sources- * Change sig of parseSourceLine' to return Either rather than Maybe-- -- David Fox <dsf@foxthompson.net> Wed, 12 Jul 2017 06:30:01 -0700--haskell-debian (3.91.2) unstable; urgency=low-- * Work around for https://ghc.haskell.org/trac/ghc/ticket/12130- * Add travis config for ghc-8.0- * fix test suite- * Make changelog a duplicate of debian/changelog- * eliminate error call in parseChangeLog-- -- David Fox <dsf@foxthompson.net> Fri, 11 Nov 2016 21:31:09 -0800--haskell-debian (3.91) unstable; urgency=low-- * Eliminate error call in parseChangeLog-- -- David Fox <dsf@seereason.com> Thu, 06 Oct 2016 09:42:06 -0700--haskell-debian (3.89) unstable; urgency=low-- * Change signature of parseDebianVersion to return Either ParseError DebianVerions.- * Provide the old signature as parseDebianVersion'.-- -- David Fox <dsf@seereason.com> Mon, 21 Sep 2015 15:23:32 -0700--haskell-debian (3.88.1) unstable; urgency=low-- * Make ghc-7.10.2 a required travis test- * Sort out the List/Map/Set imports in Debian.GenBuildDeps-- -- David Fox <dsf@seereason.com> Mon, 24 Aug 2015 10:29:00 -0700--haskell-debian (3.88) unstable; urgency=low-- * Improved handling of white space- * Speed up Debian.GenBuildDeps.buildable-- -- David Fox <dsf@seereason.com> Mon, 24 Aug 2015 06:29:29 -0700--haskell-debian (3.87.2) unstable; urgency=low-- * Functor, Applicative, and Alternative instances for ghc-7.10- * Fiddle with imports and ifdefs to fix build- * Switch from ansi-wl-pprint package to pretty-- -- David Fox <dsf@seereason.com> Sun, 22 Mar 2015 12:55:39 -0700--haskell-debian (3.87.1) unstable; urgency=low-- * Version bump to match cabal-- -- David Fox <dsf@seereason.com> Mon, 02 Mar 2015 13:13:00 -0800--haskell-debian (3.86) unstable; urgency=low-- * Avoid dependency on th-orphans- * Turn test program into a test-suite- * add DEB_ENABLE_TESTS = yes to debian/rules- * Support builds on older versions of GHC-- -- David Fox <dsf@seereason.com> Sun, 15 Feb 2015 07:32:42 -0800--haskell-debian (3.85.3) unstable; urgency=low-- * Handle new pretty-1.1.2 package, which supercedes prettyclass.- * Make a change to trigger a travis build.-- -- David Fox <dsf@seereason.com> Fri, 06 Feb 2015 10:18:30 -0800--haskell-debian (3.85.2) unstable; urgency=low-- * If any of the lines of a multi-line control file field are not- indented, indent all the lines by one space.- * When formatting multi-line control file fields, make sure empty- lines are replaced by a single (indented) '.'.-- -- David Fox <dsf@seereason.com> Wed, 04 Feb 2015 11:23:42 -0800--haskell-debian (3.85.1) unstable; urgency=low-- * Allow build with process-extras-0.2.0-- -- David Fox <dsf@seereason.com> Thu, 04 Dec 2014 06:23:38 -0800--haskell-debian (3.85) unstable; urgency=low-- * Fix some cases where the pretty printer output parsed to something- different from its input-- -- David Fox <dsf@seereason.com> Sat, 29 Nov 2014 09:27:42 -0800--haskell-debian (3.84.1) unstable; urgency=low-- * Remove a Show instance that overlaps the one derived in the Control- type declaration.-- -- David Fox <dsf@seereason.com> Sat, 29 Nov 2014 05:18:40 -0800--haskell-debian (3.84) unstable; urgency=low-- * Replace the Debian.Pretty module with a module copied from the- pretty-class package, Text.PrettyPrint.HughesPJClass. This is almost- identical to the module in Lennart's prettyclass package, but has what- I believe to be a more correct pPrintList method for type Char.-- -- David Fox <dsf@seereason.com> Sun, 14 Sep 2014 12:37:57 -0700--haskell-debian (3.83.4.2) unstable; urgency=low-- * Require a better version of process-listlike.- * Trigger a new build on hackage to get documentation.-- -- David Fox <dsf@seereason.com> Tue, 02 Sep 2014 08:29:32 -0700--haskell-debian (3.83.4.1) unstable; urgency=low-- * Merge change from version 3.83.3.1 (which only went to hackage)- and 3.83.4 (whose version change didn't get checked into git.)- * Require ListLike >= 4.- * Fix repository type in the cabal file.-- -- David Fox <dsf@seereason.com> Tue, 02 Sep 2014 07:24:27 -0700--haskell-debian (3.83.3) unstable; urgency=low-- * Moved repository to https://github.com/ddssff/debian-haskell-- -- David Fox <dsf@seereason.com> Thu, 28 Aug 2014 08:36:16 -0700--haskell-debian (3.83.2) unstable; urgency=low-- * Add some Read, Show, Data, and Typeable instances.-- -- David Fox <dsf@seereason.com> Mon, 25 Aug 2014 03:47:38 -0700--haskell-debian (3.83.1) unstable; urgency=low-- * Support new network-uri package.-- -- David Fox <dsf@seereason.com> Sun, 24 Aug 2014 17:17:55 -0700--haskell-debian (3.83) unstable; urgency=low-- * Add a Loc value to the ControlFileError type, the template- haskell location where the exception was created.-- -- David Fox <dsf@seereason.com> Thu, 07 Aug 2014 13:54:27 -0700--haskell-debian (3.82) unstable; urgency=low-- * Add Debian.Control.Policy which has knowledge of specific fields, such- as Source and Package, which are expected to be present in a debian- control file.- * Replace a 3-tuple in Debian.GenBuildDeps with a record named- ReadyTargets.- * Add Debian.Pretty.display :: Pretty a => a -> String-- -- David Fox <dsf@seereason.com> Wed, 06 Aug 2014 06:13:15 -0700--haskell-debian (3.81.3) unstable; urgency=low-- * Remove spurious dependency on Cabal.-- -- David Fox <dsf@seereason.com> Tue, 15 Jul 2014 06:58:42 -0700--haskell-debian (3.81.2) unstable; urgency=low-- * Update debian build dependencies.-- -- David Fox <dsf@seereason.com> Sat, 05 Jul 2014 22:30:43 -0700--haskell-debian (3.81.1) unstable; urgency=low-- * Modernize cabal file.-- -- David Fox <dsf@seereason.com> Sat, 17 May 2014 06:36:43 -0700--haskell-debian (3.81) unstable; urgency=low-- * Replace library pretty and library ansi-wl-pprint with an ultra-simple- custom pretty printing library in Debian.Pretty.-- -- David Fox <dsf@seereason.com> Sun, 12 Jan 2014 07:34:21 -0800--haskell-debian (3.80.2) unstable; urgency=low-- * Neil Mayhew's patch to greatly speed parsing of control files.-- -- David Fox <dsf@seereason.com> Mon, 06 Jan 2014 04:36:37 -0800--haskell-debian (3.80.1) unstable; urgency=low-- * Fix for fakechanges from Neil Mayhew - don't reject all .deb files.-- -- David Fox <dsf@seereason.com> Mon, 30 Dec 2013 08:02:08 -0800--haskell-debian (3.80) unstable; urgency=low-- * Make the SliceName type an alias for ReleaseName. Pretty sure- they are the same thing.-- -- David Fox <dsf@seereason.com> Thu, 19 Dec 2013 11:41:38 -0800--haskell-debian (3.79.4) unstable; urgency=low-- * Add changelog to list of extra source files so it is added to- the tarball.-- -- David Fox <dsf@seereason.com> Tue, 15 Oct 2013 07:36:41 -0700--haskell-debian (3.79.3) unstable; urgency=low-- * Make the changelog visible in hackage2.-- -- David Fox <dsf@seereason.com> Tue, 15 Oct 2013 07:33:02 -0700--haskell-debian (3.79.2) unstable; urgency=low-- * Allow package to build with either process-listlike or process-extra.-- -- David Fox <dsf@seereason.com> Fri, 04 Oct 2013 09:02:48 -0700--haskell-debian (3.79.1) unstable; urgency=low-- * Switch from using package process-extras to process-listlike.-- -- David Fox <dsf@seereason.com> Wed, 05 Jun 2013 06:22:26 -0700--haskell-debian (3.79) unstable; urgency=low-- * Efficiency fix for the Text instance of Debian.Control.- * Get rid of the Data.Text parser, instead parse the ByteString and- then decode the resulting control file. Much faster I think.-- -- David Fox <dsf@seereason.com> Mon, 29 Apr 2013 21:33:55 -0700--haskell-debian (3.78) unstable; urgency=low-- * Change URI' to simplify its Read and Show instances, it is now just a- private constructor applied to a string for which parseURI was known- to succeed.- * Add changelog.pre-debian to the source file list-- -- David Fox <dsf@seereason.com> Sun, 28 Apr 2013 12:51:11 -0700--haskell-debian (3.77) unstable; urgency=low-- * Add a URI' type that is a wrapper around URI with working Read and- Show instances.-- -- David Fox <dsf@seereason.com> Fri, 26 Apr 2013 11:00:10 -0700--haskell-debian (3.76) unstable; urgency=low-- * Add Debian.UTF, with support for reading and decoding "almost-utf8" files-- -- David Fox <dsf@seereason.com> Thu, 25 Apr 2013 07:56:45 -0700--haskell-debian (3.75) unstable; urgency=low-- * If we get a UTF8 decoding error just insert the offending character- into the output stream. There is an-- -- David Fox <dsf@seereason.com> Wed, 24 Apr 2013 15:30:30 -0700--haskell-debian (3.74) unstable; urgency=low-- * Add Debian.Relation.Text and Debian.Version.Text.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 18:11:00 -0700--haskell-debian (3.73) unstable; urgency=low-- * Use Text instead of ByteString in the functions exported- by Debian.Control.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 17:59:21 -0700--haskell-debian (3.72) unstable; urgency=low-- * Add Debian.Control.Text, Data.Text support for control files.-- -- David Fox <dsf@seereason.com> Tue, 23 Apr 2013 17:19:22 -0700--haskell-debian (3.71) unstable; urgency=low-- * Refine the ArchitectureReq type to parse things like !linux-any.-- -- David Fox <dsf@seereason.com> Sat, 13 Apr 2013 15:55:27 -0700--haskell-debian (3.70.2) unstable; urgency=low-- * Fix source repository location in cabal file.-- -- David Fox <dsf@seereason.com> Sat, 13 Apr 2013 11:11:45 -0700--haskell-debian (3.70.1) unstable; urgency=low-- * Add Show and Read instances for DebianVersion.-- -- David Fox <dsf@seereason.com> Tue, 09 Apr 2013 08:58:44 -0700--haskell-debian (3.70) unstable; urgency=low-- * Make Pretty instances for all the types in Debian.Relation:- Relation, Relations, BinPkgName, etc. Don't export the individual- functions like prettyRelation, clients can just call pretty.-- -- David Fox <dsf@seereason.com> Thu, 27 Dec 2012 05:50:56 -0800--haskell-debian (3.69.3) unstable; urgency=low-- * Add a missing newline in the generated log entry comments.-- -- David Fox <dsf@seereason.com> Wed, 26 Dec 2012 16:42:41 -0800--haskell-debian (3.69.2) unstable; urgency=low-- * Fix formatting of pretty printed changelog entries - There were two- newlines before the signature and none after, there should be one and- one.-- -- David Fox <dsf@seereason.com> Wed, 26 Dec 2012 16:05:49 -0800--haskell-debian (3.69.1) unstable; urgency=low-- * Fix the darcs repo path.-- -- David Fox <dsf@seereason.com> Mon, 19 Nov 2012 16:35:37 -0800--haskell-debian (3.69) unstable; urgency=low-- * Fix changelog formatting by adding a newtype named ChangeLog with- a Pretty instance.- * Rename parseLog -> parseEntries, add a parseChangeLog function.-- -- David Fox <dsf@seereason.com> Mon, 19 Nov 2012 11:10:37 -0800--haskell-debian (3.68) unstable; urgency=low-- * Fix the formatting of changelog entries (an extra newline was being- appended) and replace the functions prettyChanges, prettyChangesFile,- and prettyEntry with instances of Pretty.-- -- David Fox <dsf@seereason.com> Sun, 18 Nov 2012 07:04:28 -0800--haskell-debian (3.67) unstable; urgency=low-- * Eliminate the PkgName type, instead make BinPkgName and SrcPkgName- instances of a class named PkgName.-- -- David Fox <dsf@seereason.com> Sat, 17 Nov 2012 06:11:06 -0800--haskell-debian (3.66) unstable; urgency=low-- * Eliminate the use of the tiny pretty-class package, use the Pretty- class from ansi-wl-pprint instead.- * Improve the pretty printing of control files in terms of terminating- newlines and the newlines between paragraphs.- * Add some control file unit tests.-- -- David Fox <dsf@seereason.com> Sun, 11 Nov 2012 08:21:07 -0800--haskell-debian (3.65) unstable; urgency=low-- * Replace the Show instances for control files with Pretty instances.-- -- David Fox <dsf@seereason.com> Thu, 18 Oct 2012 12:26:37 -0700--haskell-debian (3.64.1) unstable; urgency=low-- * Fix typo in maintainer name.-- -- David Fox <dsf@seereason.com> Mon, 01 Oct 2012 09:19:45 -0700--haskell-debian (3.64) unstable; urgency=low-- * Eliminate dependency on progress, eliminate most of the Unixutils- dependency. We still need the ByteString versions of the functions- from System.Process, and a couple of other process functions.-- -- David Fox <dsf@seereason.com> Mon, 26 Mar 2012 17:25:17 -0700--haskell-debian (3.63) unstable; urgency=low-- * Use distinct types for Debian source package names and binary package- names everywhere, instead of strings.-- -- David Fox <dsf@seereason.com> Thu, 15 Mar 2012 12:33:05 -0700--haskell-debian (3.62.2) unstable; urgency=low-- * When parsing a list of package version relations, strip any lines- that begin with a '#' - they are comments.-- -- David Fox <dsf@seereason.com> Thu, 08 Mar 2012 10:22:13 -0800--haskell-debian (3.62.1) unstable; urgency=low-- * Export old relaxinfo functions and data structures for diagnosing- performance problems.-- -- David Fox <dsf@seereason.com> Thu, 01 Mar 2012 13:14:53 -0800--haskell-debian (3.62) unstable; urgency=low-- * New type for RelaxInfo, was RelaxInfo [(BinPkgName, Maybe SrcPkgName)]- now (SrcPkgName -> BinPkgName -> Bool).-- -- David Fox <dsf@seereason.com> Sat, 25 Feb 2012 18:07:16 -0800--haskell-debian (3.61.1) unstable; urgency=low-- * Add some Data and Typeable instances.-- -- David Fox <dsf@seereason.com> Thu, 12 Jan 2012 10:18:58 -0800--haskell-debian (3.61) unstable; urgency=low-- * Uploading to hackage.- * Remove crypto++ dependency (it was a mistake.)- * Add optimization flag to ghc-options- * Reference seereason darcs repo-- -- David Fox <dsf@seereason.com> Thu, 06 Oct 2011 09:04:38 -0700--haskell-debian (3.60) unstable; urgency=low-- * Replace bogus Show instances in Debian.Relation.Common with pretty- printing functions.- * Change cabal category from System to Debian (to join the dpkg package)- * Fix some of the compiler warnings.- * Change the Show instances in Debian.Version into pretty printing- functions too.-- -- David Fox <dsf@seereason.com> Sun, 25 Sep 2011 07:33:25 -0700--haskell-debian (3.59) unstable; urgency=low-- * Move the cabal-debian program into a separate pacakge.-- -- David Fox <dsf@seereason.com> Sun, 18 Sep 2011 06:43:36 -0700--haskell-debian (3.58-0.2) unstable; urgency=low-- * Remove the --deb-name option, all the package name special cases need- to be encoded in the Distribution.Package.Debian.Bundled.debianName function- so that we can fix both the names for the package we are building and- the names of its dependencies.-- -- David Fox <dsf@seereason.com> Thu, 25 Aug 2011 10:58:11 -0700--haskell-debian (3.58-0.1) unstable; urgency=low-- * Add --deb-name option, which sets the part of the package name between- the prefix libghc- and the suffix -dev.- * Add --epoch- * Add --deb-version-- -- David Fox <dsf@seereason.com> Wed, 24 Aug 2011 20:45:33 -0700--haskell-debian (3.58) unstable; urgency=low-- * Add a --ghc-version option to specify what the ghc version is in the- build environment, in case it is different from the one where the- autobuilder is being run. This affects what packages cabal-debian- thinks are built into the compiler. I have non-working code to actually- look in the environment for this information, but it depends on having- the compiler already installed there.- * Greatly sped-up cabal-debian.- * Add --build-dep to specify extra build dependencies.- * Generate a haskell-packagename-utils deb with all the executables, rather- than one deb per executable.-- -- David Fox <dsf@seereason.com> Fri, 19 Aug 2011 08:34:36 -0700--haskell-debian (3.57) unstable; urgency=low-- * Re-order generated dependencies so we are more likely to build- with newer packages installed.-- -- David Fox <dsf@seereason.com> Tue, 16 Aug 2011 19:04:29 -0700--haskell-debian (3.56-1) unstable; urgency=low-- * I created a new repository by importing the sid version of- haskell-debian-3.55 and then applying my patches. This is because- I don't understand why Marco's repository is so different from the- code in sid. At some point we will get this all sorted out.-- -- David Fox <dsf@seereason.com> Tue, 16 Aug 2011 13:00:15 -0700--haskell-debian (3.55-2) unstable; urgency=low-- * Build against parsec 3-- -- Joachim Breitner <nomeata@debian.org> Mon, 13 Jun 2011 18:13:10 +0200--haskell-debian (3.55-1) unstable; urgency=low-- * Use ghc instead of ghc6- * control: Standards-Version: Bump, no changes needed.- * control: haskell-debian-utils: Adds Recommends: apt-file.- * New upstream version.- * patches/dont-build-teste.patch: Update patch to new upstream- version.- * control: Update dependency on haxml to 1.20.*.- * control: Depends on utf8-string.-- -- Marco Túlio Gontijo e Silva <marcot@debian.org> Fri, 03 Jun 2011 22:49:23 -0300--haskell-debian (3.47-3) unstable; urgency=low-- * Re-add dont-build-tests.patch, lost in the previous upload -- -- Joachim Breitner <nomeata@debian.org> Thu, 24 Jun 2010 19:33:30 +0200--haskell-debian (3.47-2) unstable; urgency=low-- [ Erik de Castro Lopo ]- * debian/control: Fix lintian warnings.- * Add man pages for apt-get-build-depends, cabal-debian, debian-report and- fakechanges.- * Add libghc6-debian-doc.doc-base.- * Move installation of binaries and man pages from rules file to new file- haskell-debian-utils.install.-- [ Joachim Breitner ]- * Adjust copyright file per FTP master request. - * Bump haskell-regex-tdfa dependency-- -- Joachim Breitner <nomeata@debian.org> Thu, 24 Jun 2010 09:47:55 +0200--haskell-debian (3.47-1) unstable; urgency=low-- * Initial release.-- -- Joachim Breitner <nomeata@debian.org> Sun, 09 May 2010 19:08:20 +0200
− debian/changelog.pre-debian
@@ -1,625 +0,0 @@-haskell-debian (3.53) unstable; urgency=low-- * Changes for unixutils-1.30- * Changes for unixutils-1.31-- -- David Fox <dsf@seereason.com> Sun, 26 Dec 2010 09:12:20 -0800--haskell-debian (3.52) unstable; urgency=low-- * Update to work with Cabal 1.10, shipped with ghc7.-- -- David Fox <dsf@seereason.com> Sat, 20 Nov 2010 07:54:52 -0800--haskell-debian (3.51) unstable; urgency=low-- * Remove dependency on haskell-utils, it is no longer in the repository.- * Change the doc package prefix generated by cabal-debian from haskell-- to libghc6-, this is the prefix chosen by the Debian packaging team.- and I believe that if haskell- is used the documentation ends up in- a directory in /usr/share/doc with the libghc6- prefix anyway.-- -- David Fox <dsf@seereason.com> Mon, 19 Jul 2010 10:37:39 -0700--haskell-debian (3.50) unstable; urgency=low-- * Switch back to regex-tdfa, regex-posix can't match extended ASCII- like "\250" =~ "[\249\250]"-- -- David Fox <dsf@seereason.com> Sun, 18 Jul 2010 22:34:13 +0100--haskell-debian (3.49) unstable; urgency=low-- * Add Show instances.-- -- David Fox <dsf@seereason.com> Fri, 16 Jul 2010 14:35:15 -0700--haskell-debian (3.48) unstable; urgency=low-- * Switch from regex-tdfa to regex-posix to avoid this failure, which- seems to have appeared going from 1.1.2 to 1.1.3:- "Explict error in module Text.Regex.TDFA.NewDFA : compressOrbit,1"-- -- David Fox <dsf@seereason.com> Fri, 16 Jul 2010 10:43:13 -0700--haskell-debian (3.47) unstable; urgency=low-- * require HaXml < 1.14-- -- Jeremy Shaw <jeremy@seereason.com> Wed, 05 May 2010 14:23:26 -0500--haskell-debian (3.46) unstable; urgency=low-- * Relax the Cabal >= 1.9 requirement by conditionalizing the code- that is affected by the change.- * Remove the applicative-extras dependency, instead of Failing a- use Either [String] a.- * Include Joachim Breitner's fixes for the Relation Ord instance.- * Do case insensitive field name comparisons in Debian.Control.-- -- David Fox <dsf@seereason.com> Tue, 04 May 2010 11:55:24 -0700--haskell-debian (3.45) unstable; urgency=low-- * Don't require targets to be Show instance in GenBuildDeps.buildable.- * Eliminate use of OldException.-- -- David Fox <dsf@seereason.com> Fri, 19 Feb 2010 06:47:04 -0800--haskell-debian (3.44) unstable; urgency=low-- * Add a rule to debian/rules to install the executables.-- -- David Fox <dsf@seereason.com> Thu, 18 Feb 2010 12:16:18 -0800--haskell-debian (3.43) unstable; urgency=low-- * Add a strict version of fileFromURI.- * Catch errors thrown by hGetContents when reading control files-- -- David Fox <dsf@seereason.com> Sat, 02 Jan 2010 12:29:45 -0800--haskell-debian (3.42) unstable; urgency=low-- * Fix signature regex so we always split at the first pair of spaces.-- -- David Fox <dsf@seereason.com> Tue, 29 Dec 2009 19:25:27 -0800--haskell-debian (3.41) unstable; urgency=low-- * Use Text.Regex.TDFA for parsing changelog instead of Text.Regex.Compat, it- can handle Unicode.- * Run unit tests during build, add some changelog unit tests.-- -- David Fox <dsf@seereason.com> Tue, 29 Dec 2009 12:22:40 -0800--haskell-debian (3.40) unstable; urgency=low-- * Remove the now unused Extra.CIO and Debian.Extra.CIO modules-- -- David Fox <dsf@seereason.com> Mon, 14 Sep 2009 09:41:52 -0700--haskell-debian (3.39) unstable; urgency=low-- * Remove dependency on Extra- * Remove debian directory from .cabal-- -- Jeremy Shaw <jeremy@seereason.com> Wed, 09 Sep 2009 11:57:03 -0500--haskell-debian (3.38) unstable; urgency=low-- * Use parsec 3-- -- Jeremy Shaw <jeremy@seereason.com> Tue, 28 Jul 2009 19:12:03 -0500--haskell-debian (3.37) unstable; urgency=low-- * Escape the vendor tag before embedding it in a regular expression.- (I wrote an escapeForRegex that only escapes +, the character I want- to use right now. This function should be available somewhere in the- haskell standard libraries, right?)- * Moved the VersionPolicy module to haskell-debian-repo.-- -- David Fox <dsf@seereason.com> Thu, 23 Jul 2009 07:38:00 -0700--haskell-debian (3.36) unstable; urgency=low-- * Make the changelog parser more liberal, allow a tab character at- the beginning of a text line instead of two spaces. This parses- the new changelog entry for hscolour.-- -- David Fox <dsf@seereason.com> Tue, 21 Jul 2009 06:45:24 -0700--haskell-debian (3.35) unstable; urgency=low-- * removed dependencies on Extra.HaXml- * Updated to base >= 4 && < 5- * Fixed test suite-- -- Jeremy Shaw <jeremy@seereason.com> Wed, 01 Jul 2009 09:48:00 -0500--haskell-debian (3.34) unstable; urgency=low-- * cabal-debian: move -doc packages to Build-Depends-Indep- * cabal-debian: properly nub Build-Depends and Build-Depends-Indep-- -- Jeremy Shaw <jeremy@seereason.com> Sun, 03 May 2009 12:15:52 -0500--haskell-debian (3.33) unstable; urgency=low-- * cabal-debian: Setion: libdevel -> haskell-- -- Jeremy Shaw <jeremy@seereason.com> Thu, 16 Apr 2009 16:22:35 -0500--haskell-debian (3.32) unstable; urgency=low-- * Add fields to Debian.Changes.ChangedFileSpec for SHA1 and SHA256- checksums.-- -- David Fox <dsf@seereason.com> Fri, 03 Apr 2009 07:14:59 -0700--haskell-debian (3.31) unstable; urgency=low-- * update to use newer haskell-devscripts which includes hlibrary.mk- * change libghc6-*-doc to haskell-*-doc- * move haskell-*-doc to Section: doc- * build haskell-*-doc for Architecture 'all' instead of 'any'- * make ghc6-doc and haddock Build-Depends-Indep- * update Standards-Version to 3.8.1- * depend on cdbs and haskell-devscripts instead of haskell-cdbs- * only use one space at the beginning of lines in the long description- * add ${misc:Depends} to Depends lines-- -- Jeremy Shaw <jeremy@seereason.com> Mon, 23 Mar 2009 20:18:41 -0500--haskell-debian (3.30) unstable; urgency=low-- * Move the modules for dealing with the repository into a new package- named haskell-debian-repo. The cabal-debian tool remains in this- package, so this split means that the repo package can change without- triggering massive rebuilding due to build dependencies on- cabal-debian.-- -- David Fox <dsf@seereason.com> Wed, 18 Feb 2009 06:36:25 -0800--haskell-debian (3.29) unstable; urgency=low-- * Add System.Chroot to list of exported modules- * Reduce number of modules loaded by CabalDebian.-- -- David Fox <dsf@seereason.com> Tue, 10 Feb 2009 17:06:47 -0800--haskell-debian (3.28) unstable; urgency=low-- * Add System.Chroot.useEnv, and use it to allow contact with the ssh- agent from inside of changeroots.-- -- David Fox <dsf@seereason.com> Mon, 09 Feb 2009 11:18:59 -0800--haskell-debian (3.27) unstable; urgency=low-- * Added apt-get-build-deps. not librarized yet :(-- -- Jeremy Shaw <jeremy@seereason.com> Fri, 06 Feb 2009 18:52:36 -0600--haskell-debian (3.26) unstable; urgency=low-- * Improve the code that decides whether the sources.list has changed,- to avoid recreating the build environment as often.-- -- David Fox <dsf@seereason.com> Thu, 05 Feb 2009 08:56:32 -0800--haskell-debian (3.25) unstable; urgency=low-- * Use State monad instead of RWS monad for AptIO- * Rename IOState to AptState-- -- David Fox <dsf@seereason.com> Wed, 04 Feb 2009 09:34:24 -0800--haskell-debian (3.24) unstable; urgency=low-- * Use Data.Time instead of System.Time- * Fix code to compute the elapsed time for the dpkg-buildpackage.- * Restore some generated dependencies that got dropped out of- cabal-debian.-- -- David Fox <dsf@seereason.com> Sat, 31 Jan 2009 08:45:51 -0800--haskell-debian (3.23) unstable; urgency=low-- * Eliminate the use of EnvPath in most places, just use a regular- path instead. There were very few places where we actually were- inside a changeroot.-- -- David Fox <dsf@seereason.com> Thu, 29 Jan 2009 16:48:23 -0800--haskell-debian (3.22) unstable; urgency=low-- * cabal-debian now has autodetection of ghc6 bundled packages-- -- Jeremy Shaw <jeremy@seereason.com> Thu, 29 Jan 2009 15:26:25 -0600--haskell-debian (3.21) unstable; urgency=low-- * Don't write out postinst and postrm for the doc package, they are- now automatically added by haskell-cdbs.-- -- David Fox <dsf@seereason.com> Tue, 27 Jan 2009 10:14:20 -0800--haskell-debian (3.20) unstable; urgency=low-- * Modify the buildable function in GenBuildDeps so it returns more- info about the ready packages and what packages each one blocks.-- -- David Fox <dsf@seereason.com> Tue, 27 Jan 2009 06:55:39 -0800--haskell-debian (3.19) unstable; urgency=low-- * Make cabal-debian depend on haskell-cdbs, it used to be the opposite.-- -- David Fox <dsf@seereason.com> Sun, 25 Jan 2009 15:22:41 -0800--haskell-debian (3.18) unstable; urgency=low-- * Modify cabal-debian to it creates debianizations that use the new- haskell-cdbs package instead of our modified haskell-devscripts with- the cdbs file hlibrary.mk added in.- * Have cabal-debian explain what changes it is making to the dependency- list.-- -- David Fox <dsf@seereason.com> Sat, 24 Jan 2009 07:27:47 -0800--haskell-debian (3.17) unstable; urgency=low-- * Have cabal-debian --substvar print its result to stderr.-- -- David Fox <dsf@seereason.com> Fri, 23 Jan 2009 10:33:48 -0800--haskell-debian (3.16) unstable; urgency=low-- * Back out register/unregister stuff, just have cabal-debian die if the- package doesn't have a library section.-- -- David Fox <dsf@seereason.com> Thu, 22 Jan 2009 15:33:43 -0800--haskell-debian (3.15) unstable; urgency=low-- * Don't leave package registered after computing lbi.-- -- David Fox <dsf@seereason.com> Thu, 22 Jan 2009 14:19:23 -0800--haskell-debian (3.14) unstable; urgency=low-- * Fix a bug that resulted in a fromJust Nothing error.-- -- David Fox <dsf@seereason.com> Thu, 22 Jan 2009 09:59:16 -0800--haskell-debian (3.13) unstable; urgency=low-- * Add the cabal-debian executable to this package to ease bootstrapping.-- -- David Fox <dsf@seereason.com> Fri, 16 Jan 2009 06:41:40 -0800--haskell-debian (3.12) unstable; urgency=low-- * Export some functions and types from Debian.Apt.Index that were- already being used by other applications- * Allow relation parser to skip empty relations like such as: a, ,c-- -- Jeremy Shaw <jeremy@n-heptane.com> Fri, 09 Jan 2009 18:22:09 -0600--haskell-debian (3.11) unstable; urgency=low-- * Gather code to retrieve the text an URI points to into the Debian.URI- module.-- -- David Fox <dsf@seereason.com> Tue, 04 Nov 2008 13:53:33 -0800--haskell-debian (3.10) unstable; urgency=low-- * Change name and arch of doc package.-- -- David Fox <dsf@seereason.com> Sat, 20 Sep 2008 12:07:38 -0700--haskell-debian (3.9) unstable; urgency=low-- * Compute exactly which packages participate in dependency cycles.-- -- David Fox <dsf@seereason.com> Mon, 18 Aug 2008 12:42:56 -0700--haskell-debian (3.8) unstable; urgency=low-- * Don't add an extra newline at the end of the Files section when- editing the .changes file.-- -- David Fox <dsf@seereason.com> Mon, 21 Jul 2008 10:57:49 -0700--haskell-debian (3.7) unstable; urgency=low-- * Eliminate all direct uses of TIO, we always use CIO m => so- that all functions can be called from the regular IO monad.-- -- David Fox <dsf@seereason.com> Sat, 19 Jul 2008 10:27:49 -0700--haskell-debian (3.6) unstable; urgency=low-- * Remove useless arguments from insertRelease.- * Replace debianization-- -- David Fox <dsf@seereason.com> Tue, 01 Jul 2008 10:41:22 -0700--haskell-debian (3.5) unstable; urgency=low-- * Debianization generated by cabal-debian-- -- David Fox <dsf@seereason.com> Sat, 28 Jun 2008 15:49:07 -0700--haskell-debian (3.4) unstable; urgency=low-- * Even correcter code for doing Relax-Depends. The relaxDeps function- is now seperate from the other build depenency functions, which makes- things a bit simpler and easier to document.-- -- David Fox <dsf@seereason.com> Wed, 18 Jun 2008 21:00:36 +0000--haskell-debian (3.3) unstable; urgency=low-- * Add code to correctly implement Relax-Depends for non-global- dependencies.-- -- David Fox <dsf@seereason.com> Sat, 31 May 2008 07:31:15 +0000--haskell-debian (3.2) unstable; urgency=low-- * Redo the buildable function in GenBuildDeps.- * Improve message from OSImage.updateLists.-- -- David Fox <dsf@seereason.com> Sat, 24 May 2008 13:06:09 +0000--haskell-debian (3.1-1) unstable; urgency=low-- * Version number follies.-- -- David Fox <dsf@seereason.com> Thu, 22 May 2008 16:18:47 -0700--haskell-debian (3.1) unstable; urgency=low-- * Re-worked the build dependency computation-- -- David Fox <dsf@seereason.com> Thu, 22 May 2008 10:59:22 -0700--haskell-debian (3.0) unstable; urgency=low-- * Re-organization of module heirarchy.-- -- David Fox <dsf@seereason.com> Mon, 19 May 2008 12:47:25 -0700--haskell-debian (2.28) unstable; urgency=low-- * Eliminate use of haskell-ugly library.-- -- David Fox <dsf@seereason.com> Wed, 14 May 2008 12:30:40 -0700--haskell-debian (2.27) unstable; urgency=low-- * Changes for switch to lazy bytestrings in haskell-unixutils.-- -- David Fox <dsf@seereason.com> Tue, 06 May 2008 05:52:51 -0700--haskell-debian (2.26) unstable; urgency=low-- * Improve error report from "Missing control file or changelog"-- -- David Fox <dsf@seereason.com> Mon, 05 May 2008 05:59:27 -0700--haskell-debian (2.25) unstable; urgency=low-- * Packaging changes for haskell-devscripts 0.6.10.-- -- David Fox <dsf@seereason.com> Sat, 29 Mar 2008 10:25:54 -0700--haskell-debian (2.24) unstable; urgency=low-- * New version of dupload reads both /etc/dupload.conf and ~/.dupload.conf, so- we have to explicitly unset $preupload in ~/.dupload.conf.-- -- David Fox <dsf@seereason.com> Tue, 25 Mar 2008 05:49:08 -0700--haskell-debian (2.23) unstable; urgency=low-- * Fix a divide by zero error in Debian.Shell. This should also improve- the behavior of the code that outputs one dot per 128 characters of- shell command output.-- -- David Fox <dsf@seereason.com> Wed, 12 Mar 2008 16:55:59 +0000--haskell-debian (2.22) unstable; urgency=low-- * Add a chars/dot argument to Shell.dotOutput- * Moved some functions from Shell to haskell-unixutils- * Moved TIO module to haskell-extra-- -- David Fox <dsf@seereason.com> Sun, 02 Mar 2008 10:14:13 -0800--haskell-debian (2.21) unstable; urgency=low-- * Change some writeFile calls to avoid lazyness in evaluating the- second argument, which appears to lead to locked file errors.-- -- David Fox <dsf@seereason.com> Sun, 24 Feb 2008 11:06:53 -0800--haskell-debian (2.20) unstable; urgency=low-- * Message Improvements- * Discard duplicate dependency relations- * Fix rfc822DateFormat-- -- Jeremy Shaw <jeremy@n-heptane.com> Wed, 20 Feb 2008 13:34:34 -0800--haskell-debian (2.19) unstable; urgency=low-- * Added more functions for working with index files-- -- Jeremy Shaw <jeremy@n-heptane.com> Tue, 19 Feb 2008 16:07:46 -0800--haskell-debian (2.18) unstable; urgency=low-- * Hack: Debian.Local.Insert.addPackagesToIndexes work-around for optimizer bug- * Debian.Package: use controlFromIndex instead of calling zcat-- -- Jeremy Shaw <jeremy@n-heptane.com> Mon, 11 Feb 2008 23:08:30 -0800--haskell-debian (2.17) unstable; urgency=low-- * TIO module fixes and cleanups.-- -- David Fox <dsf@seereason.com> Thu, 07 Feb 2008 05:45:00 -0800--haskell-debian (2.16) unstable; urgency=low-- * Add setRepoMap to install cached repository info- * Print more info about what happened when a repository appears not to exist.-- -- David Fox <ddssff@gmail.com> Wed, 06 Feb 2008 16:00:45 -0800--haskell-debian (2.15) unstable; urgency=low-- * Fix bug in Debian.VersionPolicy- * Split a simple TIO monad out of the AptIO monad.- * Simplify Repository type, eliminate parameterized Release etc.- * Improve type safety of the SourcesList related types-- -- David Fox <ddssff@gmail.com> Wed, 06 Feb 2008 05:38:12 -0800--haskell-debian (2.14) unstable; urgency=low-- * Rewrite of Debian.VersionPolicy.- * Run unit tests during build-- -- David Fox <ddssff@gmail.com> Mon, 28 Jan 2008 13:07:00 -0800--haskell-debian (2.13) unstable; urgency=low-- * Improvements in code currently used to compute the build dependencies.- This allows builds of packages which previously caused an combinatoric- explosion in memory and time use. The specific modifications are to- avoid making a huge list of all the solution candidates that failed,- and to put the relations into a normal form which only involves equals- dependencies on packages that are actually available for installation.- Finally, a bug in handling of architecture specific dependencies was- fixed which might have been causing the extremely long and fruitless- searches for some packages' build dependencies.-- -- David Fox <ddssff@gmail.com> Sat, 19 Jan 2008 19:28:32 +0000--haskell-debian (2.12) unstable; urgency=low-- * Add Debian.Apt.Dependecies and Debian.Apt.Package to debian.cabal-- -- Jeremy Shaw <jeremy.shaw@linspireinc.com> Fri, 18 Jan 2008 17:13:24 -0800--haskell-debian (2.11) unstable; urgency=low-- * Added trump detector- * Added code to find parents and siblings of a binary package from the- Packages/Sources files- * Packaging updates-- -- Jeremy Shaw <jeremy.shaw@linspireinc.com> Fri, 14 Dec 2007 13:55:20 -0800--haskell-debian (2.10) unstable; urgency=low-- * Added new interface, Apt.Debian.Methods.fetch which allows the UI- portion of fetching (status, authentication), to be controlled by- providing a set of callback functions.-- -- Jeremy Shaw <jeremy.shaw@linspireinc.com> Tue, 20 Nov 2007 14:07:43 -0800--haskell-debian (2.9) unstable; urgency=low-- * Add caching of loaded package indexes based on the path and the- file status of the cached index file. Also splits Debian.Types- into several modules.-- -- David Fox <dsf@seereason.org> Fri, 9 Nov 2007 11:05:11 -0800--haskell-debian (2.8) unstable; urgency=low-- * Last version had bogus dependencies due to an unknown build error.- Make loading of package indexes less lazy in an attempt to reduce- memory usage.-- -- David Fox <dsf@seereason.org> Wed, 7 Nov 2007 10:54:27 -0800--haskell-debian (2.7) unstable; urgency=low-- * Make loading of package indexes lazy.-- -- David Fox <dsf@seereason.org> Mon, 22 Oct 2007 11:11:34 -0700--haskell-debian (2.6) unstable; urgency=low-- * Pass --immediate-configure-false to build-env so we can create- environments for gutsy, lenny, and sid.-- -- David Fox <dsf@seereason.org> Sat, 20 Oct 2007 16:17:59 -0700--haskell-debian (2.5) unstable; urgency=low-- * Reduce amount of apt-get updating that occurs.-- -- David Fox <ddssff@gmail.com> Sat, 20 Oct 2007 13:50:25 +0000--haskell-debian (2.4) unstable; urgency=low-- * Fix parsing of version tags in VersionPolicy. It was always failing- and therefore not understanding versions we had generated.-- -- David Fox <ddssff@gmail.com> Sat, 13 Oct 2007 04:44:39 -0700--haskell-debian (2.3) unstable; urgency=low-- * The EnvPath and EnvRoot types had show methods that were not- invertable by read. Now they use deriving Show, and use rootPath- and the new outsidePath to convert EnvRoot and EnvPath to the- FilePath type. This is a big looking change, but safe.- * Replace code that looked at the "Package" and "Version" fields- of a parsed control file with calls to packageName and- packageVersion, which just returns values already computed and- saved in the Package object.- * Use EnvPath instead of FilePath in places where it makes sense, such- as the copyDebianBuildTree and other places in Debian.SourceTree.- This change propagated down in various places, and the cutoff may be- a little out of whack in some places, but it is all typesafe (and- therefore wonderful?)-- -- David Fox <ddssff@gmail.com> Thu, 11 Oct 2007 15:43:03 +0000--haskell-debian (2.2) unstable; urgency=low-- * Fix a bug in parsing of dependency relations when there is- whitespace after a right square brace.-- -- David Fox <ddssff@gmail.com> Tue, 9 Oct 2007 21:00:24 +0000--haskell-debian (2.1) unstable; urgency=low-- * Fix show method of SliceList, the elements need to be- terminated by newlines.-- -- David Fox <ddssff@gmail.com> Fri, 5 Oct 2007 00:11:33 -0700--haskell-debian (2.0) unstable; urgency=low-- * Change Apt. to Debian.- * Added Debian.Apt.Methods- * Added Debian.Deb- * Added Debian.Time-- -- Jeremy Shaw <jeremy.shaw@linspire.com> Wed, 19 Sep 2007 15:14:10 -0700--haskell-apt (1.0) unstable; urgency=low-- * Initial Debian package.-- -- David Fox <ddssff@gmail.com> Tue, 18 Sep 2007 09:33:24 -0700
src/Debian/Apt/Dependencies.hs view
@@ -11,8 +11,6 @@ , CSP(..) ) -} where --- test gutsyPackages "libc6" (\csp -> bt csp)- import Control.Arrow (second) import qualified Data.ByteString.Char8 as C import Data.List as List (find, union)@@ -99,9 +97,6 @@ Just (Comment _) -> error "depF" in preDepends ++ depends--sidPackages = "/var/lib/apt/lists/ftp.debian.org_debian_dists_unstable_main_binary-i386_Packages"-gutsyPackages = "/var/lib/apt/lists/mirror.anl.gov_pub_ubuntu_dists_gutsy_main_binary-i386_Packages" test controlFP rel labeler = testCSP controlFP depF rel (mapM_ (\ (_,p) -> mapM_ (print . second (render . prettyDebianVersion) . packageVersionParagraph) p ) . take 1 . search labeler)
src/Debian/Apt/Index.hs view
@@ -27,7 +27,6 @@ import Data.Function import Data.List as List (null, intercalate, sortBy, isSuffixOf, isPrefixOf) import qualified Data.Map as M-import Data.Monoid ((<>)) import Data.Text as Text (Text, unpack, concat, lines, words) import Data.Time import Debian.Apt.Methods@@ -50,9 +49,6 @@ import Text.PrettyPrint (render) import Distribution.Pretty (pretty) import Text.Read (readMaybe)-#if !MIN_VERSION_base(4,8,0)-import Control.Applicative (pure, (<$>), (<*>))-#endif -- |Package indexes on the server are uncompressed or compressed with -- gzip or bzip2. We do not know what will exist on the server until we
src/Debian/Apt/Methods.hs view
@@ -26,7 +26,6 @@ import Control.Exception import Control.Monad (liftM, unless)-import Control.Monad.Except import Data.Maybe import Data.Time import System.Directory
src/Debian/Apt/Package.hs view
@@ -40,7 +40,7 @@ -- |'lookupPackageByRel' returns all the packages that satisfy the specified relation -- TODO: Add architecture check lookupPackageByRel :: PackageNameMap a -> (a -> (BinPkgName, DebianVersion)) -> Relation -> [a]-lookupPackageByRel pm packageVersionF (Rel pkgName mVerReq _mArch) =+lookupPackageByRel pm packageVersionF (RRel pkgName mVerReq _mArch _rlist) = case Map.lookup pkgName pm of Nothing -> [] Just packages -> filter filterVer packages
src/Debian/Arch.hs view
@@ -8,7 +8,6 @@ ) where import Data.Data (Data)-import Data.Monoid ((<>)) import Data.Typeable (Typeable) import Text.PrettyPrint (Doc, text)
src/Debian/Changes.hs view
@@ -15,7 +15,6 @@ import Data.Either (partitionEithers) import Data.List (intercalate, intersperse)-import Data.Monoid ((<>)) import Data.Text (Text, pack, unpack, strip) import Debian.Arch (Arch, prettyArch) import Debian.Codename (Codename, codename, parseCodename)
src/Debian/Control/ByteString.hs view
@@ -21,16 +21,13 @@ -- Standard GHC modules -#if !MIN_VERSION_base(4,8,0)-import Control.Applicative (Applicative(..))-#endif import Control.Applicative (Alternative(..)) import qualified Control.Exception as E import "mtl" Control.Monad.State import Data.Char(toLower, isSpace) import Data.List-import Control.Monad (MonadPlus(..), ap, liftM, unless)+import Control.Monad (MonadPlus(..), ap) import Text.ParserCombinators.Parsec.Error import Text.ParserCombinators.Parsec.Pos@@ -177,7 +174,7 @@ Fail -> Fail instance Applicative (Parser state) where- pure = return+ pure a = Parser (\s -> Ok (a,s)) (<*>) = ap instance Alternative (Parser state) where@@ -187,7 +184,6 @@ (<|>) = mplus instance Monad (Parser state) where- return a = Parser (\s -> Ok (a,s)) m >>= f = Parser $ \state -> let r = (unParser m) state in
src/Debian/Control/Common.hs view
@@ -24,7 +24,6 @@ import Data.List as List (dropWhileEnd, partition, intersperse) import Data.ListLike as LL (ListLike, cons, dropWhileEnd, empty, find, null, singleton) import Data.ListLike.String as LL (StringLike, lines, unlines)-import Data.Monoid ((<>)) import Debian.Pretty (PP(..)) import System.Exit (ExitCode(ExitSuccess, ExitFailure)) import System.IO (Handle)
src/Debian/GenBuildDeps.hs view
@@ -24,9 +24,6 @@ , getSourceOrder ) where -#if !MIN_VERSION_base(4,8,0)-import Control.Applicative ((<$>))-#endif import Control.Exception (throw) import Control.Monad (filterM, foldM) import Control.Monad.State (evalState, get, modify, State)@@ -69,7 +66,7 @@ DepInfo { sourceName = debianSourcePackageName control , relations = rels , binaryNames = bins- , depSet = Set.fromList (List.map (\(Rel x _ _) -> x) (concat rels))+ , depSet = Set.fromList (List.map (\(RRel x _ _ _) -> x) (concat rels)) , binSet = Set.fromList bins } -- | source package name@@ -114,7 +111,7 @@ filteredDependencies :: Relations filteredDependencies = filter (/= []) (List.map (filter keepDep) (relations info)) keepDep :: Relation -> Bool- keepDep (Rel name _ _) = not (relaxInfo (sourceName info) name)+ keepDep (RRel name _ _ _) = not (relaxInfo (sourceName info) name) data ReadyTarget a = ReadyTarget { ready :: a@@ -298,7 +295,7 @@ depends1 = relations' control1 depends2 = relations' control2 checkPackageNameReq :: Relation -> BinPkgName -> Bool- checkPackageNameReq (Rel rPkgName _ _) bPkgName = rPkgName == bPkgName+ checkPackageNameReq (RRel rPkgName _ _ _) bPkgName = rPkgName == bPkgName -- |Return the dependency info for a list of control files. genDeps :: [FilePath] -> IO [DebianControl]
src/Debian/Loc.hs view
@@ -4,7 +4,6 @@ , mapExn ) where -import Control.Applicative ((<$>), (<*>), pure) import Control.Exception (Exception, throw) import Control.Monad.Catch (MonadCatch, catch) import Language.Haskell.TH
src/Debian/Relation/Common.hs view
@@ -1,12 +1,32 @@-{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, FlexibleInstances, OverloadedStrings, TypeSynonymInstances #-}-module Debian.Relation.Common where+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeSynonymInstances #-}+{-# LANGUAGE PatternSynonyms #-}+module Debian.Relation.Common (+ AndRelation+ , ArchitectureReq(..)+ , BinPkgName(..)+ , checkVersionReq+ , OrRelation+ , ParseRelations(..)+ , PkgName(..)+ , Relation(.., Rel)+ , Relations+ , SrcPkgName(..)+ , VersionReq(..)+ , RestrictionList+)+where -- Standard GHC Modules import Data.Data (Data)-import Data.List as List (map, intersperse)-import Data.Monoid (mconcat, (<>)) import Data.Function+import Data.List as List (map, intersperse)+import Data.Map.Ordered (OMap)+import qualified Data.Map.Ordered as MO import Data.Set as Set (Set, toList) import Data.Typeable (Typeable) import Debian.Arch (Arch, prettyArch)@@ -26,8 +46,15 @@ type AndRelation = [OrRelation] type OrRelation = [Relation] -data Relation = Rel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq) deriving (Eq, Read, Show)+type RestrictionList = OMap String Bool +data Relation = RRel BinPkgName (Maybe VersionReq) (Maybe ArchitectureReq) [RestrictionList] deriving (Eq, Read, Show)++{-# DEPRECATED Rel "Switch to RRel" #-}+pattern Rel :: BinPkgName -> Maybe VersionReq -> Maybe ArchitectureReq -> Relation+pattern Rel a mb mc <- RRel a mb mc _ where+ Rel a mb mc = RRel a mb mc []+ newtype SrcPkgName = SrcPkgName {unSrcPkgName :: String} deriving (Read, Show, Eq, Ord, Data, Typeable) newtype BinPkgName = BinPkgName {unBinPkgName :: String} deriving (Read, Show, Eq, Ord, Data, Typeable) @@ -53,12 +80,18 @@ prettyOrRelation :: [Relation] -> Doc prettyOrRelation xs = mconcat . intersperse (text " | ") . List.map prettyRelation $ xs +prettyRlists :: [RestrictionList] -> Doc+prettyRlists xs = mconcat . intersperse (text " ") . List.map prettyRlist $ xs+ where+ prettyRlist r = text "<" <> mconcat (intersperse (text (" ")) $ fmap prettyOne (MO.assocs r)) <> text ">"+ prettyOne (k, v) = (if v then mempty else text "!") <> text k+ prettyRelation :: Relation -> Doc-prettyRelation (Rel name ver arch) =- pretty (PP name) <> maybe empty prettyVersionReq ver <> maybe empty prettyArchitectureReq arch+prettyRelation (RRel name ver arch rlists) =+ pretty (PP name) <> maybe empty prettyVersionReq ver <> maybe empty prettyArchitectureReq arch <> prettyRlists rlists instance Ord Relation where- compare (Rel pkgName1 mVerReq1 _mArch1) (Rel pkgName2 mVerReq2 _mArch2) =+ compare (RRel pkgName1 mVerReq1 _mArch1 _) (RRel pkgName2 mVerReq2 _mArch2 _) = case compare pkgName1 pkgName2 of LT -> LT GT -> GT
src/Debian/Relation/String.hs view
@@ -23,6 +23,7 @@ import Data.Set (fromList) import Text.ParserCombinators.Parsec import Text.Parsec.Prim (ParsecT)+import qualified Data.Map.Ordered as MO -- Local Modules @@ -73,7 +74,9 @@ mVerReq <- pMaybeVerReq skipMany whiteChar mArch <- pMaybeArch- return $ Rel (BinPkgName pkgName) mVerReq mArch+ skipMany whiteChar+ rlists <- pRlists -- technically this is only for B-D and B-D-I+ return $ RRel (BinPkgName pkgName) mVerReq mArch rlists pMaybeVerReq :: RelParser (Maybe VersionReq) pMaybeVerReq =@@ -137,3 +140,28 @@ parseArchExcept :: String -> Arch parseArchExcept ('!' : s) = parseArch s parseArchExcept s = parseArch s++lexeme :: RelParser a -> RelParser a+lexeme p = p <* skipMany whiteChar++symbol :: Char -> RelParser Char+symbol = lexeme . char++pRlists :: RelParser [RestrictionList]+pRlists = many pRestrictionList+ where+ pRestrictionList :: RelParser RestrictionList+ pRestrictionList = do+ _ <- symbol '<'+ rs <- many1 pBPAtom+ _ <- symbol '>'+ return (MO.fromList rs)+ pBPAtom :: RelParser (String, Bool)+ pBPAtom =+ (do symbol '!'+ bp <- pBuildProfile+ return (bp, False))+ <|> (do bp <- pBuildProfile+ return (bp, True))+ pBuildProfile :: RelParser String+ pBuildProfile = lexeme (many1 (noneOf ['>', ' ']))
src/Debian/Sources.hs view
@@ -12,7 +12,6 @@ import Control.Lens (makeLenses, review, view) import Data.Maybe (fromJust)-import Data.Monoid ((<>)) import Data.Text (Text) import Debian.Codename (Codename, codename, parseCodename) import Debian.Pretty (PP(..))
src/Debian/UTF8.hs view
@@ -8,9 +8,6 @@ , readFile ) where -#if !MIN_VERSION_base(4,8,0)-import Control.Applicative ((<$>))-#endif import qualified Data.ByteString.Char8 as B (concat) import qualified Data.ByteString.Lazy.Char8 as L (ByteString, readFile, toChunks) import Data.Char (chr)
src/Debian/VendorURI.hs view
@@ -7,11 +7,8 @@ ) where import Control.Lens (makeLenses, review)-import Debian.TH (here)-import Debian.URI (parseURI, URI(uriPath))-import Distribution.Pretty (prettyShow)+import Debian.URI (parseURI, URI()) import Language.Haskell.TH.Syntax (Loc)-import System.FilePath (splitDirectories) newtype VendorURI = VendorURI {_vendorURI :: URI} deriving (Eq, Ord)
utils/AptGetBuildDeps.hs view
@@ -27,7 +27,7 @@ map pkgName (concatMap (take 1) andRelations) where pkgName :: Relation -> BinPkgName- pkgName (Rel name _ _) = name+ pkgName (RRel name _ _ _) = name aptGetInstall :: [String] -> [BinPkgName] -> IO ExitCode