Date: Wed, 20 Sep 2006 17:52:45 +0300 From: Vasil Dimov <vd@FreeBSD.org> To: Michael Nottebrock <lofi@freebsd.org> Cc: ports@freebsd.org, alexbl@FreeBSD.org, Dmitry Marakasov <amdmi3@mail.ru>, kde@freebsd.org, Sam Lawrance <boris@brooknet.com.au> Subject: Re: [kde-freebsd] Re: QT related issue (ports/102829) Message-ID: <20060920145245.GB3213@qlovarnika.bg.datamax> In-Reply-To: <45104313.1030506@freebsd.org> References: <20060919102458.GB42796@qlovarnika.bg.datamax> <450FCD0B.7050801@brooknet.com.au> <20060919112405.GC42796@qlovarnika.bg.datamax> <45104313.1030506@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060920145245.GB3213>