summaryrefslogtreecommitdiff
path: root/p/haskell-gtk/debian/patches
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-09-19 23:48:32 +0400
committerJoachim Breitner <mail@joachim-breitner.de>2014-09-19 23:48:32 +0400
commit8237558905bd9034b7e0312342c60117d0c73ec5 (patch)
treeadbe778a8906a1909a8df6ccdd3844340be61b46 /p/haskell-gtk/debian/patches
parenta6c7ab889b93f0792c6dfa1f34c243cd074e58dd (diff)
downloadDHG_packages-8237558905bd9034b7e0312342c60117d0c73ec5.tar.gz
haskell-gtk: Patch by Colin Watson with workaround undefining pixel so gtk2hsC2hs will not break the build. Fixes ftbfs on ppc64el. (Closes: 762208)
Diffstat (limited to 'p/haskell-gtk/debian/patches')
-rw-r--r--p/haskell-gtk/debian/patches/series1
-rw-r--r--p/haskell-gtk/debian/patches/work-around-pixel-define.patch17
2 files changed, 18 insertions, 0 deletions
diff --git a/p/haskell-gtk/debian/patches/series b/p/haskell-gtk/debian/patches/series
new file mode 100644
index 000000000..cf3484edb
--- /dev/null
+++ b/p/haskell-gtk/debian/patches/series
@@ -0,0 +1 @@
+work-around-pixel-define.patch
diff --git a/p/haskell-gtk/debian/patches/work-around-pixel-define.patch b/p/haskell-gtk/debian/patches/work-around-pixel-define.patch
new file mode 100644
index 000000000..443e6065c
--- /dev/null
+++ b/p/haskell-gtk/debian/patches/work-around-pixel-define.patch
@@ -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 <cjwatson@ubuntu.com>
+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