From a21d675e0eab7f51d3f0f45a98aebbe236e5ad63 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 07 Dec 2008 15:08:45 +0000 Subject: Add patches 1001 and 2001 to fix hardcoded libxul path. Closes: bug#507850. --- 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 -- cgit v0.9.1