lasso/0001-build-replace-python-libdir-by-our-own.patch
Simo Sorce 1e5980de7c Enable perl bindings and fix minor build issues
Keep following upstream patches until 2.4.0 release.
The latest patches fixed perl binding, rpmlint issues with FSF license
address, and other minor build glitches.

Unfortunately make check still fails for perl so we keep perl bindings still
disabled for now.
2013-12-09 11:50:30 -05:00

29 lines
1.2 KiB
Diff

From 60d6858d148b3fa133abcaada130223603d2d184 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= <fpeters@entrouvert.com>
Date: Thu, 5 Dec 2013 17:51:32 +0100
Subject: [PATCH 1/4] build: replace python $libdir by our own
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index c04cd94a82b948b52d246f9ffee50126716a2fd5..7b2725328ae371cc5140a782aa165621e71091bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -380,7 +380,10 @@ if test "X$PYTHON_VERSION" != "X"; then
PY_MAKEFILE=`$PYTHON -c 'from distutils import sysconfig ; print sysconfig.get_makefile_filename()'`
PY_OTHER_LIBS=`$SED -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
- PY_SITE_PACKAGES="$PYTHON_LIB"
+ dnl this extracts the $libdir out of python lib directory,
+ dnl replacing it by our own.
+ PY_SUFFIX_LIB=`echo $PYTHON_LIB | $SED -e 's/.*python/python/'`
+ PY_SITE_PACKAGES="\${libdir}/$PY_SUFFIX_LIB"
AC_SUBST(PYTHON)
AC_SUBST(PY_LIB_LOC)
AC_SUBST(PY_CFLAGS)
--
1.8.4.2