From nobody@FreeBSD.org  Mon Aug 25 09:32:39 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0263C1065678
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Aug 2008 09:32:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id F261B8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Aug 2008 09:32:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7P9WckI006089
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Aug 2008 09:32:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m7P9Wcp3006088;
	Mon, 25 Aug 2008 09:32:38 GMT
	(envelope-from nobody)
Message-Id: <200808250932.m7P9Wcp3006088@www.freebsd.org>
Date: Mon, 25 Aug 2008 09:32:38 GMT
From: Volker Werth <volker@vwsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] devel/qt4-moc refuses to configure/compile
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126820
>Category:       ports
>Synopsis:       [patch] devel/qt4-moc refuses to configure/compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 25 09:40:07 UTC 2008
>Closed-Date:    Mon Aug 25 13:34:24 UTC 2008
>Last-Modified:  Mon Aug 25 14:10:06 UTC 2008
>Originator:     Volker Werth
>Release:        7-STABLE
>Organization:
>Environment:
>Description:
qt4-moc does not configure/compile out of the box:

===>  Configuring for qt4-moc-4.4.1
/bin/cp /usr/ports/devel/qt4-moc/../../devel/qt4/files/configure /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../
/usr/bin/sed -i.bak -e 's|target.path.*|target.path=/usr/local/bin|g'  -e 's|^TARGET.*|TARGET=moc-qt4|g'  /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/moc.pro
/bin/mkdir -p /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../mkspecs
/bin/ln -sf /usr/local/bin/qmake-qt4 /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/src/tools/moc/../../../bin/qmake

This is the Qt/X11 Open Source Edition.


   The specified system/compiler is not supported:

      /usr/ports/devel/qt4-moc/work/qt-x11-opensource-src-4.4.1/mkspecs/freebsd-g++

   Please see the README file for a complete list.

===>  Script "configure" failed unexpectedly.

work/*/mkspec is empty at that point but must have been populated with the file LOCALBASE/share/qt4/mkspecs/freebsd-g++
>How-To-Repeat:
cd /usr/ports/devel/qt4-moc; make
>Fix:
attached patch (Makefile change only) symlinks the directory share/qt4/mkspecs/freebsd-g++ at pre-configure time

Patch attached with submission follows:

--- devel/qt4-moc/Makefile.orig	2008-08-25 11:21:23.000000000 +0200
+++ devel/qt4-moc/Makefile	2008-08-25 11:22:35.000000000 +0200
@@ -49,6 +49,7 @@
 			-e 's|^TARGET.*|TARGET=moc-qt4|g' \
 		${WRKSRC}/${PORTNAME}.pro
 	${MKDIR} ${WRKSRC}/../../../mkspecs
+	${LN} -sf ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++ ${WRKSRC}/../../../mkspecs/
 	${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../../bin/qmake
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Aug 25 09:40:21 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Max Brazhnikov <makc@issp.ac.ru>
To: bug-followup@freebsd.org, volker@vwsoft.com
Cc:  
Subject: Re: ports/126820: [patch] devel/qt4-moc refuses to configure/compile
Date: Mon, 25 Aug 2008 14:50:28 +0400

 It builds fine on tinderbox. Something is wrong on your side.
 See kde-freebsd mail list for details:
 http://mail.kde.org/pipermail/kde-freebsd/2008-August/003360.html
 
 Max
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Mon Aug 25 13:34:02 UTC 2008 
State-Changed-Why:  
We solved all via privat mail, was a local problem.


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

From: VWerth <vwerth@vwsoft.com>
To: makc@issp.ac.ru
Cc: bug-followup@freebsd.org, volker@vwsoft.com
Subject: Re: ports/126820: [patch] devel/qt4-moc refuses to
         configure/compile
Date: Mon, 25 Aug 2008 15:41:01 +0200

 Max Brazhnikov writes:
 
 > It builds fine on tinderbox. Something is wrong on your side.
 > See kde-freebsd mail list for details:
 > http://mail.kde.org/pipermail/kde-freebsd/2008-August/003360.html
 > 
 > Max
 > 
 
 Max,
 
 thanks and please take my apologies. In the end this problem turned out to 
 be caused by an environment variable.
 
 A colleague changed the global profile and cshrc files on the build 
 machine to set QMAKESPEC to freebsd-g++ (wrong). This caused all QT4 ports 
 to fail. Unfortunately I wasn't aware of the global profile change.
 
 New lesson learned: Do not let others change anything in your build 
 environment. It may take your hours...
 
 I've already closed the PR as it's obsolete.
 
 Thanks,
 
 Volker
 
>Unformatted:
