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

Bug#775195: unblock: haskell-hgettext/0.1.30-5



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package haskell-hgettext

haskell-hgettext is affected by the RC bug #774802. This bug prevents any
package that uses hgettext in a certain way to compile, if compiling with
cabal-install.

This is a very common case and most people are affected by this bug, wich makes
haskell-hgettext pretty useless, since you can't compile any packages using it,
without using strange workarounds like uninstalling libghc-cabal-dev or calling
the setup script directly.

The changelog since 0.1.30-2 (which is currently in jessie) reads as follows:


haskell-hgettext (0.1.30-5) unstable; urgency=high

  * Same version as 0.1.30-4, but for unstable
  * Fixes incompatibilities with cabal-install when hgettext and
    cabal-install by ensuring that they are built against the same version
    of libghc-cabal-dev. For more detail look at he bug report #774802.

 -- Sven Bartscher <sven.bartscher@weltraumschlangen.de>  Fri, 09 Jan 2015 18:55:39 +0100

haskell-hgettext (0.1.30-4) experimental; urgency=high

  [ Sven Bartscher ]
  * Assure that hgettext is built against the right version of cabal.

 -- Joachim Breitner <nomeata@debian.org>  Wed, 07 Jan 2015 16:18:45 +0100

haskell-hgettext (0.1.30-3) experimental; urgency=medium

  * Depend on haskell-devscripts 0.9, found in experimental

 -- Joachim Breitner <nomeata@debian.org>  Sat, 20 Dec 2014 17:10:49 +0100
 

In version 0.1.30-3, the changelog says that the dependency on
haskell-devscripts was bumped. This change is not included in 0.1.30-5, so it
doesn't contain any changes unrelated to this bug.

The version 0.1.30-5 is exactly the same as 0.1.30-4, but 0.1.30-4 was
accidentally uploaded to experimental, so we had to re-upload it to unstable.

The changelog does not mention, that a autopkgtest was added to
haskell-hgettext. This is necessary, because the fix for the bug, mentioned
above, includes that a Build-Dependency of haskell-hgettext needs to be
upgraded under certain circumstances. The autopkgtest makes shure that
haskell-hgettext is build against a working version.

The debdiff between 0.1.30-2 and 0.1.30-5, generated with
`debdiff haskell-hgettext_0.1.30-2.dsc haskell-hgettext_0.1.30-5.dsc`:


diff -Nru haskell-hgettext-0.1.30/debian/changelog haskell-hgettext-0.1.30/debian/changelog
--- haskell-hgettext-0.1.30/debian/changelog    2014-10-05 13:01:40.000000000 +0200
+++ haskell-hgettext-0.1.30/debian/changelog    2015-01-09 19:19:06.000000000 +0100
@@ -1,3 +1,25 @@
+haskell-hgettext (0.1.30-5) unstable; urgency=high
+
+  * Same version as 0.1.30-4, but for unstable
+  * Fixes incompatibilities with cabal-install when hgettext and
+    cabal-install by ensuring that they are built against the same version
+    of libghc-cabal-dev. For more detail look at he bug report #774802.
+
+ -- Sven Bartscher <sven.bartscher@weltraumschlangen.de>  Fri, 09 Jan 2015 18:55:39 +0100
+
+haskell-hgettext (0.1.30-4) experimental; urgency=high
+
+  [ Sven Bartscher ]
+  * Assure that hgettext is built against the right version of cabal.
+
+ -- Joachim Breitner <nomeata@debian.org>  Wed, 07 Jan 2015 16:18:45 +0100
+
+haskell-hgettext (0.1.30-3) experimental; urgency=medium
+
+  * Depend on haskell-devscripts 0.9, found in experimental
+
+ -- Joachim Breitner <nomeata@debian.org>  Sat, 20 Dec 2014 17:10:49 +0100
+
 haskell-hgettext (0.1.30-2) unstable; urgency=medium
 
   * Correct wrong VCS-Darcs field
diff -Nru haskell-hgettext-0.1.30/debian/control haskell-hgettext-0.1.30/debian/control
--- haskell-hgettext-0.1.30/debian/control      2014-10-05 13:01:40.000000000 +0200
+++ haskell-hgettext-0.1.30/debian/control      2015-01-09 19:10:12.000000000 +0100
@@ -14,17 +14,20 @@
   , libghc-uniplate-prof
   , libghc-src-exts-dev
   , libghc-src-exts-prof
-  , libghc-cabal-dev
-  , libghc-cabal-prof
+  , libghc-cabal-dev (>= 1.20)
+  , libghc-cabal-prof (>= 1.20)
+# The -prof and -doc packages also need the constraint, because ghc
+# provieds libghc-cabal-prof and -doc
 Build-Depends-Indep: ghc-doc
                   , libghc-setlocale-doc
                   , libghc-uniplate-doc
                   , libghc-src-exts-doc
-                  , libghc-cabal-doc
+                  , libghc-cabal-doc (>= 1.20)
 Standards-Version: 3.9.5
 Homepage: http://hackage.haskell.org/package/hgettext
 Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hgettext
 Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hgettext
+Testsuite: autopkgtest
 X-Description: Gettext bindings for haskell
  This package provides bindings to gettext in haskell.
 
diff -Nru haskell-hgettext-0.1.30/debian/tests/cabal-install-compatibility haskell-hgettext-0.1.30/debian/tests/cabal-install-compatibility
--- haskell-hgettext-0.1.30/debian/tests/cabal-install-compatibility    1970-01-01 01:00:00.000000000 +0100
+++ haskell-hgettext-0.1.30/debian/tests/cabal-install-compatibility    2015-01-09 18:51:52.000000000 +0100
@@ -0,0 +1,25 @@
+#!/bin/sh
+set -e
+
+# Create the example package
+cd debian/tests
+cp Setup.hs example.cabal example.hs $ADTTMP
+cd $ADTTMP
+mkdir example
+mv Setup.hs example.cabal example.hs example
+cd example
+touch LICENSE.txt # Cabal expects this
+
+CABAL="cabal --config-file=/dev/null"
+
+# These tests are needed to make sure the cabal libraries used to compile
+# cabal-install and hgettext are compatible.
+# Test whether we can configure this
+$CABAL configure
+# Test whether we can build this
+$CABAL build
+# Test whether we can compile to repl
+/bin/echo -e 'putStrLn "works"\n:quit' | $CABAL repl
+# Test whether we can install
+mkdir $ADTTMP/test-install
+$CABAL install --prefix $ADTTMP/test-install
diff -Nru haskell-hgettext-0.1.30/debian/tests/control haskell-hgettext-0.1.30/debian/tests/control
--- haskell-hgettext-0.1.30/debian/tests/control        1970-01-01 01:00:00.000000000 +0100
+++ haskell-hgettext-0.1.30/debian/tests/control        2015-01-01 18:58:16.000000000 +0100
@@ -0,0 +1,3 @@
+Tests: cabal-install-compatibility
+Depends: cabal-install, libghc-hgettext-dev
+Restrictions: allow-stderr
diff -Nru haskell-hgettext-0.1.30/debian/tests/example.cabal haskell-hgettext-0.1.30/debian/tests/example.cabal
--- haskell-hgettext-0.1.30/debian/tests/example.cabal  1970-01-01 01:00:00.000000000 +0100
+++ haskell-hgettext-0.1.30/debian/tests/example.cabal  2015-01-01 19:09:33.000000000 +0100
@@ -0,0 +1,14 @@
+name:                example
+version:             0.1.0
+synopsis:            A program for this test
+license:             BSD3
+license-file:        LICENSE.txt
+author:              Sven Bartscher
+maintainer:          sven.bartscher@weltraumschlangen.de
+category:            Misc
+build-type:          Custom
+cabal-version:       >=1.8
+
+executable example:
+  main-is: example.hs
+  build-depends: base
\ Kein Zeilenumbruch am Dateiende.
diff -Nru haskell-hgettext-0.1.30/debian/tests/example.hs haskell-hgettext-0.1.30/debian/tests/example.hs
--- haskell-hgettext-0.1.30/debian/tests/example.hs     1970-01-01 01:00:00.000000000 +0100
+++ haskell-hgettext-0.1.30/debian/tests/example.hs     2015-01-01 18:57:15.000000000 +0100
@@ -0,0 +1 @@
+main = putStrLn "Hello, World!"
diff -Nru haskell-hgettext-0.1.30/debian/tests/Setup.hs haskell-hgettext-0.1.30/debian/tests/Setup.hs
--- haskell-hgettext-0.1.30/debian/tests/Setup.hs       1970-01-01 01:00:00.000000000 +0100
+++ haskell-hgettext-0.1.30/debian/tests/Setup.hs       2015-01-01 16:15:46.000000000 +0100
@@ -0,0 +1,2 @@
+import Distribution.Simple.I18N.GetText
+main = gettextDefaultMain


unblock haskell-hgettext/0.1.30-5

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: