From owner-freebsd-ports@FreeBSD.ORG Fri Feb 11 13:34:06 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 639C01065693 for ; Fri, 11 Feb 2011 13:34:06 +0000 (UTC) (envelope-from me@janh.de) Received: from mailhost.uni-hamburg.de (mailhost.uni-hamburg.de [134.100.32.155]) by mx1.freebsd.org (Postfix) with ESMTP id 1DC1C8FC1B for ; Fri, 11 Feb 2011 13:34:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailhost.uni-hamburg.de (Postfix) with ESMTP id 543A39007B; Fri, 11 Feb 2011 14:34:04 +0100 (CET) X-Virus-Scanned: by University of Hamburg (RRZ/mailhost) Received: from mailhost.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Brae9dHyTqUx; Fri, 11 Feb 2011 14:34:04 +0100 (CET) Received: from nb981.math (f054009236.adsl.alicedsl.de [78.54.9.236]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: fmjv004) by mailhost.uni-hamburg.de (Postfix) with ESMTPSA id 128ED90055; Fri, 11 Feb 2011 14:34:04 +0100 (CET) Message-ID: <4D553ACA.5060503@janh.de> Date: Fri, 11 Feb 2011 14:34:02 +0100 From: Jan Henrik Sylvester User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101219 Thunderbird/3.1.7 MIME-Version: 1.0 To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports-list freebsd Subject: sysutils/cdrtools in i386 chroot on amd64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2011 13:34:06 -0000 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