-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/17/11 12:53 PM, Stefan Bruda wrote:
> Hi,
> 
> At 19:47 -0700 on 2011-4-16 Richard Miles wrote:
>  >
>  > Is it possible to set up fink so that it builds 32 bit programs as
>  > 32 bit and 64 bit programs as 64 bit.
> 
> I am doing so with mplayer and firefox (pdftk used to be another one
> until recently).  What I have is two instances of fink, one 64-bit
> (which hosts most of the stuff) and the other 32-bit (which only holds
> mplayer, firefox, and their dependencies).  I then have symlinks for
> appropriate applications (mplayer, mencoder, and firefox in my case)
> in a suitable directory already in the search path (such as
> /usr/local/bin).
> 
> To manage the 32-bit version I source the 32-bit init.sh manually in a
> terminal, whereas the 64-bit init.sh is sourced everywhere by my
> .profile.
> 
> The downside is disk space, as some things (said dependencies) need to
> be replicated.  This is not that much though, with sources shared (and
> thus excluded) I have about 760M in the 32-bit fink directory.
> 
> I am not sure if this is the best way to accomplish things but it
> has been working well for me for ages.
> 
> Stefan
> 

Going the other way doesn't work, by the way:  if you have a 32-bit Fink
installation as the primary one in the .profile, sourcing the 64-bit
init.sh doesn't work, because of the special things we have to do to
make the system Perl work for 32-bit.

You may also encounter build problems if you put executables in a
globally searchable path, if the package you're building happens to look
for and detect those.  Another option is just to symlink them into e.g.
$HOME/bin, and put that in your local PATH, because Fink doesn't see
that at all.

Personally, I only source either my 32-bit or my 64-bit Fink
installation, but not both in a shell session.  I wrote a little shell
script that toggles which one is active on login.

Unfortunately, there really isn't currently an option to allow for
32-bit builds within a 64-bit Fink tree.
- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2rQUkACgkQB8UpO3rKjQ8oBACggYyrUjDNHwx5Gni5KRkwJJZT
iIcAoILec2jw20MHixjLGjQKlto757ci
=1wNE
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to