Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 14:34:02 +0100
From:      Jan Henrik Sylvester <me@janh.de>
To:        Marius Strobl <marius@FreeBSD.org>
Cc:        ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   sysutils/cdrtools in i386 chroot on amd64
Message-ID:  <4D553ACA.5060503@janh.de>

next in thread | raw e-mail | index | archive | help
I am trying to build all ports that I have installed in an i386 chroot 
environment on an amd64 machine. All work except for sysutils/cdrtools.

I have installed an i386 system to some directory, mounted a devfs to 
the devfs subdirectory, set "MACHINE=i386 ; UNAME_p=i386 ; UNAME_m=i386" 
and exported them, chrooted to the directory, and called 
"/etc/rc.d/ldconfig start".

sysutils/cdrtools fails with many errors as it still builds for amd64.

Is this expected? Should I do more to get an i386 environment? (I have 
tried to set ARCH and MACHINE_ARCH with no change.)

sysutils/cdrtools/Makefile mentions: "Hack to allow building with TARGET 
and TARGET_ARCH set in the environment as done by the release building 
scripts." This seems to be the problem as all the variables I set cannot 
have an effect. How can I work around that hack except for changing the 
Makefile?

Could the port detect if it is called from the release building scripts 
and only apply the hack in that case?

Cheers,
Jan Henrik



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