Package: gwp
Version: 0.4.0-1.2
Severity: important
Tags: patch
Justification: fails to build from source
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch


This package's configure script improperly refers to python's LOCALMODLIBS, 
which should not be referenced by programs linking with python.

http://launchpadlibrarian.net/38666414/buildlog_ubuntu-lucid-i386.gwp_0.4.0-1.2build1_FAILEDTOBUILD.txt.gz

i486-linux-gnu-gcc -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment 
-Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes 
-DPREFIX=\"/usr\" -DSYSCONFDIR=\"/usr/etc\" -DLIBDIR=\"/usr/lib\" 
-DDATADIR=\"/usr/share\" -D_GNU_SOURCE -O1 -g -Wall -g -O2 
-Wl,-Bsymbolic-functions -o gwp [...] -L/usr/lib/python2.6/config -lssl [...]
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status

------------------

In Ubuntu, we've applied the attached patch to achieve the following:

  * Remove invalid reference to python's LOCALMODLIBS to fix -lssl FTBFS
    (LP: #517918)

We thought you might be interested in doing the same. 
--- gwp-0.4.0.orig/configure.in
+++ gwp-0.4.0/configure.in
@@ -100,10 +100,11 @@
                PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
                PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
                
PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
-               PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
+               # Only python itself should reference python's LOCALMODLIBS
+               # PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
                PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
                PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
-               PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
+               PY_EXTRA_LIBS="$PY_BASEMODLIBS $PY_OTHER_LIBS"
                AC_SUBST(PY_LIBS)
                AC_SUBST(PY_LIB_LOC)
                AC_SUBST(PY_CFLAGS)


--- gwp-0.4.0.orig/configure
+++ gwp-0.4.0/configure
@@ -20136,10 +20136,11 @@
                PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
                PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
                
PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
-               PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
+               # Only python itself should reference python's LOCALMODLIBS
+               # PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
                PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' 
$PY_MAKEFILE`
                PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
-               PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
+               PY_EXTRA_LIBS="$PY_BASEMODLIBS $PY_OTHER_LIBS"
 
 
 

Reply via email to