The configure shipped with app-text/opensp hardcodes sys_lib_search_path_spec of generated libtool to "/lib /usr/lib /usr/local/lib" in 4 places. If an la file (e.g. libstdc++.la) exists in /usr/local/lib, the build could fall because of incompatible library (e.g. glibc) versions. Gentoo has gotten rid of la files and a Gentoo box will rarely have them under /usr/local. But for Gentoo Prefix, it is possible. Mixing libraries from the host isn't a good idea. The same lib_search_path logic appears in configure for 4 times. If libtoolize is used, it has to be called 4 times, too. So eautoreconf seems to be the way to go. Should it be conditioned to Prefix? Reproducible: Always Steps to Reproduce: 1. cd $PORTDIR/app-text/opensp 2. ebuild opensp-1.5.2-r3.ebuild configure 3. cd $PORTAGE_TMPDIR/portage/app-text/opensp-1.5.2-r3/work/OpenSP-1.5.2 3. grep '$lt_sys_lib_search_path_spec' configure 10123:sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10126:sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13851:sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13854:sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16340:sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16343:sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19640:sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19643:sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20115:sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20118:sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4. grep $ grep -n /usr/local libtool 325:sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" 7127:sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64" 7432:sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
Created attachment 403040 [details, diff] opensp.patch call eautoreconf.
The sgml herd was disbanded a year or two ago; this package no longer has a maintainer. Please go ahead and apply whatever fixes you like.
+*opensp-1.5.2-r4 (12 May 2015) + + 12 May 2015; Benda Xu <heroxbd@gentoo.org> +opensp-1.5.2-r4.ebuild, + metadata.xml: + Adopting the package. Revision bump to regenerate configure (bug #549184) and + drop gcc-3.4 patch (from bug #48703). +
Thanks Mike for pointing this out.