Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549184 - app-text/opensp: configure needs to be regenerated to correct lib search path
Summary: app-text/opensp: configure needs to be regenerated to correct lib search path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-11 14:52 UTC by Benda Xu
Modified: 2015-05-12 05:28 UTC (History)
2 users (show)

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


Attachments
opensp.patch (opensp.patch,538 bytes, patch)
2015-05-11 14:55 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2015-05-11 14:52:05 UTC
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"
Comment 1 Benda Xu gentoo-dev 2015-05-11 14:55:42 UTC
Created attachment 403040 [details, diff]
opensp.patch

call eautoreconf.
Comment 2 Mike Gilbert gentoo-dev 2015-05-11 16:53:43 UTC
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.
Comment 3 Benda Xu gentoo-dev 2015-05-12 05:28:13 UTC
+*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).
+
Comment 4 Benda Xu gentoo-dev 2015-05-12 05:28:32 UTC
Thanks Mike for pointing this out.