Daniel Macks wrote:
> On Mon, Aug 31, 2009 at 09:42:21AM +0200, Martin Costabel wrote:
>> After spending time trying to build apbs in SnowLeopard 32-bit Fink, I 
>> have identified a source of breakage, but I have not yet found a good 
>> solution:
>>
>> CompileScripts that run in zsh, like apbs which has
>> #!/bin/zsh -efv
>> have a good chance to break on 32-bit Fink on SL. The reason is the 
>> following:
>>
>> SL has /etc/zshenv, which didn't exist before. This script is always 
>> executed at startup of zsh, and according to man zsh, this behavior 
>> cannot be overridden. Now /etc/zshenv runs /usr/libexec/path_helper, and 
>> this places the system path /usr/bin in front of Fink's path.
> 
> Does putting ". %p/bin/init.sh" (or whatever the zsh-syntax is) at the
> beginning of the script body solve it?

No, because this does not place /sw/var/lib/fink/path-prefix-10.6/ on 
the PATH. And just placing this one there would be a solution for 10.6, 
but not for 10.5. Meaning complicated if clauses or different packages 
for 10.5 and 10.6. That's what I meant by "quite a mess".


BTW, apbs is by no means the only package using zsh, there are several 
dozen of them.

-- 
Martin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to