tags 381816 patch
tags 340022 patch
thanks

Hi,

I prepared a patch for RC bug 381816 (Uninstallable due to unmet dep on
ghc6 (< 6.4.1-999)) which also fixes 340022 (pugs-modules has circular
Depends on pugs).

Greetings Arjan Oosting

 


diff -u pugs-6.2.10/debian/libghc6-pugs-dev.postinst pugs-6.2.10/debian/libghc6-pugs-dev.postinst
--- pugs-6.2.10/debian/libghc6-pugs-dev.postinst
+++ pugs-6.2.10/debian/libghc6-pugs-dev.postinst
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-GHC=ghc-6.4.1
+GHC_LIBDIR=`/usr/bin/ghc6 --print-libdir`
 VERSION=6.2.10
 
 case "$1" in
 	configure)
-		/usr/lib/${GHC}/bin/ghc-pkg -g --add-package < /usr/lib/haskell-packages/ghc6/lib/Pugs-${VERSION}/installed-pkg-config
+		${GHC_LIBDIR}/bin/ghc-pkg -g --add-package < /usr/lib/haskell-packages/ghc6/lib/Pugs-${VERSION}/installed-pkg-config
 	;;
 
 	abort-upgrade|abort-remove|abort-deconfigure)
diff -u pugs-6.2.10/debian/changelog pugs-6.2.10/debian/changelog
--- pugs-6.2.10/debian/changelog
+++ pugs-6.2.10/debian/changelog
@@ -1,3 +1,15 @@
+pugs (6.2.10-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Replace the Depends on pugs with a Recommends on pugs to break the
+    circular dependency between pugs and pugs-modules. (Closes: #340022)
+  * Make libghc6-pugs-dev instalable again (Closes: #381816):
+    - Update debian/libghc6-pugs-dev.{postinst,prerm} to not depend on a
+      specific ghc6 version. 
+    - Update the Build-Depends and Depends for ghc6 6.4.2. 
+
+ -- Arjan Oosting <[EMAIL PROTECTED]>  Tue, 15 Aug 2006 08:52:19 +0200
+
 pugs (6.2.10-4) unstable; urgency=low
 
   * Renamed 30includedirs.dpatch to 30cabal.dpatch and added some more changes
diff -u pugs-6.2.10/debian/control pugs-6.2.10/debian/control
--- pugs-6.2.10/debian/control
+++ pugs-6.2.10/debian/control
@@ -2,7 +2,7 @@
 Section: interpreters
 Priority: optional
 Maintainer: Florian Ragwitz <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.0.0), dpatch, ghc6 (>= 6.4.1) | ghc-cvs (>= 20050331-1), perl, libperl-dev, libwww-perl, libyaml-perl, libtest-tap-model-perl, libtest-tap-htmlmatrix-perl, libcompress-bzip2-perl
+Build-Depends: debhelper (>= 4.0.0), dpatch, ghc6 (>= 6.4.2) | ghc-cvs (>= 20050331-1), perl, libperl-dev, libwww-perl, libyaml-perl, libtest-tap-model-perl, libtest-tap-htmlmatrix-perl, libcompress-bzip2-perl
 Standards-Version: 3.6.2
 
 Package: pugs
@@ -29,7 +29,7 @@
 
 Package: pugs-modules
 Architecture: all
-Depends: pugs (>= ${Source-Version})
+Recommends: pugs (>= ${Source-Version})
 Description: Pugs core modules
  Pugs is an implementation of Perl 6, written in Haskell. It aims to implement
  the full Perl 6 specification, as detailed in the Synopses at
@@ -41,7 +41,7 @@
 
 Package: libghc6-pugs-dev
 Architecture: any
-Depends: ghc6 (>= 6.4.1), ghc6 (<< 6.4.1-999), perl
+Depends: ghc6 (>= 6.4.2), ghc6 (<< 6.4.2-999), perl
 Description: Pugs haskell interface
  Pugs is an implementation of Perl 6, written in Haskell. It aims to implement
  the full Perl 6 specification, as detailed in the Synopses at
diff -u pugs-6.2.10/debian/libghc6-pugs-dev.prerm pugs-6.2.10/debian/libghc6-pugs-dev.prerm
--- pugs-6.2.10/debian/libghc6-pugs-dev.prerm
+++ pugs-6.2.10/debian/libghc6-pugs-dev.prerm
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-GHC=ghc-6.4.1
+GHC_LIBDIR=`/usr/bin/ghc6 --print-libdir`
 VERSION=6.2.10
 
 case "$1" in
 	remove|upgrade|deconfigure)
-		/usr/lib/${GHC}/bin/ghc-pkg -r Pugs
+		${GHC_LIBDIR}/bin/ghc-pkg -r Pugs
 		rm -vf /usr/lib/haskell-packages/ghc6/lib/Pugs-${VERSION}/HSPugs-${VERSION}.o
 	;;
 

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

Reply via email to