Summary: | Solaris fixes are not portable | ||
---|---|---|---|
Product: | pkg-config | Reporter: | Daniel Macks <dmacks> |
Component: | src | Assignee: | Tollef Fog Heen <tfheen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | alan.coopersmith |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Make Solaris fixes more portable |
Description
Daniel Macks
2005-12-08 09:10:46 UTC
That check actually seems to be attempting to test "Is this shell advanced enough to translate ~root into root's home directory?" (The Solaris /bin/sh does not, and few sites have a directory literally named ~root.) It would seem a safer check would be if [ ! -d ~root -a -x /usr/xpg4/bin/sh ] ; then Created attachment 18619 [details] [review] Make Solaris fixes more portable I've changed the Hardware & OS to all because it is not OSX specific and there isn't a catagory for bash pretending to be /bin/sh. The attached patch should make the fix much more portable. I have changed this to use getconf PATH instead, which is the POSIX way of going about this. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.