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
'make install-runtime' need to be added to the ebuild
Created attachment 37580 [details] Modified ebuild file.
Created attachment 37581 [details, diff] Ebuild patch file. use: patch -P0 < swig-ebuild.patch in /usr/portage/dev-lang/swig directory.
I can confirm that the ebuild needs 'make install-runtime' is needed to install these libraries. Attached patch and modified ebuild.
I can confirm that the above patch fixed the problem. Would someone please commit this to portage ?
I just committed the fixed ebuild. Thanks to you all.