summaryrefslogtreecommitdiff
path: root/dev-haskell/cabal-install/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/cabal-install/files
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/cabal-install/files')
-rw-r--r--dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch20
-rw-r--r--dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch15
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch
new file mode 100644
index 000000000000..c36582680a56
--- /dev/null
+++ b/dev-haskell/cabal-install/files/cabal-install-0.13.3-nopref.patch
@@ -0,0 +1,20 @@
+diff --git a/Distribution/Client/IndexUtils.hs b/Distribution/Client/IndexUtils.hs
+index 48d8d49..3a38ee1 100644
+--- a/Distribution/Client/IndexUtils.hs
++++ b/Distribution/Client/IndexUtils.hs
+@@ -312,10 +312,15 @@ extractPkg entry = case Tar.entryContent entry of
+
+ extractPrefs :: Tar.Entry -> Maybe [Dependency]
+ extractPrefs entry = case Tar.entryContent entry of
++{-
++ -- get rid of hackage's preferred-versions
++ -- I'd like to have bleeding-edge packages in system and I don't fear of
++ -- broken packages with improper depends
+ Tar.NormalFile content _
+ | takeFileName (Tar.entryPath entry) == "preferred-versions"
+ -> Just . parsePreferredVersions
+ . BS.Char8.unpack $ content
++-}
+ _ -> Nothing
+
+ parsePreferredVersions :: String -> [Dependency]
diff --git a/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch b/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch
new file mode 100644
index 000000000000..40b281073c0e
--- /dev/null
+++ b/dev-haskell/cabal-install/files/cabal-install-1.24.0.0-nopref.patch
@@ -0,0 +1,15 @@
+diff --git a/Distribution/Client/IndexUtils.hs b/Distribution/Client/IndexUtils.hs
+index 95545fc..a9c8417 100644
+--- a/Distribution/Client/IndexUtils.hs
++++ b/Distribution/Client/IndexUtils.hs
+@@ -345,2 +345,6 @@ extractPrefs :: Tar.Entry -> Maybe [Dependency]
+ extractPrefs entry = case Tar.entryContent entry of
++{-
++ -- get rid of hackage's preferred-versions
++ -- I'd like to have bleeding-edge packages in system and I don't fear of
++ -- broken packages with improper depends
+ Tar.NormalFile content _
+@@ -351,2 +355,3 @@ extractPrefs entry = case Tar.entryContent entry of
+ prefs = parsePreferredVersions content
++-}
+ _ -> Nothing