[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mapping dependencies to lowercase in cabal-debian



Dear maintainer,

We recently dealt with a bug in you package, cabal-debian, about
dependencies not being mapped to lowercase before being added to the
debianization. This is a bug, since debian package-names are always
lowercase.
The original bugreport can be seen here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756327

However, we created a patch, which fixes this problem. We thought you
may want to include the patch in your package. For that reason I'm
sending it to you.

Regards
Sven
pp. Debian Haskell Group
Description: Maps dependencies to lowercase.
Author: Max Kirillov <max@max630.net>
Reviewed-by: Sven Bartscher <sven.bartscher@weltraumschlangen.de>
Last-Update: 2014-07-30
Forwarded: Yes
--- a/src/Debian/Debianize/BuildDependencies.hs
+++ b/src/Debian/Debianize/BuildDependencies.hs
@@ -7,7 +7,7 @@
 
 import Control.Monad.State (MonadState(get))
 import Control.Monad.Trans (MonadIO)
-import Data.Char (isSpace)
+import Data.Char (isSpace, toLower)
 import Data.Function (on)
 import Data.Lens.Lazy (access, getL)
 import Data.List as List (filter, map, minimumBy, nub)
@@ -75,7 +75,7 @@
     where
       fixDeps :: Atoms -> [String] -> Relations
       fixDeps atoms xs =
-          concatMap (\ cab -> fromMaybe [[D.Rel (D.BinPkgName ("lib" ++ cab ++ "-dev")) Nothing Nothing]]
+          concatMap (\ cab -> fromMaybe [[D.Rel (D.BinPkgName ("lib" ++ map toLower cab ++ "-dev")) Nothing Nothing]]
                                         (Map.lookup cab (getL T.extraLibMap atoms))) xs
 
 -- The haskell-cdbs package contains the hlibrary.mk file with

Attachment: signature.asc
Description: PGP signature


Reply to: