Re: compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Pieter de Goeje
On Monday 18 February 2008, Mark Moellering wrote:
> Is there a way to compile the 32 bit version (i386) of a port on an amd64
> installation?  I am running FreeBSD 7.0 RC2 amd64
>
> Thanks
>
> Mark Moellering

The only way I know of is to create a 32bit jail/chroot and compile the port 
from withing the jail. To create such a jail or chroot follow the 
instructions from the jail(8) manpage, but add TARGET_ARCH=i386 to make's 
command line.

-- 
Pieter de Goeje

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Wojciech Puchar

Is there a way to compile the 32 bit version (i386) of a port on an amd64
installation?  I am running FreeBSD 7.0 RC2 amd64


very stupid (i don't know better) way but will work.

unpack all freebsd disto to say /i386, use install.sh from installation CD
this way

DESTDIR=/i386 ./install.sh

in every dir (exclude sys and sources).

unpack port directories in /i386/usr/ports

(if you use portsnap, portsnap -d /i386/usr/ports extract)

make empty /i386/etc/fstab
cp /etc/resolv.conf /i386/etc/resolv.conf


mount_devfs devfs /i386/dev

cd /i386
chroot . bin/your_favourite_shell
cd /usr/ports

compile as usual.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


compiling 32 bit port on amd64 - Rephrase

2008-02-18 Thread Mark Moellering
Is there a way to compile the 32 bit version (i386) of a port on an amd64 
installation?  I am running FreeBSD 7.0 RC2 amd64

Thanks

Mark Moellering
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"