Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
On Aug 28, 2005, at 4:05 AM, Martin Costabel wrote: /usr/bin/env PATH=/usr/sbin:/usr/bin:/sbin:/bin gcc_select Fink now does this, thanks for the advice. Just my €0.02 Or 3¢ Canadian. Darn all you folks with currencies that are worth something... Dave PGP.sig Description: This is a digitally signed message part
Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
Matthew Sachs wrote: [] This applies to many more scripts on the system than just gcc_select, and I don't believe that any of them set their own PATH. gcc_select Looking at some of the examples, one sees indeed very different levels of careful programming. Some of the scripts go to great lengths to always use the complete path like /bin/rm etc, others are pretty sloppy. Some are at the limit of the ridiculous like apachectl which uses which in a sh script, with rather unpredictable outcome. And one should add that the fact that we need to run gcc_select from fink at all is caused by a bug in the concept of gcc_select. It fiddles with things that other system tools consider immutable. isn't particularly vital or dangerous -- if it gets things wrong, worst case you need to reinstall XCode. I would consider this rather serious, in particular when it can happen out of the blue sky, just because some library is temporarily not what or where it is supposed to be. -- Martin --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
AIDA Shinra wrote: [] The gcc_select seems to work as long as the tools are POSIXly correct and /bin/sh is bash. To keep tools correct is our responsibility. But to guarantee that they are correct in all situations at all times is impossible. If you require this you cannot ever develop Fink packages like fileutils. Of course someone who tests a new version of cp will be careful not to use it deliberately for crucial tasks, but as Matthew's accident showed, a sloppily written script such as gcc_select can kill your development environment behind your back. -- Martin --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
On Aug 28, 2005, at 04:05, Martin Costabel wrote: Matthew Sachs wrote: [] dyld: Library not loaded: /Volumes/SandBox/fink/sw/lib/libintl. 3.dylib Referenced from: /Volumes/SandBox/fink/sw/bin/mkdir Reason: image not found /usr/sbin/gcc_select: line 645: 1350 Trace/BPT trap This asks for filing a bug against gcc_select, I think. A script of this importance shouldn't just stupidly use rm and cp etc without knowing what they are. It really should set its own PATH before doing anything else. This applies to many more scripts on the system than just gcc_select, and I don't believe that any of them set their own PATH. gcc_select isn't particularly vital or dangerous -- if it gets things wrong, worst case you need to reinstall XCode. --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
dyld: Library not loaded: /Volumes/SandBox/fink/sw/lib/libintl.3.dylib Referenced from: /Volumes/SandBox/fink/sw/bin/mkdir Reason: image not found /usr/sbin/gcc_select: line 645: 1350 Trace/BPT trap This asks for filing a bug against gcc_select, I think. A script of this importance shouldn't just stupidly use rm and cp etc without knowing what they are. It really should set its own PATH before doing anything else. The gcc_select seems to work as long as the tools are POSIXly correct and /bin/sh is bash. To keep tools correct is our responsibility. --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
Matthew Sachs wrote: [] dyld: Library not loaded: /Volumes/SandBox/fink/sw/lib/libintl.3.dylib Referenced from: /Volumes/SandBox/fink/sw/bin/mkdir Reason: image not found /usr/sbin/gcc_select: line 645: 1350 Trace/BPT trap This asks for filing a bug against gcc_select, I think. A script of this importance shouldn't just stupidly use rm and cp etc without knowing what they are. It really should set its own PATH before doing anything else. As long it doesn't, fink will need to do it instead: Not just run /usr/sbin/gcc_select but /usr/bin/env PATH=/usr/sbin:/usr/bin:/sbin:/bin gcc_select Just my €0.02 -- Martin --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
[Fink-devel] fileutils missing dep on libgettext3-shlibs kills /usr/bin/gcc
fileutils is missing a depend on libgettext3-shlibs (it has a builddepend on libgettext3-dev.) This can lead to particularly disastrous results if you remove libgettext3-shlibs with fileutils installed and then run gcc_select (which gets run automatically when you try to build something due to the Repair Permissions issue.) An excerpt from my latest build: ... cdk-4.9.10/cli/cli.make cdk-4.9.10/cli/Makefile cdk-4.9.10/config.status cdk-4.9.10/cdk-4.9.10.lsm dyld: Library not loaded: /Volumes/SandBox/fink/sw/lib/libintl.3.dylib Referenced from: /Volumes/SandBox/fink/sw/bin/mkdir Reason: image not found /usr/sbin/gcc_select: line 645: 1350 Trace/BPT trap $dashn mkdir -p $usr/bin dyld: Library not loaded: /Volumes/SandBox/fink/sw/lib/libintl.3.dylib Referenced from: /Volumes/SandBox/fink/sw/bin/ln Reason: image not found /usr/sbin/gcc_select: line 645: 1358 Trace/BPT trap $dashn ln -sf gcc$switchto_cc_driver $usr/bin/cc ... And then it was like beep beep beep and my /usr/bin/gcc and /usr/bin/ cc were gone. Probably because fileutils lays down /sw/bin/ln but not /sw/bin/rm, so gcc_select's rm works but its ln fails. Removing fileutils and recreating the gcc and cc symlinks gets things working enough to run gcc_select. --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel