Subject: pkg/35144: Provide qt3-tools (and dependents) with support for pkgviews
To: None <,,>
From: Joachim Kuebart <>
List: pkgsrc-bugs
Date: 11/27/2006 23:35:00
>Number:         35144
>Category:       pkg
>Synopsis:       qt3-tools' needs to be enhanced for pkgviews
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 27 23:35:00 +0000 2006
>Originator:     Joachim Kuebart
>Release:        NetBSD 2.99.16
System: NetBSD jaja 2.99.16 NetBSD 2.99.16 (ALPHA-$Revision: 1.201 $) #0: Fri Mar 11 19:29:41 CET 2005 joki@jaja:/usr/obj/usr/src/sys/arch/alpha/compile/JAJA alpha
Architecture: alpha
Machine: alpha
When using pkgviews, qt3-libs and qt3-tools are installed in different
directories. Hence, a distinction needs to be made between tools installed by
either of these packages. The current qt3-libs/ uses the
variable QTDIR to refer to the installation directory. The patch below
introduces the additional variable QTTOOLSDIR to refer to the qt3-tools
installation directory, and sets the configuration and make environment
variables UIC, QMAKE and QMAKESPEC accordingly.

Install qt3-libs and qt3-tools with pkgviews enabled and try to build a
dependent port (e.g. arts). The configure stage is unable to find the uic
program because the path points to the installation directory of qt3-libs
whereas uic is actually installed by qt3-tools.

Apply the following patch to current pkgsrc:

Index: Makefile
RCS file: /pub/NetBSD-CVS/pkgsrc/x11/qt3-tools/Makefile,v
retrieving revision 1.50
diff -u -p -r1.50 Makefile
--- Makefile	23 Oct 2006 14:54:11 -0000	1.50
+++ Makefile	27 Nov 2006 23:24:37 -0000
@@ -1,5 +1,7 @@
 # $NetBSD: Makefile,v 1.50 2006/10/23 14:54:11 adam Exp $
+PKG_INSTALLATION_TYPES=	overwrite pkgviews
 .include "../../mk/"
 # XXX: hack - work round an ICE with GCC 3.3 on sparc
 .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
RCS file: /pub/NetBSD-CVS/pkgsrc/x11/qt3-tools/,v
retrieving revision 1.14
diff -u -p -r1.14
---	8 Jul 2006 23:11:16 -0000	1.14
+++	27 Nov 2006 23:24:37 -0000
@@ -18,18 +18,20 @@ BUILDLINK_PKGSRCDIR.qt3-tools?=	../../x1
 BUILDLINK_DEPMETHOD.qt3-tools?=	build
 .include "../../x11/qt3-libs/"
-CONFIGURE_ENV+=		UIC="${QTDIR}/bin/uic"
-MAKE_ENV+=		UIC="${QTDIR}/bin/uic"
-CONFIGURE_ENV+=		QMAKE="${QTDIR}/bin/qmake"
-MAKE_ENV+=		QMAKE="${QTDIR}/bin/qmake"
+MAKE_ENV+=		UIC="${QTTOOLSDIR}/bin/uic"
+MAKE_ENV+=		QMAKE="${QTTOOLSDIR}/bin/qmake"
 # the way the spec files are currently instealled via pkgsrc, they
 # are all identical anyway, so just pick one and point to it.
 # Without specifying QMAKESPEC, qmake can't figure it out on some
 # platforms (solaris for example)
-CONFIGURE_ENV+=		QMAKESPEC=${QTDIR}/mkspecs/netbsd-g++
-MAKE_ENV+=		QMAKESPEC=${QTDIR}/mkspecs/netbsd-g++
+CONFIGURE_ENV+=		QMAKESPEC="${QTTOOLSDIR}/mkspecs/netbsd-g++"
+MAKE_ENV+=		QMAKESPEC="${QTTOOLSDIR}/mkspecs/netbsd-g++"