New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LD_LIBRARY_PATH should not end in ':' #1113
Comments
From @millertCreated by millert@courtesan.comWhen building perl5.005_63 with shared lib support on OpenBSD/i386, Inline Patch--- Makefile.SH.DIST Tue Dec 7 23:23:10 1999
+++ Makefile.SH Wed Feb 2 11:49:20 2000
@@ -30,7 +30,12 @@
true)
# Prefix all runs of 'miniperl' and 'perl' with
# $ldlibpth so that ./perl finds *this* shared libperl.
- ldlibpth="LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH"
+ case "$LD_LIBRARY_PATH" in
+ '')
+ ldlibpth="LD_LIBRARY_PATH=`pwd`";;
+ *)
+ ldlibpth="LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}";;
+ esac
pldlflags="$cccdlflags"
case "${osname}${osvers}" in
@@ -78,6 +83,8 @@
eval "ldlibpth=\"$ldlibpthname=`pwd`:\$$ldlibpthname\""
;;
esac
+ # Strip off any trailing :'s
+ ldlibpth=`echo $ldlibpth | sed 's/:*$//'`
;;
esac
;; Perl Info
|
From [Unknown Contact. See original ticket]
POSIX 1003.1 says that open/opendir on a null must fail, contrary POSIX 1003.2 says that a null path component is considered the cwd. I wonder whether this has anything to do with the icky problems I had Minor note: _64 just snuckered out the door. --tom |
From @millertIn message <13497.949524439@chthon>
Yup, and I have a patch to the OpenBSD ld.so that makes it behave - todd |
From @doughera88On Wed, 2 Feb 2000, Todd C. Miller wrote:
I'd agree with Todd here. The cost of being defensive is zero for us (now Andy Dougherty doughera@lafayette.edu |
From @gsarOn Wed, 02 Feb 2000 13:42:59 MST, "Todd C. Miller" wrote:
There's a OpenBSD-specific fix in v5.5.640 that might help here. Can Sarathy |
From @millertIn message <200002030321.TAA25578@maul.activestate.com>
That's a different bug, for which I already committed your fix. :-) - todd Index: shlib.cRCS file: /cvs/src/gnu/usr.bin/ld/shlib.c,v void
|
From [Unknown Contact. See original ticket]
FYI: 1003.2 was only referring to the shell's behavior on the bin PATH --tom |
From @millertIn message <18369.949578546@chthon>
I understand that, but I think it makes sense to emulate that behavior. - todd |
Migrated from rt.perl.org#2071 (status was 'resolved')
Searchable as RT2071$
The text was updated successfully, but these errors were encountered: