PATH=/usr/local/bin:/bin:/usr/bin considered harmful

Björn Persson bjorn at xn--rombobjrn-67a.se
Sat Jun 23 16:05:17 UTC 2012


These search path problems seem to be cropping up in lots of packages. Here's 
another example:

https://bugzilla.redhat.com/show_bug.cgi?id=797557

GPRbuild is designed to be relocatable, because the corporations that are 
Adacore's customers want to be able to drop a directory tree with binaries and 
data in some nonstandard directory and use it from there witout recompiling 
anything. Therefore GPRbuild doesn't have an installation prefix compiled in. 
Instead it searches for itself on the search path to find out where it is 
installed. When it finds itself in /bin it concludes that the installation 
prefix is /, and looks for its data in /share instead of /usr/share, which of 
course fails because there is no /share. Working around this required a 
Fedora-specific patch to make GPRbuild resolve the symbolic link.

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20120623/cd503da8/attachment.sig>


More information about the devel mailing list