On Mon, September 7, 2009 12:35 am, Martin Costabel wrote:
> David R. Morrison wrote:
>> Bill,
>>
>> Isn't that going to break on powerpc?
>>
>>    -- Dave
>>
>>
>> On Sep 6, 2009, at 11:09 PM, William Scott wrote:
>>
>>> Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
>>> In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9438
>>>
>>> Modified Files:
>>>     mosflm.info
>>> Log Message:
>>> fix to force 32-bit compilation on 10.6 when appropriate
>>>
>>> Index: mosflm.info
>>> ===================================================================
>>> RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/
>>> mosflm.info,v
>>> retrieving revision 1.23
>>> retrieving revision 1.24
>>> diff -u -d -r1.23 -r1.24
>>> --- mosflm.info     7 Sep 2009 02:22:22 -0000       1.23
>>> +++ mosflm.info     7 Sep 2009 03:09:19 -0000       1.24
>>> @@ -12,6 +12,10 @@
>>> CompileScript: <<
>>> #!/bin/zsh -efv
>>> source %p/bin/init.sh
>>> +if [[ "%m" != "x86_64" ]]; then
>>> +   perl -pi -e 's|gfortran|gfortran -m32|g' fink_gfortran.zsh
>>> +   perl -pi -e 's|gcc |gcc -m32 |g' fink_gfortran.zsh
>>> +fi
>>> source fink_gfortran.zsh
>>> make
>>> cd bin
>
> One problem with zsh-based compilescripts on 10.6 is (see the zsh thread
> I started on this) that the zsh startup script on 10.6 clobbers fink's
> PATH.
>
> I think what should be done is that Fink provides a script or perl
> function that can be called by the compilescript and that places the
> right fink path, in particular fink-path-prefix..., in front of PATH.
> Right now, this PATH surgery is buried deeply in the function
> Fink::PkgVersion::get_env.
>
> This should take care of the right flag for gcc. As for the gfortran
> flag, Jack H. seems to assert that it shouldn't be necessary, but I am
> not sure that this is true.
>
> --
> Martin
>
>
>

Since I am probably the only moron who uses zsh in info files, it might be
easier just to make line number 2 "source %p/bin/init.sh"

My first experiences were that this is not enough, however.  (Nor is
simply changing the shell to bash or sh). (Also, on my machines, my
customized /etc/zshenv does the right thing, and it is still problematic
-- although it may have masked a problem in another case...).

Bill

PS:  For some reason the initial email in the zsh thread didn't make it
into the digest.


William G. Scott

Contact info:
http://chemistry.ucsc.edu/~wgscott/



------------------------------------------------------------------------------
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