Hi,

On Dec 11, 2007, at 3:36 PM, Alexander K. Hansen wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jason Detwiler wrote:
>> Alexander K. Hansen <akh <at> finkproject.org> writes:
>>
>>> Fink builds 32-bit, unless an individual package asks it not to.
>>> There's no global option to force Fink to build 64-bit
>>> exclusively.
>>>
>>> You would need to investigate each package and figure out how it
>>> wants to build 64-bit, since each probably takes different
>>> options to do so.
>>>
>>
>> Thanks for the fast reply. So what is the likelihood of adding the
>> capability to force 64-bit builds to fink (e.g. in fink.conf)? Is
>> this post sufficient as a request, or is there another forum for
>> requesting new features?
>>
> Almost zero (see below)
>> Actually, does the current policy even make sense? If a package can
>> ask fink not to build 32-bit, why can't the user? And if the user
>> can't request it to start with, when would a package EVER not build
>> 32-bit? Or are there 64-bit-only packages?
> Fink doesn't offer user customizations for builds because it's
> completely the opposite of the overarching paradigm under which it
> operates:  packages should build the same way on different machines as
> much as possible.   This is the policy for _everything_, not just 32
> vs. 64 bit builds.
>
> The main reason that we have the 64-bit option in the first place is
> that some packages autodetect the machine that they're on and build
> accordingly, and we wanted to prevent the case of libraries built on a
> G5 being installed and breaking on a G4b, for example.
>>
>> If the answer to the last question is "yes", how can I get a list
>> of those packages? I want to know if any of them can help me
>> install 64-bit versions of openmotif3 and gfortran.
>>
>>
> fink list 64bit

I have a private (hacked version) of openmotif3 which builds 64bit.  
There are only a few changes needed:
--- openmotif3.info     2007-12-09 18:49:10.000000000 -0600
+++ openmotif3.info.64bit       2007-12-04 12:40:10.000000000 -0600
@@ -8,6 +8,7 @@
    perl -pi.bak -e 's,-flat_namespace -undefined suppress,-undefined  
dynamic_lookup,g' configure
    perl -pi.bak -e "s;recipient's;recipients;" tools/wml/motif.wml
    perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
+  perl -pi -e 's/\$CC -r/\$CC -m64 -r/g' configure
  <<
  BuildDepends: x11-dev
  Depends:  x11, %N-shlibs (= %v-%r)
@@ -15,6 +16,7 @@
  Replaces: lesstif, lesstif-dev
  BuildDependsOnly: True
  NoSetMAKEFLAGS: true
+SetCC: gcc -m64
  SetCFLAGS: -DXNO_MTSAFE_STRINGAPI -DXNO_MTSAFE_PWDAPI - 
DXNO_MTSAFE_TIMEAPI
  SetLIBS: -L/usr/X11R6/lib -lXt
  SetMAKEFLAGS: -j1


However, this will break any other package which builds/links against  
openmotif3!

I will try come up with a proper package for it and send it to the  
maintainer (cc'd). But I have no estimate on when I will find time to  
do it.

Concerning gfortran: I successfully built 64bit code with the current  
gcc42 package in fink. The 64bit libraries are at  /sw/lib/gcc4.2/lib/ 
x86_64/


Remi


--
To boldly  go  where  no  corporate benefits plan  ever  expected  an
employee to go.
                                John Murrell (GMSV) about SpaceShipOne
*********************************************************************
Remigius K. Mommsen                 e-mail:          [EMAIL PROTECTED]
University of Manchester               URL:    http://cern.ch/mommsen
Fermilab, MS 357                     voice:        ++1 (630) 840-8321
P.O. Box 500                           fax:        ++1 (630) 840-2649
Batavia, Il 60510, US                 home:        ++1 (630) 236-0932
*********************************************************************




-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to