Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60627 - SWIG port does not install libswigpy.so needed by SubVersion
Summary: SWIG port does not install libswigpy.so needed by SubVersion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 19:42 UTC by Mina Naguib
Modified: 2004-08-18 02:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Modified ebuild file. (swig-1.3.21.ebuild,1.72 KB, text/plain)
2004-08-17 03:06 UTC, Andrew Glen-Young
Details
Ebuild patch file. (swig-ebuild.patch,300 bytes, patch)
2004-08-17 03:07 UTC, Andrew Glen-Young
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mina Naguib 2004-08-16 19:42:21 UTC
Installing SubVersion crashes during linking with:
cd subversion/bindings/swig/python && /bin/sh /var/tmp/portage/subversion-1.0.6/work/subversion-1.0.6/libtool --silent --mode=link gcc -pthread -shared  -rpath /usr/lib/svn-python/libsvn -avoid-version -module -o _client.la svn_client.lo -lswigpy ../../../../subversion/bindings/swig/libsvn_swig_py-1.la ../../../../subversion/libsvn_client/libsvn_client-1.la 
cd subversion/bindings/swig/python && /bin/sh /var/tmp/portage/subversion-1.0.6/work/subversion-1.0.6/libtool --silent --mode=link gcc -pthread -shared  -rpath /usr/lib/svn-python/libsvn -avoid-version -module -o _core.la core.lo -lswigpy ../../../../subversion/bindings/swig/libsvn_swig_py-1.la ../../../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -lpthread -ldl 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lswigpy
collect2: ld returned 1 exit status
make: *** [subversion/bindings/swig/python/_client.la] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lswigpy
collect2: ld returned 1 exit status
make: *** [subversion/bindings/swig/python/_core.la] Error 1

Looking at SWIG port's packing list, I notice something peculiar.  libswigpy.so.0 was built but removed before build was completed!  Here's a snippet from emerging swig:

/bin/sh ../libtool --mode=link gcc  -O2 -march=pentium4 -pipe -Wall   -o libswigpl.la -rpath /usr/lib -no-undefined   libswigpl_la-libpl.lo  -ldl 
gcc -shared  .libs/libswigpy_la-libpy.o  -ldl  -march=pentium4 -Wl,-soname -Wl,libswigpy.so.0 -o .libs/libswigpy.so.0.0.0
gcc -shared  .libs/libswigpl_la-libpl.o  -ldl  -march=pentium4 -Wl,-soname -Wl,libswigpl.so.0 -o .libs/libswigpl.so.0.0.0
(cd .libs && rm -f libswigpy.so.0 && ln -s libswigpy.so.0.0.0 libswigpy.so.0)
(cd .libs && rm -f libswigpy.so && ln -s libswigpy.so.0.0.0 libswigpy.so)
creating libswigpy.la
(cd .libs && rm -f libswigpy.la && ln -s ../libswigpy.la libswigpy.la)

Reproducible: Always
Steps to Reproduce:
1. Emerge SWIG
2. Emerge SubVersion


Actual Results:  
subversion fails becuase swig port didn't install needed file

Expected Results:  
Installed libswigpy.so so it can be linked-against by other programs
Comment 1 Stoyan Zhekov (RETIRED) gentoo-dev 2004-08-17 01:04:13 UTC
'make install-runtime' need to be added to the ebuild
Comment 2 Andrew Glen-Young 2004-08-17 03:06:42 UTC
Created attachment 37580 [details]
Modified ebuild file.
Comment 3 Andrew Glen-Young 2004-08-17 03:07:42 UTC
Created attachment 37581 [details, diff]
Ebuild patch file.

use: patch -P0 < swig-ebuild.patch in /usr/portage/dev-lang/swig directory.
Comment 4 Andrew Glen-Young 2004-08-17 03:09:12 UTC
I can confirm that the ebuild needs 'make install-runtime' is needed to install these libraries. Attached patch and modified ebuild.
Comment 5 Mina Naguib 2004-08-17 10:19:38 UTC
I can confirm that the above patch fixed the problem.  Would someone please commit this to portage ?
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-18 02:40:50 UTC
I just committed the fixed ebuild. Thanks to you all.