Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2009 09:44:10 -0400
From:      Jim <stapleton.41@gmail.com>
To:        "b. f." <bf1783@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 32 bit ports on an AMD64 system
Message-ID:  <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com>
In-Reply-To: <d873d5be0908310811q7974f467xf772f95c662c5e19@mail.gmail.com>
References:  <d873d5be0908310811q7974f467xf772f95c662c5e19@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> First, I hope that you have a good reason for doing this, because it
> is going to be a PITA, and prone to all sorts of problems. [...]

Unfortunately I do. The 32 bit stuff is *would be really nice, but not
necessary*, but the ability to use extra memory *and* dynamically load
kernel modules is a bit more important to me.

> If you are just talking about unshadowed ports, you could try adding
> something like the following to /etc/make.conf:
>
> .ifdef(32BIT)
> PREFIX=/usr/local/32
> LOCALBASE=/usr/local/32
> LDCONFIG=/sbin/ldconfig -32
> CFLAGS+=-m32
> .endif
>
> and then wrapping your portupgrade, portmaster, or make commands with:
>
> env 32BIT=yes [insert rest of command here]
>
> If there is shadowing, you have to consider how to manage the
> environment PATH so that you can actually run the 32-bit binary
> executables without typing in fully-qualified pathnames every time,
> and maybe also using LD_RUN_PATH or LD_LIBRARY_PATH so that the right
> libraries are used --- you can see how problems crop up at every turn?

I was thinking of leaving the standard paths alone, and setting up one
or more [ba|c|]sh32 alias/scripts which would start up the appropriate
shell, with 32-bit directories at the front of the path. I know I'll
end up having both 32- and 64-bit of Python on my system (many of the
main apps I use require python - but I also want to be able to use
py-psyco), as well as a few copies of the various GUI toolkits in
32-bit.

Thanks for the info,
-Jim Stapleton

-Jim Stapleton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20909010644j7962dc4cub71e725d083072ef>