[Bug 529921] New: "foo-config --libs" shall not output -L/usr/lib(64)
http://bugzilla.novell.com/show_bug.cgi?id=529921 Summary: "foo-config --libs" shall not output -L/usr/lib(64) Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Documentation AssignedTo: ke@novell.com ReportedBy: koenig@linux.de QAContact: ke@novell.com Found By: --- it's the same from at least suse 9.0 via sles10 to opensuse 11.1, right now it's pcre-config which bugs me -- e.g. on sles10 and 11.1 64 bit: atuin > pcre-config --libs -L/usr/lib64 -lpcre if an autotool configure script uses this information to build LDFLAGS or LIBS for make, it can happen that that "pcre libs" cover an explicit link path for another lib which shall not be linked from the system libs/path but from a lib/path which is explicitly specified. (here: using a newer gcc to build octave-3.2.2 links against system libgfortran and not to the libgfortran of the gcc/gfortran used for linking...) specifying /usr/lib64 or /usr/lib for 32 bit is not necessary because those system lib dirs will be appended to the search path anyway -- but at the *end* of the search order and not at random depending in the sequence of configure tests. CentOS 5 has patches (at least in pcre-6.6-1.1.src.rpm) which remove those "-L/usr/lib{,/64}" entries in *-config script (pcre-config in CentOS 4u4 still does "echo -L/usr/lib64 -lpcre" too). on centos5 I have 11 /usr/bin/*-config scripts and none of them uses "-L/usr/lib..." : os2-centos5u0 > grep L/usr /usr/bin/*-config Binary file /usr/bin/pkg-config matches /usr/bin/xml2-config: if [ "-L${libdir}" = "-L/usr/lib64" ] while on suse 11.1 I get quite some hits out of 40 *-config scripts: os2-suse111 > grep L/usr /usr/bin/*-config /usr/bin/aalib-config: libdirs="-L/usr/lib64 -Wl,-rpath,${exec_prefix}/lib" /usr/bin/aalib-config: libdirs="-L/usr/lib64 -Wl,-rpath,${exec_prefix}/lib" /usr/bin/audiofile-config: libdirs=-L/usr/lib64 /usr/bin/croco-0.6-config: echo -L/usr/lib64 -lcroco-0.6 -lglib-2.0 -lxml2 /usr/bin/ijs-config: libdirs=-L/usr/lib64 /usr/bin/libart2-config: libdirs=-L/usr/lib64 /usr/bin/libtasn1-config:tasn1_libs="-L/usr/lib64 -ltasn1 " /usr/bin/libusb-config: echo -L/usr/lib64 -lusb /usr/bin/ncurses6-config: echo -L/usr/lib64/ncurses6 -lncurses /usr/bin/ncursesw6-config: echo -L/usr/lib64/ncurses6 -lncursesw /usr/bin/pcre-config: echo -L/usr/lib64$libR -lpcreposix -lpcre /usr/bin/pcre-config: echo -L/usr/lib64$libR -lpcre Binary file /usr/bin/pkg-config matches /usr/bin/sdl-config: echo -L/usr/lib64 -lSDL -lpthread /usr/bin/sdl-config: echo -L/usr/lib64 -lSDL -lpthread /usr/bin/wx-config:ldlibs_adv="-L/usr/lib64 -lSDL -lpthread" /usr/bin/wx-config: echo $_ldflags "-pthread -L/usr/lib64 " $_rpath $wx_libs "" /usr/bin/xdelta-config: libdirs=-L/usr/lib64 /usr/bin/xdelta-config: if test $i != -L/usr/lib64 ; then /usr/bin/xml2-config: if [ "-L${libdir}" = "-L/usr/lib" -o "-L${libdir}" = "-L/usr/lib64" ] please get rid of those -L and -Wl,-rpath, for system paths (/usr/lib* and /lib* too for rpath!). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 Karl Eichwalder <ke@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Documentation |Development AssignedTo|ke@novell.com |pth@novell.com QAContact|ke@novell.com |qa@suse.de -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User pth@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c1 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Philipp Thomas <pth@novell.com> 2009-08-12 06:49:54 MDT --- I do agree that hard coding system library paths that the linker will search automatically is a very bad idea. After a bit of discussion on opensuse-packaging (which I invite you to join) I've decided to go the following route: I'll write a check for rpmlint that checks for -L%{_libdir} in generated .pc and -config files and gives a warning for the packager. Approximately a week after that updated rpmlint package has been checked in, our buildservice/autobuild folks will run a grep over the build logs to see how many packages would be effected. With those numbers in hand the release manager will be able to decide how to proceed then. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User crrodriguez@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c2 Cristian Rodríguez <crrodriguez@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crrodriguez@novell.com --- Comment #2 from Cristian Rodríguez <crrodriguez@novell.com> 2009-09-22 16:10:36 MDT --- this foobar-config scripts must just die, unfortunately this will break packages and if they don't.. you will hit tons of roken pkgconfig files :-( -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c3 --- Comment #3 from Harald Koenig <koenig@linux.de> 2009-09-23 10:18:26 MDT --- (In reply to comment #1)
I do agree that hard coding system library paths that the linker will search automatically is a very bad idea. After a bit of discussion on opensuse-packaging (which I invite you to join) I've decided to go the following route: I'll write a check for rpmlint that checks for -L%{_libdir} in generated .pc and -config files and gives a warning for the packager. Approximately a week after that updated rpmlint package has been checked in, our buildservice/autobuild folks will run a grep over the build logs to see how many packages would be effected. With those numbers in hand the release manager will be able to decide how to proceed then.
did this already happen ? if yes, any numbers ? any change that this will influence 11.2 ? I just installed 11.2 milestone 7 (32bit) with all development pattern and run some scripts to detect (and optionally fix) those scripts and *.pc files. for that installation with 246 *-devel RPMs my script found 29 *-config scripts and 722 *.pc files which need to be fixed... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User crrodriguez@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c4 --- Comment #4 from Cristian Rodríguez <crrodriguez@novell.com> 2009-09-23 10:29:17 MDT --- Post your evidence here please, greatly appreciated. also include your scripts. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c5 --- Comment #5 from Harald Koenig <koenig@linux.de> 2009-09-23 11:17:38 MDT --- Created an attachment (id=319550) --> (http://bugzilla.novell.com/attachment.cgi?id=319550) output of fix scripts here is the output of my two tests: *.list file list *.diff diff output of changes *.diff-u "diff -u" output I guess that I can provide the scripts tomorrow, too... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=529921 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=529921#c6 --- Comment #6 from Harald Koenig <koenig@linux.de> 2009-09-24 05:24:34 MDT --- Created an attachment (id=319690) --> (http://bugzilla.novell.com/attachment.cgi?id=319690) script to find/fix pkgconfig problems voila the test/fix script... having a look on the file list I noticed that the symlink /usr/lib/qt4/lib created a lot of false duplicates for *.pc files -- so it's only 361 distinct *.pc files in my 11.2m7 installation. this scripts now checks for duplicate directories, but not yet for duplicate outputs of the different tests -- so for statistics better pipe the output through "sort -u" ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=529921 https://bugzilla.novell.com/show_bug.cgi?id=529921#c Ihno Krumreich <ihno@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |openSUSE 11.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=529921 https://bugzilla.novell.com/show_bug.cgi?id=529921#c Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #319690|application/x-shellscript |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=529921 https://bugzilla.novell.com/show_bug.cgi?id=529921#c7 Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #7 from Philipp Thomas <pth@suse.com> 2012-04-19 15:53:18 CEST --- Newer pkg-config versions simply remove suppress -L${libdir} if libdir expands to a system library directory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com