From lawrance@FreeBSD.org  Mon Jan 30 11:08:39 2006
Return-Path: <lawrance@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C0DEA16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Jan 2006 11:08:39 +0000 (GMT)
	(envelope-from lawrance@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1C3D643D5A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Jan 2006 11:08:35 +0000 (GMT)
	(envelope-from lawrance@FreeBSD.org)
Received: from freefall.freebsd.org (lawrance@localhost [127.0.0.1])
	by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0UB8Y1c025151
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Jan 2006 11:08:34 GMT
	(envelope-from lawrance@freefall.freebsd.org)
Received: (from lawrance@localhost)
	by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0UB8Y5q025150;
	Mon, 30 Jan 2006 11:08:34 GMT
	(envelope-from lawrance)
Message-Id: <200601301108.k0UB8Y5q025150@freefall.freebsd.org>
Date: Mon, 30 Jan 2006 11:08:34 GMT
From: Sam Lawrance <lawrance@FreeBSD.org>
Reply-To: Sam Lawrance <lawrance@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: x11-toolkits/qt33 - uic writes outside of ${WRKDIR}, causing package build failures
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         92532
>Category:       ports
>Synopsis:       x11-toolkits/qt33 - uic writes outside of ${WRKDIR}, causing package build failures
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 30 11:10:02 GMT 2006
>Closed-Date:    Tue Jan 31 10:27:46 GMT 2006
>Last-Modified:  Tue Jan 31 10:27:46 GMT 2006
>Originator:     Sam Lawrance
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 03:18:20 UTC 2005 kensmith@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386


>Description:
	QT's "uic" tool appears to be writing a file into /usr/X11R6/etc/settings during
compilation of a number of ports.

For example, when graphics/ipe reaches ${WRKSRC}/src/ipelets/templates and executes
	/usr/X11R6/bin/uic dlguse.ui -i dlguse.h -o dlguse.cpp
the file /usr/X11R6/etc/settings/qt_plugins_3.3rc is created.

This is causing a fair number of ports to fail when package building.  Some examples:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.5.2005042501/ipe-6.0.p23.log
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.5.2005042501/divxcalc-0.6.log
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.5.2005042501/qscanplot-0.4_2.log

Others can be found at http://portsmon.freebsd.org/portsconcordance.py?category=all&sortby=maintainer - the reason is listed as "makefile".

>How-To-Repeat:
	(1) See package building logs above.

	(2) Check/clear /usr/X11R6/etc/settings, install graphics/ipe, check again.

>Fix:
	I haven't got one. Sorry :-)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: lawrance 
Responsible-Changed-When: Mon Jan 30 11:14:07 UTC 2006 
Responsible-Changed-Why:  
Over to maintainers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=92532 

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, lawrance@freebsd.org
Cc:  
Subject: Re: ports/92532: x11-toolkits/qt33 - uic writes outside of ${WRKDIR},
 causing package build failures
Date: Mon, 30 Jan 2006 15:32:01 +0100

 I'm not sure this can be fixed without seriously tampering with uic (to
 a degree that would make our package/port unsupported by the vendor).
 Please take this into consideration if you (or kris) plan on making this
 check (and passing it) mandatory.
 

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, lawrance@freebsd.org
Cc:  
Subject: Re: ports/92532: x11-toolkits/qt33 - uic writes outside of ${WRKDIR},
 causing package build failures
Date: Mon, 30 Jan 2006 17:20:51 +0100

 .. but it seems I might be able to make a smaller hack that wouldn't be
 so dramatic. Is /tmp (or $TMPDIR) an acceptable place to write stuff to
 during packagebuilds?
 

From: Sam Lawrance <lawrance@freebsd.org>
To: Michael Nottebrock <lofi@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/92532: x11-toolkits/qt33 - uic writes outside of ${WRKDIR}, causing package build failures
Date: Tue, 31 Jan 2006 06:31:05 +1100

 On 31/01/2006, at 3:20 AM, Michael Nottebrock wrote:
 
 > ... but it seems I might be able to make a smaller hack that  
 > wouldn't be
 > so dramatic. Is /tmp (or $TMPDIR) an acceptable place to write  
 > stuff to
 > during packagebuilds?
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ 
 porting-wrkdir.html
 
 If you could, for example, set TMPDIR=${WRKDIR}/tmp for the submake,  
 that would probably be fine.  The change should probably be included  
 somewhere in ports/Mk (bsd.kde.mk?).
 

From: Michael Nottebrock <lofi@freebsd.org>
To: Sam Lawrance <lawrance@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/92532: x11-toolkits/qt33 - uic writes outside of ${WRKDIR},
 causing package build failures
Date: Tue, 31 Jan 2006 06:55:51 +0100

 I think that should be set globally in buildenv on pointyhat. Even the c
 compiler will write to $TMPDIR if piping to the assembler fails for some
 reason.

From: Sam Lawrance <lawrance@freebsd.org>
To: Michael Nottebrock <lofi@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/92532: x11-toolkits/qt33 - uic writes outside of ${WRKDIR}, causing package build failures
Date: Tue, 31 Jan 2006 17:02:37 +1100

 On 31/01/2006, at 4:55 PM, Michael Nottebrock wrote:
 
 > I think that should be set globally in buildenv on pointyhat. Even  
 > the c
 > compiler will write to $TMPDIR if piping to the assembler fails for  
 > some
 > reason.
 
 Yup, as Kris suggested it's OK to assume $TMPDIR will work.
 
State-Changed-From-To: open->closed 
State-Changed-By: lofi 
State-Changed-When: Tue Jan 31 10:27:28 UTC 2006 
State-Changed-Why:  
Fixed, thanks for reporting! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=92532 
>Unformatted:
