From owner-freebsd-ports@FreeBSD.ORG Thu Sep 21 07:54:23 2006 Return-Path: X-Original-To: freebsd-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 D3FF516A580; Thu, 21 Sep 2006 07:54:23 +0000 (UTC) (envelope-from alex@foxybanana.com) Received: from suede.reed.edu (suede.reed.edu [134.10.2.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80F1543D53; Thu, 21 Sep 2006 07:54:23 +0000 (GMT) (envelope-from alex@foxybanana.com) Received: from Laptop.mine.box (c038h213.dorm.reed.edu [134.10.38.213]) by suede.reed.edu (8.13.7/8.13.7) with ESMTP id k8L7sLhT021193 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Thu, 21 Sep 2006 00:54:21 -0700 Received: from localhost (localhost [127.0.0.1]) by Laptop.mine.box (8.13.6/8.13.6) with ESMTP id k8L7s4HF069992; Thu, 21 Sep 2006 00:54:04 -0700 (PDT) (envelope-from alex@Laptop.mine.box) Message-Id: <200609210754.k8L7s4HF069992@Laptop.mine.box> From: alexbl@FreeBSD.org To: vd@FreeBSD.org, freebsd-ports@FreeBSD.org In-reply-to: <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> <20060920145245.GB3213@qlovarnika.bg.datamax> Comments: In-reply-to Vasil Dimov message dated "Wed, 20 Sep 2006 17:52:45 +0300." Date: Thu, 21 Sep 2006 00:54:04 -0700 Sender: alex@foxybanana.com X-Scanned-By: MIMEDefang 2.57 on 134.10.2.45 Cc: Subject: Re: [kde-freebsd] Re: QT related issue (ports/102829) 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: Thu, 21 Sep 2006 07:54:23 -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? I would prefer that bsd.kde.mk set TMPDIR for SCONS_BUILDENV by default. I'm ok with either way though if someone has a convincing reason otherwise. Alex > > --=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--