Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/patches/1001_hardcode_LIBXUL_DIR.patch12
-rw-r--r--debian/patches/2001_hardcode_LIBXUL_DIR_automade.patch12
-rw-r--r--debian/patches/series2
3 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/1001_hardcode_LIBXUL_DIR.patch b/debian/patches/1001_hardcode_LIBXUL_DIR.patch
new file mode 100644
index 0000000..77e7205
--- /dev/null
+++ b/debian/patches/1001_hardcode_LIBXUL_DIR.patch
@@ -0,0 +1,12 @@
+diff --git a/configure.ac b/configure.ac
+--- a/configure.ac
++++ b/configure.ac
+@@ -38,7 +38,7 @@ PKG_CHECK_MODULES([LIBXUL],[libxul])
+ # FIXME To be able to use pyxpcom we currently need
+ # to link to xpcom at build time. Which involves various hacks.
+ LIBXUL_SDK_DIR=`$PKG_CONFIG --variable=sdkdir libxul`
+-LIBXUL_DIR="`dirname $LIBXUL_SDK_DIR`/xulrunner-`$PKG_CONFIG --modversion libxul`"
++LIBXUL_DIR="/usr/lib/xulrunner-1.9"
+ LIBXUL_LIBS="$LIBXUL_LIBS -L$LIBXUL_DIR -lpyxpcom"
+
+ LIBXUL_CFLAGS=`$PKG_CONFIG --cflags --define-variable=includetype=unstable libxul`
diff --git a/debian/patches/2001_hardcode_LIBXUL_DIR_automade.patch b/debian/patches/2001_hardcode_LIBXUL_DIR_automade.patch
new file mode 100644
index 0000000..5acb918
--- /dev/null
+++ b/debian/patches/2001_hardcode_LIBXUL_DIR_automade.patch
@@ -0,0 +1,12 @@
+diff --git a/configure b/configure
+--- a/configure
++++ b/configure
+@@ -20531,7 +20531,7 @@ fi
+ # FIXME To be able to use pyxpcom we currently need
+ # to link to xpcom at build time. Which involves various hacks.
+ LIBXUL_SDK_DIR=`$PKG_CONFIG --variable=sdkdir libxul`
+-LIBXUL_DIR="`dirname $LIBXUL_SDK_DIR`/xulrunner-`$PKG_CONFIG --modversion libxul`"
++LIBXUL_DIR="/usr/lib/xulrunner-1.9"
+ LIBXUL_LIBS="$LIBXUL_LIBS -L$LIBXUL_DIR -lpyxpcom"
+
+ LIBXUL_CFLAGS=`$PKG_CONFIG --cflags --define-variable=includetype=unstable libxul`
diff --git a/debian/patches/series b/debian/patches/series
index c05035e..be240dc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
0001_fix_pointer_conversion.patch
+1001_hardcode_LIBXUL_DIR.patch
+2001_hardcode_LIBXUL_DIR_automade.patch