[Bug 460044] New: libtool: generates temporary wrappers with improperly escaped LD_LIBRARY_PATH
https://bugzilla.novell.com/show_bug.cgi?id=460044 Summary: libtool: generates temporary wrappers with improperly escaped LD_LIBRARY_PATH Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: bphilips@novell.com QAContact: qa@suse.de Found By: --- Steps to reproduce: osc co openSUSE:Factory attr cd openSUSE:Factory/attr quilt setup attr.spec cd attr-2.4.39/ ./configure make view getfattr/getfattr It will contain a line like: LD_LIBRARY_PATH="/home/philips/projects/openSUSE:Factory/attr/attr-2.4.39/libattr/.libs:$LD_LIBRARY_PATH" Obviously this isn't going to fly since colon is the path separator for LD_LIBRARY_PATH output from libtool --help: When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: x86_64-unknown-linux-gnu shell: /bin/sh compiler: gcc compiler flags: -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g linker: /usr/x86_64-suse-linux/bin/ld -m elf_x86_64 (gnu? yes) libtool: (GNU libtool) 2.2.6 automake: automake (GNU automake) 1.10.1 autoconf: autoconf (GNU Autoconf) 2.63 -- 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=460044
User bphilips@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=460044#c1
--- Comment #1 from Brandon Philips
https://bugzilla.novell.com/show_bug.cgi?id=460044
User bphilips@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=460044#c2
--- Comment #2 from Brandon Philips
Hello Brandon,
thanks for the report.
* Brandon Philips wrote on Thu, Dec 18, 2008 at 06:32:15AM CET:
I have found that libtool generates temporary wrappers with improperly escaped LD_LIBRARY_PATH. If the current directory path contains a colon. For example /home/philips/test:directory/attr-2.4.43/
Where is it documented that LD_LIBRARY_PATH is interpreted as with backslash escaping for colons in the names? I've never heard of that before.
The ld.so(1) man page on my Debian testing system documents that LD_LIBRARY_PATH is interpreted similarly to PATH. I confirmed now that PATH uses this kind of colon escaping, surprisingly. I cannot find it documented anywhere though, certainly not in the Posix pages (but hey, I overlooked things before).
We can think about supporting it when and where this is suitably safe to do so, but my gut reaction would be "don't do it when it hurts".
Cheers, Ralf
-- 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=460044
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=460044
User bphilips@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=460044#c3
--- Comment #3 from Brandon Philips
https://bugzilla.novell.com/show_bug.cgi?id=460044
User bphilips@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=460044#c4
Brandon Philips
participants (1)
-
bugzilla_noreply@novell.com