William G. Scott wrote: [] > On Sep 18, 2008, at 7:48 AM, Alexander Hansen wrote: > >> I did, though. In consultation with Dan Macks we found the following: >> >> $ type -a xml2-config >> xml2-config is /sw/share/xtal/ccp4-6.0.99e/bin/xml2-config >> xml2-config is /sw/bin/xml2-config >> xml2-config is /usr/bin/xml2-config >> >> That shadows the "normal" xml2-config. A quick hack would be to >> rename or remove ccp4's xml2-config.
This exposes an IMHO dangerous feature of fink's build process: In order to set up its default build environment, it runs /sw/bin/init.sh and therefore executes all the scripts in /sw/etc/profile.d/ (in PkgVersion.pm). I think it would be much more robust if fink constructed its PATH explicitly (and perhaps some other env vars, if it they are needed) and didn't leave this to the the init scripts that depend on random installed packages. It would then even be possible - as has often been suggested - to place /sw/bin:/sw/sbin at the *end* of PATH in the standard user environment while keeping it at the beginning of PATH in fink's build environment. Or is there some logical reason why the fink build environment should be the same as the user shell environment? I don't see any such reason. -- Martin ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel