NetBSD Problem Report #25753

Received: (qmail 9861 invoked by uid 605); 30 May 2004 13:15:10 -0000
Message-Id: <200405301315.i4UDF5L4006164@jaja.domestic.de>
Date: Sun, 30 May 2004 15:15:05 +0200 (CEST)
From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: kuebart@mathematik.uni-ulm.de
To: gnats-bugs@gnats.NetBSD.org
Subject: make qt3-libs pkgview ready.
X-Send-Pr-Version: 3.95

>Number:         25753
>Category:       pkg
>Synopsis:       make qt3-libs pkgview ready.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    adam
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 30 13:16:00 +0000 2004
>Closed-Date:    
>Last-Modified:  Sat Mar 08 09:44:07 +0000 2008
>Originator:     Joachim Kuebart
>Release:        NetBSD 2.0B from around April 2, 2004.
>Organization:
>Environment:


System: NetBSD jaja 2.0B NetBSD 2.0B (ALPHA-$Revision: 1.191 $) #10: Thu Apr 22 17:37:18 CEST 2004 joki@jaja:/home/joki/NetBSD/compile/JAJA alpha
Architecture: alpha
Machine: alpha
qt3-libs-3.3.2
>Description:
Make some changes to the package Makefile to make qt3-libs buildlink3 and
pkgview ready.

>How-To-Repeat:
Building qt3-libs in a pkgview setting (PKG_INSTALLATION_PREFS lists
pkgviews before overwrite).

>Fix:

The main thing to do here is to add several CFLAGS and LDFLAGS to
the configure invocation for include, library and runtime library paths
to dependencies provided by the buildlink3 framework.

Somewhat unconnected, distinfo is lacking patch-ad.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt3-libs/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- Makefile	16 Apr 2004 14:30:44 -0000	1.24
+++ Makefile	30 May 2004 13:11:42 -0000
@@ -3,12 +3,16 @@

 LIBQT=			${WRKSRC}/lib/libqt-mt.la

+# set this before Makefile.common which includes compiler.mk which includes
+# bsd.prefs.mk which sets PKG_INSTALLATION_TYPE to the wrong value.
+PKG_INSTALLATION_TYPES=	overwrite pkgviews
+
 .include "../qt3-libs/Makefile.common"

 PKGNAME=		qt3-libs-${QTVERSION}
 COMMENT=		C++ X GUI toolkit

-USE_BUILDLINK2=		yes
+USE_BUILDLINK3=		yes
 GCC_REQD+=		2.95.3

 ALL_TARGET=		sub-plugins
@@ -34,16 +38,16 @@
 	${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqjpeg.la ${QTPREFIX}/plugins/imageformats
 	${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/plugins/imageformats/libqmng.la ${QTPREFIX}/plugins/imageformats

-.include "../../devel/zlib/buildlink2.mk"
-.include "../../fonts/Xft2/buildlink2.mk"
-.include "../../graphics/jpeg/buildlink2.mk"
-.include "../../graphics/MesaLib/buildlink2.mk"
-.include "../../graphics/glu/buildlink2.mk"
-.include "../../graphics/mng/buildlink2.mk"
-.include "../../graphics/png/buildlink2.mk"
-.include "../../graphics/freetype2/buildlink2.mk"
-.include "../../x11/Xrandr/buildlink2.mk"
-.include "../../x11/xcursor/buildlink2.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/Xft2/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/mng/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/Xrandr/buildlink3.mk"
+.include "../../x11/xcursor/buildlink3.mk"

-.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt3-libs/Makefile.common,v
retrieving revision 1.30
diff -u -r1.30 Makefile.common
--- Makefile.common	30 Mar 2004 21:50:19 -0000	1.30
+++ Makefile.common	30 May 2004 13:11:42 -0000
@@ -26,8 +26,7 @@
 CONFIGURE_ARGS+=	-shared -sm -thread -no-stl \
 			-system-zlib -system-libpng \
 			-system-libmng -system-libjpeg \
-			-I${BUILDLINK_DIR}/include \
-			-L${BUILDLINK_DIR}/lib
+			${CFLAGS:M-I*} ${LDFLAGS:M-L*} ${LDFLAGS:M-Wl*:S/-Wl,//}
 CONFIGURE_ARGS+=	-qt-gif	# qt3 does not write compressed GIFs

 CONFIGURE_ARGS+=	< ${FILESDIR}/license-acceptance
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/x11/qt3-libs/distinfo,v
retrieving revision 1.21
diff -u -r1.21 distinfo
--- distinfo	10 May 2004 06:47:09 -0000	1.21
+++ distinfo	30 May 2004 13:11:42 -0000
@@ -5,6 +5,7 @@
 SHA1 (patch-aa) = 0247c3694db7bf29556e00809b5d7f26817f3055
 SHA1 (patch-ab) = 4dfee5c06bc322646465f43fe850126873d7bb75
 SHA1 (patch-ac) = 1914c348846ae2ab0358e554d29ba49a0be90d52
+SHA1 (patch-ad) = 3d638078a207d5062d9a758d53053e85b1c22426
 SHA1 (patch-ae) = 16f35100cccc0b3e325fc8a2fd049bab5aca8056
 SHA1 (patch-af) = dde2d3cd4fa9eab0105ee097182a172756002347
 SHA1 (patch-ag) = d8185f4c98df1ba8db45b74ff06a204693a29da6

Note: pkglint bitches a lot about this Makefile (even before this
change). Alas I don't know how to do it differently...
>Release-Note:
>Audit-Trail:

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Tue, 1 Jun 2004 14:44:26 -0700 (PDT)

 On Sun, 30 May 2004, Joachim Kuebart wrote:

 > The main thing to do here is to add several CFLAGS and LDFLAGS to
 > the configure invocation for include, library and runtime library paths
 > to dependencies provided by the buildlink3 framework.

 I have also been trying to get qt3-libs to work using buildlink3 under
 NetBSD (LOCALBASE as /usr/pkg). It works fine under Linux with LOCALBASE
 as /usr.) Under Linux I use it for various packages -- but I do have a
 problem where my qt3 libs are not seen, so I use LD_LIBRARY_PATH.

 I tried your CFLAGS and LDFLAGS changes (I already had previous buidlink3
 usage).

 My build is failing under NetBSD 1.6.2_STABLE using default gcc 2.95.3.

 g++ /usr/pkg/lib /usr/X11R6/lib -fno-exceptions -o ../../bin/moc
 ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o
 ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o
 ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o
 ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o
 ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o
 ./qdir_unix.o ./qfileinfo_unix.o
 -L/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/lib
 -L/usr/pkg/lib -L/usr/X11R6/lib
 /usr/pkg/lib: file not recognized: File format not recognized
 collect2: ld returned 1 exit status
 gmake[1]: *** [../../bin/moc] Error 1
 gmake[1]: Leaving directory
 `/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/src/moc'
 gmake: *** [src-moc] Error 2

 (I am trying again.)

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/


From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>,
  gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 00:41:30 +0200

 On Tue, Jun 01, 2004 at 02:44:26PM -0700, Jeremy C. Reed wrote:
 > On Sun, 30 May 2004, Joachim Kuebart wrote:
 > 
 > > The main thing to do here is to add several CFLAGS and LDFLAGS to
 > > the configure invocation for include, library and runtime library paths
 > > to dependencies provided by the buildlink3 framework.
 > 
 > I have also been trying to get qt3-libs to work using buildlink3 under
 > NetBSD (LOCALBASE as /usr/pkg). It works fine under Linux with LOCALBASE
 > as /usr.) Under Linux I use it for various packages -- but I do have a
 > problem where my qt3 libs are not seen, so I use LD_LIBRARY_PATH.
 > 
 > I tried your CFLAGS and LDFLAGS changes (I already had previous buidlink3
 > usage).
 > 
 > My build is failing under NetBSD 1.6.2_STABLE using default gcc 2.95.3.
 > 
 > g++ /usr/pkg/lib /usr/X11R6/lib -fno-exceptions -o ../../bin/moc
 > ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o
 > ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o
 > ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o
 > ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o
 > ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o
 > ./qdir_unix.o ./qfileinfo_unix.o
 > -L/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/lib
 > -L/usr/pkg/lib -L/usr/X11R6/lib
 > /usr/pkg/lib: file not recognized: File format not recognized
 > collect2: ld returned 1 exit status
 > gmake[1]: *** [../../bin/moc] Error 1
 > gmake[1]: Leaving directory
 > `/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/src/moc'
 > gmake: *** [src-moc] Error 2
 > 
 > (I am trying again.)

 Obviously, the first two arguments passed to g++ are bogus. I suspect they
 are in CFLAGS. Sometimes it helps to inspect the variables separately with

 	make show-var PKG_PHASE=configure VARNAME=CONFIGURE_ARGS
 	make show-var PKG_PHASE=build VARNAME=CFLAGS

 etc. and to look at the generated Makefiles to figure out what's going
 wrong. Your guess is as good as mine. ;)

 cu Jo

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Tue, 1 Jun 2004 15:58:13 -0700 (PDT)

 On Wed, 2 Jun 2004, Joachim Kuebart wrote:

 > Obviously, the first two arguments passed to g++ are bogus. I suspect they
 > are in CFLAGS. Sometimes it helps to inspect the variables separately with
 >
 > 	make show-var PKG_PHASE=configure VARNAME=CONFIGURE_ARGS
 > 	make show-var PKG_PHASE=build VARNAME=CFLAGS
 >
 > etc. and to look at the generated Makefiles to figure out what's going
 > wrong. Your guess is as good as mine. ;)

 I should have seen that.

 My work/qt-x11-free-3.3.2/src/moc/Makefile has:

 LFLAGS   = -L$(QTDIR)/lib /usr/pkg/lib /usr/X11R6/lib -fno-exceptions

 I am looking to see where this was defined. (I don't know moc nor qmake.)

 I see qt-x11-free-3.3.2/qmake/Makefile.unix defines:
  LFLAGS=@QMAKE_LFLAGS@

 qt-x11-free-3.3.2/qmake.conf has:
 QMAKE_LFLAGS            =  -L$(QTDIR)/lib

 But files/qmake.conf says:

 QMAKE_LFLAGS           = @LDFLAGS@ -L$(QTDIR)/lib

 I have:

 rainier:/usr/pkgsrc/x11/qt3-libs$ make show-var PKG_PHASE=build VARNAME=LDFLAGS
  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib

 I don't know if that is related, or why it is like that.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/



From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>,
  gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 01:43:40 +0200

 On Tue, Jun 01, 2004 at 03:58:13PM -0700, Jeremy C. Reed wrote:
 > On Wed, 2 Jun 2004, Joachim Kuebart wrote:
 >=20
 > > Obviously, the first two arguments passed to g++ are bogus. I suspect t=
 hey
 > > are in CFLAGS. Sometimes it helps to inspect the variables separately w=
 ith
 > >
 > > 	make show-var PKG_PHASE=3Dconfigure VARNAME=3DCONFIGURE_ARGS
 > > 	make show-var PKG_PHASE=3Dbuild VARNAME=3DCFLAGS
 > >
 > > etc. and to look at the generated Makefiles to figure out what's going
 > > wrong. Your guess is as good as mine. ;)
 >=20
 > I should have seen that.
 >=20
 > My work/qt-x11-free-3.3.2/src/moc/Makefile has:
 >=20
 > LFLAGS   =3D -L$(QTDIR)/lib /usr/pkg/lib /usr/X11R6/lib -fno-exceptions
 >=20
 > I am looking to see where this was defined. (I don't know moc nor qmake.)
 >=20
 > I see qt-x11-free-3.3.2/qmake/Makefile.unix defines:
 >  LFLAGS=3D@QMAKE_LFLAGS@
 >=20
 > qt-x11-free-3.3.2/qmake.conf has:
 > QMAKE_LFLAGS            =3D  -L$(QTDIR)/lib
 >=20
 > But files/qmake.conf says:
 >=20
 > QMAKE_LFLAGS           =3D @LDFLAGS@ -L$(QTDIR)/lib
 >=20
 > I have:
 >=20
 > rainier:/usr/pkgsrc/x11/qt3-libs$ make show-var PKG_PHASE=3Dbuild VARNAME=
 =3DLDFLAGS
 >  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
 >=20
 > I don't know if that is related, or why it is like that.

 I don't know qmake or moc or all the other tools used by qt as well. ;)

 For your reference, here are my values for these variables:

 src/moc/Makefile:

 LFLAGS   =3D -L$(QTDIR)/lib -Wl,-R/usr/pkg/packages/Xft2-2.1.2nb1/lib -Wl,-=
 R/usr/pkg/packages/fontconfig-2.2.2/lib -Wl,-R/usr/pkg/packages/expat-1.95.=
 7/lib -Wl,-R/usr/pkg/packages/glu-6.0.1/lib -Wl,-R/usr/pkg/packages/MesaLib=
 -6.0.1/lib -Wl,-R/usr/pkg/packages/mng-1.0.7/lib -Wl,-R/usr/pkg/packages/jp=
 eg-6bnb1/lib -Wl,-R/usr/pkg/packages/lcms-1.12nb1/lib -Wl,-R/usr/pkg/packag=
 es/png-1.2.5nb4/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/packages/freetype2-2.1.8/=
 lib -Wl,-R/usr/pkg/packages/Xrandr-1.0.2/lib -Wl,-R/usr/pkg/packages/xcurso=
 r-1.1.1nb1/lib -Wl,-R/usr/pkg/packages/Xrender-0.8.3nb1/lib -Wl,-R/usr/pkg/=
 packages/Xfixes-2.0.0/lib -Wl,-R/usr/pkg/packages/fixesext-2.0/lib -Wl,-R/u=
 sr/pkg/packages/qt3-libs-3.3.2/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib =
 -fno-exceptions  -Wl,-R/usr/pkg/lib

 $ make show-var PKG_PHASE=3Dbuild VARNAME=3DLDFLAGS
  -L/usr/pkg/packages/Xft2-2.1.2nb1/lib -Wl,-R/usr/pkg/packages/Xft2-2.1.2nb=
 1/lib -L/usr/pkg/packages/fontconfig-2.2.2/lib -Wl,-R/usr/pkg/packages/font=
 config-2.2.2/lib -L/usr/pkg/packages/expat-1.95.7/lib -Wl,-R/usr/pkg/packag=
 es/expat-1.95.7/lib -L/usr/pkg/packages/glu-6.0.1/lib -Wl,-R/usr/pkg/packag=
 es/glu-6.0.1/lib -L/usr/pkg/packages/MesaLib-6.0.1/lib -Wl,-R/usr/pkg/packa=
 ges/MesaLib-6.0.1/lib -L/usr/pkg/packages/mng-1.0.7/lib -Wl,-R/usr/pkg/pack=
 ages/mng-1.0.7/lib -L/usr/pkg/packages/jpeg-6bnb1/lib -Wl,-R/usr/pkg/packag=
 es/jpeg-6bnb1/lib -L/usr/pkg/packages/lcms-1.12nb1/lib -Wl,-R/usr/pkg/packa=
 ges/lcms-1.12nb1/lib -L/usr/pkg/packages/png-1.2.5nb4/lib -Wl,-R/usr/pkg/pa=
 ckages/png-1.2.5nb4/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/packages/freet=
 ype2-2.1.8/lib -Wl,-R/usr/pkg/packages/freetype2-2.1.8/lib -L/usr/pkg/packa=
 ges/Xrandr-1.0.2/lib -Wl,-R/usr/pkg/packages/Xrandr-1.0.2/lib -L/usr/pkg/pa=
 ckages/randrext-1.0/lib -L/usr/pkg/packages/xcursor-1.1.1nb1/lib -Wl,-R/usr=
 /pkg/packages/xcursor-1.1.1nb1/lib -L/usr/pkg/packages/Xrender-0.8.3nb1/lib=
  -Wl,-R/usr/pkg/packages/Xrender-0.8.3nb1/lib -L/usr/pkg/packages/render-0.=
 8/lib -L/usr/pkg/packages/Xfixes-2.0.0/lib -Wl,-R/usr/pkg/packages/Xfixes-2=
 .0.0/lib -L/usr/pkg/packages/fixesext-2.0/lib -Wl,-R/usr/pkg/packages/fixes=
 ext-2.0/lib -Wl,-R/usr/pkg/packages/qt3-libs-3.3.2/lib -Wl,-R/usr/pkg/lib -=
 L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib

 The difference is that on my systems, all packages are depoted.
 But you can see that there are -L flags in my LDFLAGS as well, but
 they get eliminated (I guess by qmake) before being put into LFLAGS
 and no stray directory names remain. No idea why that's not happening
 in your case. Did the build work before without my changes?

 Cheers,

 cu Jo

 --=20
 La perfection est atteinte non quand il ne reste rien =E0 ajouter, mais qua=
 nd
 il ne reste rien =E0 enlever.  (Antoine de Saint-Exup=E9ry)

From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>,
  gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 12:03:37 +0200

 On Tue, Jun 01, 2004 at 03:58:13PM -0700, Jeremy C. Reed wrote:
 > On Wed, 2 Jun 2004, Joachim Kuebart wrote:
 > 
 > > Obviously, the first two arguments passed to g++ are bogus. I suspect they
 > > are in CFLAGS. Sometimes it helps to inspect the variables separately with
 > >
 > > 	make show-var PKG_PHASE=configure VARNAME=CONFIGURE_ARGS
 > > 	make show-var PKG_PHASE=build VARNAME=CFLAGS
 > >
 > > etc. and to look at the generated Makefiles to figure out what's going
 > > wrong. Your guess is as good as mine. ;)
 > 
 > I should have seen that.
 > 
 > My work/qt-x11-free-3.3.2/src/moc/Makefile has:
 > 
 > LFLAGS   = -L$(QTDIR)/lib /usr/pkg/lib /usr/X11R6/lib -fno-exceptions

 Hi Jeremy,

 sorry for the confusion, when rerunning the build I just noticed
 I get a similar problem unless I set QMAKE_RPATH=-Wl,-R in qmake.conf.
 This is probably not the correct solution as none of the qmake.conf
 files in mkspecs/* use anything else but an empty RPATH and don't
 even mention -Wl, but it works for me. I got the idea when I looked
 at the use of QMAKE_RPATH in configure:987.

 Sorry for the incomplete PR, I just lost track of the things I had changed.

 Cheers,

 cu Jo

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>,
  gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 17:42:38 +0200

 On Tue, Jun 01, 2004 at 02:44:26PM -0700, Jeremy C. Reed wrote:
 > On Sun, 30 May 2004, Joachim Kuebart wrote:
 > 
 > > The main thing to do here is to add several CFLAGS and LDFLAGS to
 > > the configure invocation for include, library and runtime library paths
 > > to dependencies provided by the buildlink3 framework.
 > 
 > I have also been trying to get qt3-libs to work using buildlink3 under
 > NetBSD (LOCALBASE as /usr/pkg). It works fine under Linux with LOCALBASE
 > as /usr.) Under Linux I use it for various packages -- but I do have a
 > problem where my qt3 libs are not seen, so I use LD_LIBRARY_PATH.
 > 
 > I tried your CFLAGS and LDFLAGS changes (I already had previous buidlink3
 > usage).
 > 
 > My build is failing under NetBSD 1.6.2_STABLE using default gcc 2.95.3.
 > 
 > g++ /usr/pkg/lib /usr/X11R6/lib -fno-exceptions -o ../../bin/moc
 > ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o
 > ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o
 > ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o
 > ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o
 > ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o
 > ./qdir_unix.o ./qfileinfo_unix.o
 > -L/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/lib
 > -L/usr/pkg/lib -L/usr/X11R6/lib
 > /usr/pkg/lib: file not recognized: File format not recognized
 > collect2: ld returned 1 exit status
 > gmake[1]: *** [../../bin/moc] Error 1
 > gmake[1]: Leaving directory
 > `/usr/pkg/tmp/pkgsrc/x11/qt3-libs/work.rainier/qt-x11-free-3.3.2/src/moc'
 > gmake: *** [src-moc] Error 2
 > 
 > (I am trying again.)

 I tried again too and I think I have a complete and working patch now. In
 addition to the patches above I need this:

 Index: files/qmake.conf
 ===================================================================
 RCS file: /cvsroot/pkgsrc/x11/qt3-libs/files/qmake.conf,v
 retrieving revision 1.12
 diff -u -r1.12 qmake.conf
 --- files/qmake.conf	10 Dec 2003 14:24:35 -0000	1.12
 +++ files/qmake.conf	2 Jun 2004 15:18:46 -0000
 @@ -62,7 +62,7 @@
  QMAKE_LFLAGS_SHLIB	= 
  QMAKE_LFLAGS_PLUGIN	= $$QMAKE_LFLAGS_SHLIB
  QMAKE_LFLAGS_SONAME	=
 -QMAKE_RPATH		= 
 +QMAKE_RPATH		= -Wl,-rpath,

  QMAKE_RUN_CC		= @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $obj $src
  QMAKE_RUN_CC_IMP	= @LIBTOOL@ --mode=compile @CC@ -c $(CFLAGS) $(INCPATH) -o $@ $<

 This will lead to correct Makefiles being generated by qmake.

 However, the build will still fail compiling src/kernel/qtaddons_x11.cpp
 because it doesn't find ft2build.h. For this to work I changed the
 buildlink3.mk file in graphics/freetype2 as follows:

 Index: buildlink3.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/graphics/freetype2/buildlink3.mk,v
 retrieving revision 1.22
 diff -u -r1.22 buildlink3.mk
 --- buildlink3.mk	18 May 2004 10:21:16 -0000	1.22
 +++ buildlink3.mk	2 Jun 2004 15:21:35 -0000
 @@ -13,7 +13,7 @@
  .if !empty(FREETYPE2_BUILDLINK3_MK:M+)
  BUILDLINK_DEPENDS.freetype2+=	freetype2>=2.1.8
  BUILDLINK_PKGSRCDIR.freetype2?=	../../graphics/freetype2
 -BUILDLINK_INCDIRS.freetype2?=	include/freetype2
 +BUILDLINK_INCDIRS.freetype2?=	include/freetype2 include

  FREETYPE_CONFIG?=	${BUILDLINK_PREFIX.freetype2}/bin/freetype-config
  CONFIGURE_ENV+=		FREETYPE_CONFIG="${FREETYPE_CONFIG}"

 Hope this helps,

 cu Jo

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 10:22:22 -0700 (PDT)

 On Wed, 2 Jun 2004, Joachim Kuebart wrote:

 > in your case. Did the build work before without my changes?

 The build completed and installed fine. And it worked to build other
 qt3-libs using packages (like wip/qhacc). But
 /usr/pkg/qt3/lib/libqt-mt.so.3 didn't correctly include my /usr/X11R6/lib
 in the RPATH.

 But I am now trying your newest patch. Later, I will tell you how it
 works. (I need faster machines!)

 Thanks,

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/


From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 14:29:05 -0700 (PDT)

 > Index: files/qmake.conf
 > ===================================================================
 > RCS file: /cvsroot/pkgsrc/x11/qt3-libs/files/qmake.conf,v
 > retrieving revision 1.12
 > diff -u -r1.12 qmake.conf
 > --- files/qmake.conf	10 Dec 2003 14:24:35 -0000	1.12
 > +++ files/qmake.conf	2 Jun 2004 15:18:46 -0000
 > @@ -62,7 +62,7 @@
 >  QMAKE_LFLAGS_SHLIB	=
 >  QMAKE_LFLAGS_PLUGIN	= $$QMAKE_LFLAGS_SHLIB
 >  QMAKE_LFLAGS_SONAME	=
 > -QMAKE_RPATH		=
 > +QMAKE_RPATH		= -Wl,-rpath,

 Wunderbar!

 The new build worked fine. And I was able to build wip/qhacc using it and
 the RPATHs were correct.

 (This is NetBSD 1.6.2_STABLE using default gcc 2.95.3.)

 I am going to build some more qt3-based apps now.

 > diff -u -r1.22 buildlink3.mk
 > --- buildlink3.mk	18 May 2004 10:21:16 -0000	1.22
 > +++ buildlink3.mk	2 Jun 2004 15:21:35 -0000
 > @@ -13,7 +13,7 @@
 >  .if !empty(FREETYPE2_BUILDLINK3_MK:M+)
 >  BUILDLINK_DEPENDS.freetype2+=	freetype2>=2.1.8
 >  BUILDLINK_PKGSRCDIR.freetype2?=	../../graphics/freetype2
 > -BUILDLINK_INCDIRS.freetype2?=	include/freetype2
 > +BUILDLINK_INCDIRS.freetype2?=	include/freetype2 include

 I never did that. I did not need that. (I am not using pkgviews on this
 system.)

 Can you post to tech-pkg to get some others to test this? And then we can
 get it commit if okay.

 Thank you,

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/


From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>,
  gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25753: make qt3-libs pkgview ready.
Date: Wed, 2 Jun 2004 23:57:51 +0200

 On Wed, Jun 02, 2004 at 02:29:05PM -0700, Jeremy C. Reed wrote:
 > > diff -u -r1.22 buildlink3.mk
 > > --- buildlink3.mk	18 May 2004 10:21:16 -0000	1.22
 > > +++ buildlink3.mk	2 Jun 2004 15:21:35 -0000
 > > @@ -13,7 +13,7 @@
 > >  .if !empty(FREETYPE2_BUILDLINK3_MK:M+)
 > >  BUILDLINK_DEPENDS.freetype2+=	freetype2>=2.1.8
 > >  BUILDLINK_PKGSRCDIR.freetype2?=	../../graphics/freetype2
 > > -BUILDLINK_INCDIRS.freetype2?=	include/freetype2
 > > +BUILDLINK_INCDIRS.freetype2?=	include/freetype2 include
 > 
 > I never did that. I did not need that. (I am not using pkgviews on this
 > system.)

 I suppose that's because without pkgviews, buildlink3 actually
 links the freetype headers into the .buildlink/include directory
 where they are found by the build process (-I/usr/pkg/include gets
 translated to .buildlink/include by the buildlink wrappers).

 With pkgviews, however, -I/usr/pkg/include still gets redirected to
 .buildlink/include, but the links to header files are no longer there. As a
 consequence, in this setting more include paths may have to be passed to
 the build process because a "wildcard" /usr/pkg/include no longer works as
 expected.

 > Can you post to tech-pkg to get some others to test this? And then we can
 > get it commit if okay.

 I'll do my best ;)

 cu Jo

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: "Jeremy C. Reed" <reed@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/25753 CVS commit: pkgsrc/x11/qt3-libs
Date: Tue,  6 Jul 2004 16:01:10 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	reed
 Date:		Tue Jul  6 16:01:10 UTC 2004

 Modified Files:
 	pkgsrc/x11/qt3-libs: Makefile Makefile.common
 	pkgsrc/x11/qt3-libs/files: qmake.conf

 Log Message:
 Convert qt3-libs to use BUILDLINK3. Based on patches from Joachim
 Kuebart in PR#25753. Tested by myself on Linux and NetBSD 1.6.2_STABLE.
 (Also tested on NetBSD 2.0_BETA by wiz@. And tested by jschauma
 under Linux.)


 To generate a diff of this commit:
 cvs rdiff -r1.24 -r1.25 pkgsrc/x11/qt3-libs/Makefile
 cvs rdiff -r1.30 -r1.31 pkgsrc/x11/qt3-libs/Makefile.common
 cvs rdiff -r1.12 -r1.13 pkgsrc/x11/qt3-libs/files/qmake.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: pkg-manager->adam
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Mon, 18 Apr 2005 13:38:27 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->feedback
State-Changed-By: joerg@netbsd.org
State-Changed-When: Thu, 05 Oct 2006 15:11:31 +0000
State-Changed-Why:
Does this still apply after the conversion to buildlink3?


From: joachim.kuebart@gmx.net (Joachim Kuebart)
To: gnats-bugs@NetBSD.org
Cc: adam@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
	joerg@netbsd.org
Subject: Re: pkg/25753 (make qt3-libs pkgview ready.)
Date: Thu, 16 Nov 2006 23:19:41 +0000

 Hi,

 after setting up my NetBSD machine again at my new place to try help
 closing #25753 and #25754, I am stuck with the problem described in

 	<http://mail-index.netbsd.org/tech-pkg/2006/10/06/0005.html>

 to which I can't find an answer. Since the rm -rf mentioned in the message
 removes the whole (pkgviews-)installed package, I cannot install any
 packages anymore. What is the correct solution?

 Sorry, I haven't been able to follow the latest pkgsrc developments and
 might need a little filling-in on latest additions such as flavours etc...

 Cheers,

 cu Jo

 On Thu, Oct 05, 2006 at 03:11:33PM +0000, joerg@netbsd.org wrote:
 > Synopsis: make qt3-libs pkgview ready.
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: joerg@netbsd.org
 > State-Changed-When: Thu, 05 Oct 2006 15:11:31 +0000
 > State-Changed-Why:
 > Does this still apply after the conversion to buildlink3?
 > 
 > 
 > 
 > 

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: joachim.kuebart@gmx.net (Joachim Kuebart)
To: gnats-bugs@NetBSD.org
Cc: adam@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
	joerg@netbsd.org
Subject: Re: pkg/25753 (make qt3-libs pkgview ready.)
Date: Sun, 26 Nov 2006 23:18:02 +0000

 Hi,

 I now need the following patch to qt3-libs/Makefile rev. 1.57 to make the
 port work with pkgviews. (I'm still using pkgviews because I'm not sure
 what it's been replaced by and I need to be able to run several versions of
 packages alongside each other).

 cu Jo


 RCS file: /pub/NetBSD-CVS/pkgsrc/x11/qt3-libs/Makefile,v
 retrieving revision 1.57
 diff -u -p -r1.57 Makefile
 --- Makefile    23 Oct 2006 14:54:11 -0000      1.57
 +++ Makefile    26 Nov 2006 23:09:53 -0000
 @@ -6,6 +6,10 @@ COMMENT=       C++ X GUI toolkit

  LIBQT=				${WRKSRC}/lib/libqt-mt.la

 +# set this before bsd.prefs.mk which sets PKG_INSTALLATION_TYPE to
 +# the wrong value.
 +PKG_INSTALLATION_TYPES=	overwrite pkgviews
 +
  .include "../../mk/bsd.prefs.mk"
  # XXX: hack - work round an ICE with GCC 3.3 on sparc
  .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
 @@ -44,6 +48,7 @@ do-install:
  	${INSTALL_LIB_DIR} ${QTPREFIX}/plugins/imageformats
  	${LIBTOOL} ${INSTALL_LIB} ${WRKSRC}/plugins/imageformats/libqjpeg.la ${QTPREFIX}/plugins/imageformats/
  	${LIBTOOL} ${INSTALL_LIB} ${WRKSRC}/plugins/imageformats/libqmng.la ${QTPREFIX}/plugins/imageformats/
 +	${INSTALL_LIB_DIR} ${PREFIX}/lib/pkgconfig/
  	${INSTALL_DATA} ${WRKSRC}/lib/qt-mt.pc ${PREFIX}/lib/pkgconfig/

  .if ${OPSYS} == "Darwin" && empty(MACHINE_PLATFORM:MDarwin-[567].*)

From: Adam <adam@albedo.art.pl>
To: Joachim Kuebart <joachim.kuebart@gmx.net>
Cc: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org, joerg@netbsd.org
Subject: Re: pkg/25753 (make qt3-libs pkgview ready.)
Date: Fri, 1 Dec 2006 00:21:01 +0100

 > Hi,
 >
 > I now need the following patch to qt3-libs/Makefile rev. 1.57 to  
 > make the
 > port work with pkgviews. (I'm still using pkgviews because I'm not  
 > sure
 > what it's been replaced by and I need to be able to run several  
 > versions of
 > packages alongside each other).

 Greetings,

 I think only the first part of your patch makes sense  
 (PKG_INSTALLATION_TYPES=	overwrite pkgviews). The second tries to  
 create a directory, which should already exist, since qt3-libs  
 depeneds on devel/pkg-config, which creates ${PREFIX}/lib/pkgconfig,  
 doesn't it?

 Kind regards,
 Adam

From: joachim.kuebart@gmx.net (Joachim Kuebart)
To: Adam <adam@albedo.art.pl>
Cc: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org,
	gnats-admin@netbsd.org, joerg@netbsd.org
Subject: Re: pkg/25753 (make qt3-libs pkgview ready.)
Date: Fri, 1 Dec 2006 00:14:32 +0000

 Hi Adam,

 On Fri, Dec 01, 2006 at 12:21:01AM +0100, Adam wrote:
 > I think only the first part of your patch makes sense  
 > (PKG_INSTALLATION_TYPES=	overwrite pkgviews). The second tries to  
 > create a directory, which should already exist, since qt3-libs  
 > depeneds on devel/pkg-config, which creates ${PREFIX}/lib/pkgconfig,  
 > doesn't it?

 This is true for overwrite installations, but not with pkgviews. Even though
 the pkg-config package has a lib/pkgconfig directory and this directory may
 be present in the standard view, the directory does not exist under the
 PREFIX qt3-libs gets installed to (/usr/pkg/packages/qt3-libs-<version>/).
 Therefore, it needs to be created using e.g. PKG_INSTALLATION_DIRS or
 INSTALL_*_DIR, I chose the latter because of the similar line above.

 I don't know if pkgviews is still supposed to be supported since I read
 that it was about to be replaced, but since I don't know yet what will
 replace pkgviews I am still using it.

 Regards,

 cu Jo

 -- 
 La perfection est atteinte non quand il ne reste rien à ajouter, mais quand
 il ne reste rien à enlever.  (Antoine de Saint-Exupéry)

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/25753 (make qt3-libs pkgview ready.)
Date: Fri, 01 Dec 2006 11:57:01 +0100

 On Fri, Dec 01, 2006 at 12:45:02AM +0000, Joachim Kuebart wrote:
 >  This is true for overwrite installations, but not with pkgviews. Even though
 >  the pkg-config package has a lib/pkgconfig directory and this directory may
 >  be present in the standard view, the directory does not exist under the
 >  PREFIX qt3-libs gets installed to (/usr/pkg/packages/qt3-libs-<version>/).
 >  Therefore, it needs to be created using e.g. PKG_INSTALLATION_DIRS or
 >  INSTALL_*_DIR, I chose the latter because of the similar line above.

 I think this will apply for DESTDIR as well, so it is nice to have.

 Joerg

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 08 Mar 2008 09:44:07 +0000
State-Changed-Why:
feedback received, one issue apparently remains.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.