Bug#394305: hs-plugins: FTBFS with ghc6 6.6

2006-10-27 Thread Arjan Oosting
Hi,

I am uploading a NMU which fixes the FTFBS. The NMU patch is attached.
Note that the patch is a little bit different from my previous patch
which had a little error in the debian/rules file.

Greetings Arjan

diff -u hs-plugins-0.9.10/debian/changelog hs-plugins-0.9.10/debian/changelog
--- hs-plugins-0.9.10/debian/changelog
+++ hs-plugins-0.9.10/debian/changelog
@@ -1,3 +1,15 @@
+hs-plugins (0.9.10-3.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/control: also use ${haskell:Depends} for the dependency on
+ghc6.
+  * debian/patches/30fix-for-ghc-6.6.dpatch: add -$(VERSION) to
+-package-name $(PKG) to fix FTBFS. (Closes: 394305)
+  * debian/mk-haskell-depends: added to generate the dependencies on the
+other libghc6-*-dev packages and the dependency on ghc6.
+
+ -- Arjan Oosting [EMAIL PROTECTED]  Sat, 28 Oct 2006 01:58:40 +0200
+
 hs-plugins (0.9.10-3.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u hs-plugins-0.9.10/debian/rules hs-plugins-0.9.10/debian/rules
--- hs-plugins-0.9.10/debian/rules
+++ hs-plugins-0.9.10/debian/rules
@@ -13,14 +13,6 @@
 	CFLAGS += -O2
 endif
 
-CABAL_VERSION:= $(strip $(shell dpkg-query --showformat='$${Version}' -W libghc6-cabal-dev))
-SRC_EXTS_VERSION := $(strip $(shell dpkg-query --showformat='$${Version}' -W libghc6-src-exts-dev))
-
-HASKELL_DEPENDS := libghc6-src-exts-dev (= $(SRC_EXTS_VERSION)), libghc6-src-exts-dev ( $(shell echo '$(SRC_EXTS_VERSION)' | sed -e 's/-[^-]*$$/+/'))
-ifneq (,$(CABAL_VERSION))
-HASKELL_DEPENDS += , libghc6-cabal-dev (= $(CABAL_VERSION)), libghc6-cabal-dev ( $(shell echo '$(CABAL_VERSION)' | sed -e 's/-[^-]*$$/+/'))
-endif
-
 VERSION = 0.9.10
 
 config.status: configure.ac patch-stamp
@@ -79,7 +71,8 @@
 	dh_fixperms
 	dh_installdeb
 	dh_shlibdeps
-	dh_gencontrol -- -Vhaskell:Depends=$(HASKELL_DEPENDS)
+	sh -e debian/mk-haskell-depends
+	dh_gencontrol 
 	dh_md5sums
 	dh_builddeb
 
diff -u hs-plugins-0.9.10/debian/control hs-plugins-0.9.10/debian/control
--- hs-plugins-0.9.10/debian/control
+++ hs-plugins-0.9.10/debian/control
@@ -8,7 +8,7 @@
 Package: libghc6-plugins-dev
 Section: libdevel
 Architecture: i386 amd64
-Depends: ghc6 (= 6.4.2), ghc6 ( 6.4.2-999), ${haskell:Depends}
+Depends: ${haskell:Depends}
 Description: Dynamically Loaded Haskell Modules
  hs-plugins is a library for loading plugins written in Haskell into an
  application at runtime. It also provides a mechanism for (re)compiling
diff -u hs-plugins-0.9.10/debian/patches/00list hs-plugins-0.9.10/debian/patches/00list
--- hs-plugins-0.9.10/debian/patches/00list
+++ hs-plugins-0.9.10/debian/patches/00list
@@ -1,0 +2 @@
+30fix-for-ghc-6.6
reverted:
--- hs-plugins-0.9.10/hs-plugins-0.9.10/debian/README.Debian
+++ hs-plugins-0.9.10.orig/hs-plugins-0.9.10/debian/README.Debian
@@ -1,11 +0,0 @@
-hs-plugins for Debian
-=
-
-hs-plugins documentation in HTML form can be found at:
-  http://www.cse.unsw.edu.au/~dons/hs-plugins/
-
-The HTML documentation is not included in the Debian package as building it
-requires tex2page which is not available on all architectures supported by
-Debian.
-
- -- Jérémy Bobbio [EMAIL PROTECTED]  Sat, 30 Sep 2006 13:27:10 +0200
reverted:
--- hs-plugins-0.9.10/=
+++ hs-plugins-0.9.10.orig/=
@@ -1 +0,0 @@
-HASKELL_DEPENDS=libghc6-src-exts-dev ( ), libghc6-src-exts-dev (
reverted:
--- hs-plugins-0.9.10/README.Debian
+++ hs-plugins-0.9.10.orig/README.Debian
@@ -1,11 +0,0 @@
-hs-plugins for Debian
-=
-
-hs-plugins documentation in HTML form can be found at:
-  http://www.cse.unsw.edu.au/~dons/hs-plugins/
-
-The HTML documentation is not included in the Debian package as building it
-requires tex2page which is not available on all architectures supported by
-Debian.
-
- -- Jérémy Bobbio [EMAIL PROTECTED]  Sat, 30 Sep 2006 13:27:10 +0200
only in patch2:
unchanged:
--- hs-plugins-0.9.10.orig/debian/mk-haskell-depends
+++ hs-plugins-0.9.10/debian/mk-haskell-depends
@@ -0,0 +1,183 @@
+#! /bin/sh
+#
+# Determine package dependencies from installed-pkg-config file
+#
+# Copyright (C) 2006 Arjan Oosting [EMAIL PROTECTED]
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of either:
+#
+# 1) The terms of the GNU General Public License as published by
+#the Free Software Foundation; either version 2 of the License, or
+#(at your option) any later version.
+#
+#This program is distributed in the hope that it will be useful,
+#but WITHOUT ANY WARRANTY; without even the implied warranty of
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#GNU General Public License for more details.
+#
+#You should have received a copy of the GNU General Public License along
+#with this program; if not, write to the Free Software Foundation, Inc.,
+#51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# 2) BSD 3-clause license.
+# 
+#All rights reserved.
+#
+#Redistribution and use 

Bug#394305: hs-plugins: FTBFS with ghc6 6.6

2006-10-20 Thread Arjan Oosting
Package: hs-plugins
Severity: serious
Tags: sid
Justification: no longer builds from source

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, 

I just tried to build hs-plugins with GHC 6.6 but it FTBFS. Right now
the Build-Depends can not be fullfile because libghc6-src-exts-dev is
not build for GHC 6.6 yet, but after rebuild libghc6-src-exts-dev I
found another issue in hs-plugins:

 Rebuilding dependencies ... done.
 make[3]: Leaving directory 
`/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/src/plugins'
 make[3]: Entering directory 
`/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/src/plugins'
 ghc -package-name plugins -O -Wall -Werror -fno-warn-missing-signatures  
-threaded -package-conf 
/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/plugins.conf.inplace  -package 
altdata -package hi -O -funbox-strict-fields  -Wall 
-fno-warn-missing-signatures -package Cabal -c System/Plugins/LoadTypes.hs -o 
System/Plugins/LoadTypes.o -ohi System/Plugins/LoadTypes.hi 

 System/Plugins/LoadTypes.hs:31:0:
 Bad interface file: 
/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/src/hi/Language/Hi/Parser.hi
 Something is amiss; requested module  hi-0.9.10:Language.Hi.Parser 
differs from name found in the interface file hi:Language.Hi.Parser
 make[3]: *** [System/Plugins/LoadTypes.o] Error 1
 make[3]: Leaving directory 
`/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/src/plugins'
 make[2]: *** [plugins] Error 2
 make[2]: Leaving directory 
`/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10/src'
 make[1]: *** [build] Error 2
 make[1]: Leaving directory `/home/arjan/debian/WIP-haskell/hs-plugins-0.9.10'
 make: *** [build-stamp] Error 2
 debuild: fatal error at line 1224:
 debian/rules build failed

Greetings Arjan Oosting

- -- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-nebula
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFOPTHUALvsZYuOJARAsbxAKCvSvbpk/eq091QmKMtlPRVdJryigCcDiv4
eiYQb3fOVk2x3/yWCkygm04=
=Rb6P
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]