From owner-freebsd-ports@FreeBSD.ORG Wed Sep 20 14:54:33 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED6BE16A4EA; Wed, 20 Sep 2006 14:54:33 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C857A43DCE; Wed, 20 Sep 2006 14:52:46 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 34DEEB844; Wed, 20 Sep 2006 17:52:45 +0300 (EEST) Received: (nullmailer pid 3674 invoked by uid 1002); Wed, 20 Sep 2006 14:52:45 -0000 Date: Wed, 20 Sep 2006 17:52:45 +0300 From: Vasil Dimov To: Michael Nottebrock Message-ID: <20060920145245.GB3213@qlovarnika.bg.datamax> References: <20060919102458.GB42796@qlovarnika.bg.datamax> <450FCD0B.7050801@brooknet.com.au> <20060919112405.GC42796@qlovarnika.bg.datamax> <45104313.1030506@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <45104313.1030506@freebsd.org> Cc: ports@freebsd.org, alexbl@FreeBSD.org, Dmitry Marakasov , kde@freebsd.org, Sam Lawrance Subject: Re: [kde-freebsd] Re: QT related issue (ports/102829) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 14:54:34 -0000 --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 19, 2006 at 09:20:51PM +0200, Michael Nottebrock wrote: > Vasil Dimov schrieb: > > On Tue, Sep 19, 2006 at 08:57:15PM +1000, Sam Lawrance wrote: > > =20 > >> Vasil Dimov wrote: > >> =20 > >>> Hi, > >>> > >>> Can someone familiar with the QT tools uic and moc take a look at > >>> ports/102829 - the port in question is using scons and the directory > >>> /usr/X11R6/etc/settings/ is being created during build but probably > >>> the problem is not in the port or the software itself but rather in > >>> qt or scons. It looks very mysterious to me. > >>> > >>> Any help is appreciated, thanks in advance! > >>> =20 > >>> =20 > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/92532 > >> > >> =20 > > > > Even if I do ``make PACKAGE_BUILDING=3Dy'' the directory > > /usr/X11R6/etc/settings gets created (during build). > > > > What is the idea of this code: > > > > .if defined(PACKAGE_BUILDING) > > TMPDIR?=3D /tmp > > MAKE_ENV+=3D TMPDIR=3D"${TMPDIR}" > > CONFIGURE_ENV+=3D TMPDIR=3D"${TMPDIR}" > > .endif > > > > in bsd.kde.mk? (the port has USE_QT_VER=3D3) > > =20 >=20 > You will need to make sure that the TMPDIR environment variable is set > during build (so uic will see it). Ah, I had forgotten that this port is using scons and MAKE_ENV and CONFIGURE_ENV are irrelevant in this case. > Scons by default does *not* preserve > and propagate the shell environment it's being called from, so you will > have to modify the main sconscript file to at least import TMPDIR from > the external environment ( see > http://www.scons.org/doc/HTML/scons-user/c1171.html ). The trick happened without modifying the SConstuct file by just adding TMPDIR=3D"${TMPDIR}" to SCONS_BUILDENV. Thanks for pointing me the right direction! Alex: maybe TMPDIR should be set somewhere in bsd.scons.mk by default, just like in (MAKE|CONFIGURE)_ENV in bsd.kde.mk? --=20 Vasil Dimov gro.DSBeerF@dv % Take it easy, we're in a hurry. --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFFEVW9Fw6SP/bBpCARAgwQAKCbKavB4TPzBf7xPC7gybyf4xKTwACgvHh5 BUXaH6EP4uwtHmRyU+L9rQY= =I8s1 -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE--