Hi,

I have updated the package to build with the new ghc6 version in the
archive. To keep the changes minimal I have only updated some Setup.hs
files for the new Cabal version and have not upgraded the package to the
new upstream version.

As I am not a DD yet, I can not upload a NMU, so you might want to
upload this yourself (or some interested DD who comes along ;-). 

I have attached my NMU diff below.

Greetings Arjan Oosting


diff -u haskell-hsql-1.6/PostgreSQL/Setup.lhs haskell-hsql-1.6/PostgreSQL/Setup.lhs
--- haskell-hsql-1.6/PostgreSQL/Setup.lhs
+++ haskell-hsql-1.6/PostgreSQL/Setup.lhs
@@ -21,8 +21,8 @@
     preConf args flags = do
       try (removeFile "PostgreSQL.buildinfo")
       return emptyHookedBuildInfo
-    postConf :: [String] -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
-    postConf args flags localbuildinfo = do
+    postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
+    postConf args flags _ localbuildinfo = do
       mb_bi <- pqConfigBuildInfo (configVerbose flags)
       writeHookedBuildInfo "PostgreSQL.buildinfo" (Just (fromMaybe emptyBuildInfo mb_bi),[])
       return ExitSuccess
diff -u haskell-hsql-1.6/debian/control haskell-hsql-1.6/debian/control
--- haskell-hsql-1.6/debian/control
+++ haskell-hsql-1.6/debian/control
@@ -2,7 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Víctor Pérez Pereira <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), libpq-dev (>= 8.0), libmysqlclient15-dev, unixodbc-dev, libsqlite-dev, libsqlite3-dev, haskell-devscripts (>= 0.5.8), ghc6 (>= 6.4.1), ghc6 (<< 6.4.1-999), cpphs, haddock
+Build-Depends: debhelper (>= 4.0.0), libpq-dev (>= 8.0), libmysqlclient15-dev, unixodbc-dev, libsqlite-dev, libsqlite3-dev, haskell-devscripts (>= 0.5.8), ghc6 (>= 6.4.2), cpphs, haddock
 Standards-Version: 3.7.2
 
 Package: libghc6-hsql-dev
diff -u haskell-hsql-1.6/debian/changelog haskell-hsql-1.6/debian/changelog
--- haskell-hsql-1.6/debian/changelog
+++ haskell-hsql-1.6/debian/changelog
@@ -1,3 +1,18 @@
+haskell-hsql (1.6-8.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fixes FTBFS: needs to update for new ghc6 (Closes: #379264)
+    - update MySQL/Setup.lhs, PostgresSQL/Setup.lhs, SQLite/Setup.lhs and
+      SQLite3/Setup.lhs for the new Cabal version shipped with ghc 6.4.2.  
+    - debian/control: Build-Depends on the ghc6 (>= 6.4.2) which ships the
+      new Cabal version. Drop the build dependency on ghc6 (6.4.1-999) to
+      make (binary) non-maintainer uploads easier.
+    - debian/ghc-pkg: replace the call to /usr/lib/ghc-6.4.1/bin/ghc-pkg
+      with a call to /usr/bin/ghc-pkg6 to make independant of the ghc6
+      version. 
+
+ -- Arjan Oosting <[EMAIL PROTECTED]>  Mon, 31 Jul 2006 14:20:30 +0200
+
 haskell-hsql (1.6-8) unstable; urgency=medium
 
   * New maintainer (closes: #358873)
diff -u haskell-hsql-1.6/debian/ghc-pkg haskell-hsql-1.6/debian/ghc-pkg
--- haskell-hsql-1.6/debian/ghc-pkg
+++ haskell-hsql-1.6/debian/ghc-pkg
@@ -6 +6 @@
-exec /usr/lib/ghc-6.4.1/bin/ghc-pkg -f $PKGCFG "$@"
+exec /usr/bin/ghc-pkg6 -f $PKGCFG "$@"
only in patch2:
unchanged:
--- haskell-hsql-1.6.orig/MySQL/Setup.lhs
+++ haskell-hsql-1.6/MySQL/Setup.lhs
@@ -21,8 +21,8 @@
     preConf args flags = do
       try (removeFile "MySQL.buildinfo")
       return emptyHookedBuildInfo
-    postConf :: [String] -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
-    postConf args flags localbuildinfo = do
+    postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
+    postConf args flags _ localbuildinfo = do
       mb_bi <- mysqlConfigBuildInfo (configVerbose flags)
       writeHookedBuildInfo "MySQL.buildinfo" (Just (fromMaybe emptyBuildInfo{extraLibs=["mysqlclient"]} mb_bi),[])
       return ExitSuccess
only in patch2:
unchanged:
--- haskell-hsql-1.6.orig/SQLite/Setup.lhs
+++ haskell-hsql-1.6/SQLite/Setup.lhs
@@ -20,8 +20,8 @@
     preConf args flags = do
       try (removeFile "SQLite.buildinfo")
       return emptyHookedBuildInfo
-    postConf :: [String] -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
-    postConf args flags localbuildinfo = do
+    postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
+    postConf args flags _ localbuildinfo = do
       mb_bi <- pkgConfigBuildInfo (configVerbose flags) "sqlite"
       let bi = case mb_bi of
                  Just bi -> bi
only in patch2:
unchanged:
--- haskell-hsql-1.6.orig/SQLite3/Setup.lhs
+++ haskell-hsql-1.6/SQLite3/Setup.lhs
@@ -20,8 +20,8 @@
     preConf args flags = do
       try (removeFile "SQLite3.buildinfo")
       return emptyHookedBuildInfo
-    postConf :: [String] -> ConfigFlags -> LocalBuildInfo -> IO ExitCode
-    postConf args flags localbuildinfo = do
+    postConf :: [String] -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ExitCode
+    postConf args flags _ localbuildinfo = do
       mb_bi <- pkgConfigBuildInfo (configVerbose flags) "sqlite3"
       let bi = case mb_bi of
                  Just bi -> bi

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to