Source: haskell-gtk
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc6el

Dear Maintainer,

The package haskell-gtk fails to build from source on ppc64el.
The full log can be found at:
https://buildd.debian.org/status/fetch.php?pkg=haskell-gtk&arch=ppc64el&ver=0.12.5.6-1&stamp=1411079462

The patch attached, by Colin Watson, fixes the ftbfs. It was created for Ubuntu 
and works on Debian as well.

Thanks and regards.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru haskell-gtk-0.12.5.6/debian/changelog haskell-gtk-0.12.5.6/debian/changelog
--- haskell-gtk-0.12.5.6/debian/changelog	2014-04-06 09:12:06.000000000 +0000
+++ haskell-gtk-0.12.5.6/debian/changelog	2014-09-19 13:43:48.000000000 +0000
@@ -1,3 +1,10 @@
+haskell-gtk (0.12.5.6-1ppc64el1) UNRELEASED; urgency=medium
+
+  * Patch by Colin Watson with workaround undefining pixel so gtk2hsC2hs will not break the build.
+    Fixes ftbfs on ppc64el. 
+
+ -- Fernando Seiti Furusato <[email protected]>  Fri, 19 Sep 2014 13:42:30 +0000
+
 haskell-gtk (0.12.5.6-1) unstable; urgency=low
 
   * Adjust watch file to new hackage layout
diff -Nru haskell-gtk-0.12.5.6/debian/patches/series haskell-gtk-0.12.5.6/debian/patches/series
--- haskell-gtk-0.12.5.6/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ haskell-gtk-0.12.5.6/debian/patches/series	2014-09-19 13:41:27.000000000 +0000
@@ -0,0 +1 @@
+work-around-pixel-define.patch
diff -Nru haskell-gtk-0.12.5.6/debian/patches/work-around-pixel-define.patch haskell-gtk-0.12.5.6/debian/patches/work-around-pixel-define.patch
--- haskell-gtk-0.12.5.6/debian/patches/work-around-pixel-define.patch	1970-01-01 00:00:00.000000000 +0000
+++ haskell-gtk-0.12.5.6/debian/patches/work-around-pixel-define.patch	2014-09-19 13:42:18.000000000 +0000
@@ -0,0 +1,17 @@
+Description: Work around predefined "pixel" on some architectures
+ "pixel" is predefined on some Ubuntu architectures, confusing gtk2hsC2hs.
+ Explicitly undefine it to work around this.
+Author: Colin Watson <[email protected]>
+Forwarded: no
+Last-Update: 2014-06-05
+
+Index: b/gtk.cabal
+===================================================================
+--- a/gtk.cabal
++++ b/gtk.cabal
+@@ -399,3 +399,5 @@
+           cc-options: -DGTK2HS_SET_FMODE_BINARY
+
+         pkgconfig-depends: gthread-2.0, gtk+-2.0
++
++        cpp-options: -Upixel

Reply via email to