The attached patches resolve the issue for me.
--- haskell-utils-1.11/update-haskell-control.lhs.in~ 2008-03-03 08:58:42.000000000 -0800 +++ haskell-utils-1.11/update-haskell-control.lhs.in 2008-03-09 09:23:15.000000000 -0700 @@ -194,18 +194,22 @@ deps = buildDepends pd -- The nub is really a bit of a hack, due to us ignoring version -- ranges in fromCabalDep. - mkDeps depType = do xs <- mapM (fromCabalDep depType) deps - return $ concat $ intersperse ", " - $ nub $ catMaybes xs - devDeps <- mkDeps "dev" - profDeps <- mkDeps "prof" - docDeps <- mkDeps "doc" + mkDeps addVersion depType = do xs <- mapM (fromCabalDep addVersion depType) deps + return $ concat $ intersperse ", " + $ nub $ catMaybes xs + devDeps <- mkDeps True "dev" + profDeps <- mkDeps True "prof" + docDeps <- mkDeps True "doc" + devBDeps <- mkDeps False "dev" + profBDeps <- mkDeps False "prof" return [("this:source", "haskell-" ++ cpkg), ("this:ghc6:dev", "libghc6-" ++ cpkg ++ "-dev"), ("this:ghc6:prof", "libghc6-" ++ cpkg ++ "-prof"), ("this:ghc6:doc", "libghc6-" ++ cpkg ++ "-doc"), ("cabal:deps:ghc6:dev", devDeps), ("cabal:deps:ghc6:prof", profDeps), + ("cabal:bdeps:ghc6:dev", devBDeps), + ("cabal:bdeps:ghc6:prof", profBDeps), ("cabal:deps:ghc6:doc", docDeps)] cabalToDebianPackageName :: String -- type of Debian package: dev/prof/doc @@ -286,13 +290,13 @@ ghc6DocProvides <- getPackageProvides "ghc6-doc" return (ghc6Provides ++ ghc6ProfProvides ++ ghc6DocProvides) -fromCabalDep :: String -> Dependency -> IO (Maybe String) +fromCabalDep :: Bool -> String -> Dependency -> IO (Maybe String) -- XXX Filtering out Win32 is a hack, due to us not using flags and thus -- getting all the possible deps. If we used flags then we wouldn't get -- the deps from the Win32 route. We could then drop the Maybe from the -- type. -fromCabalDep _ (Dependency "Win32" _) = return Nothing -fromCabalDep depType (Dependency cabalPackageName _) +fromCabalDep _ _ (Dependency "Win32" _) = return Nothing +fromCabalDep addVersion depType (Dependency cabalPackageName _) = do let debianPackageName = cabalToDebianPackageName depType cabalPackageName mpv <- getPackageVersion debianPackageName provided <- ghc6StarProvides @@ -304,7 +308,7 @@ -- We are happy. Add a dep, with a tight version number so -- we don't trip over cross-module inlining problems. (Just pv, False) -> - return $ Just (debianPackageName ++ " (= " ++ pv ++ ")") + return $ Just (debianPackageName ++ if addVersion then (" (= " ++ pv ++ ")") else "") (Just _, True) -> die [debianPackageName ++ " exists, but is also provided by ghc6*"]
--- haskell-cgi/debian/control~ 2008-03-09 08:03:18.000000000 -0700 +++ haskell-cgi/debian/control 2008-03-09 13:11:56.000000000 -0700 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Ian Lynagh (wibble) <[EMAIL PROTECTED]> Standards-Version: 3.7.3 -Build-Depends: debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+), ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+), libghc6-network-dev (= 2.1.0.0-2), libghc6-parsec-dev (= 2.1.0.0-2), libghc6-mtl-dev (= 1.1.0.0-2), libghc6-xhtml-dev (= 3000.0.2.1-2), libghc6-network-prof (= 2.1.0.0-2), libghc6-parsec-prof (= 2.1.0.0-2), libghc6-mtl-prof (= 1.1.0.0-2), libghc6-xhtml-prof (= 3000.0.2.1-2), libghc6-network-doc (= 2.1.0.0-2), libghc6-parsec-doc (= 2.1.0.0-2), libghc6-mtl-doc (= 1.1.0.0-2), libghc6-xhtml-doc (= 3000.0.2.1-2) +Build-Depends: debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.1), ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+), ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+), libghc6-network-dev, libghc6-parsec-dev, libghc6-mtl-dev, libghc6-xhtml-dev, libghc6-network-prof, libghc6-parsec-prof, libghc6-mtl-prof, libghc6-xhtml-prof, libghc6-network-doc, libghc6-parsec-doc, libghc6-mtl-doc, libghc6-xhtml-doc Package: libghc6-cgi-dev Section: libdevel --- haskell-cgi/debian/control.in.orig 2008-03-09 08:03:18.000000000 -0700 +++ haskell-cgi/debian/control.in 2008-03-09 13:17:54.000000000 -0700 @@ -3,7 +3,7 @@ Priority: optional Maintainer: ${maintainer} Standards-Version: 3.7.3 -Build-Depends: &{canonicalise-comma-list:debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ${impl:ghc6:lib:build_deps}, ${cabal:deps:ghc6:dev}, ${cabal:deps:ghc6:prof}, ${cabal:deps:ghc6:doc}, ${c_dev_libs}, ${extra_build_deps}} +Build-Depends: &{canonicalise-comma-list:debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ${impl:ghc6:lib:build_deps}, ${cabal:bdeps:ghc6:dev}, ${cabal:bdeps:ghc6:prof}, ${cabal:deps:ghc6:doc}, ${c_dev_libs}, ${extra_build_deps}} Package: ${this:ghc6:dev} Section: libdevel