From david@catwhisker.org  Sun Jul 22 15:17:16 2007
Return-Path: <david@catwhisker.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1ADDA16A417
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jul 2007 15:17:16 +0000 (UTC)
	(envelope-from david@catwhisker.org)
Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122])
	by mx1.freebsd.org (Postfix) with ESMTP id D2B9413C4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jul 2007 15:17:15 +0000 (UTC)
	(envelope-from david@catwhisker.org)
Received: from bunrab.catwhisker.org (localhost [127.0.0.1])
	by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id l6MEpR30029811
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jul 2007 07:51:27 -0700 (PDT)
	(envelope-from david@bunrab.catwhisker.org)
Received: (from david@localhost)
	by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id l6MEpRTQ029810;
	Sun, 22 Jul 2007 07:51:27 -0700 (PDT)
	(envelope-from david)
Message-Id: <200707221451.l6MEpRTQ029810@bunrab.catwhisker.org>
Date: Sun, 22 Jul 2007 07:51:27 -0700 (PDT)
From: David Wolfskill <david@catwhisker.org>
Reply-To: David Wolfskill <david@catwhisker.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: qt-3.3.8_4 install error: don't know how to make qconfig.h
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         114809
>Category:       ports
>Synopsis:       x11-toolkits/qt33 - qt-3.3.8_4 install error: don't know how to make qconfig.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 22 15:20:00 GMT 2007
>Closed-Date:    Wed Aug 01 13:03:33 GMT 2007
>Last-Modified:  Wed Aug 01 13:03:33 GMT 2007
>Originator:     David Wolfskill
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
Wolfskill & Dowling Residence
>Environment:
System: FreeBSD g1-18.catwhisker.org. 6.2-STABLE FreeBSD 6.2-STABLE #456: Sun Jul 22 06:14:30 PDT 2007     root@g1-18.catwhisker.org.:/common/S1/obj/usr/src/sys/CANARY

	(In the below, please note that /usr/local is a symlink to
	/common/local.)

>Description:
	Dduring an attempting portupgrade from qt-3.3.8_3 -> qt-3.3.8_4,
	the build of qt-3.3.8_4 copletes normally, but the attempt to
	install the newly-built ports fails.

	Prior to the attempt, I removed /var/db/ports/qt; when presented
	with the configuration menu, the only change I made from the
	defaults was to deselect CUPS support.

--->  Upgrading 'qt-3.3.8_3' to 'qt-3.3.8_4' (x11-toolkits/qt33)
--->  Building '/usr/ports/x11-toolkits/qt33'
===>  Cleaning for qt-3.3.8_4
...
--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'qt-3.3.8_3'
--->  Preserving /usr/local/lib/libqt-mt.so.3.3.8 as /usr/local/lib/compat/pkg/libqt-mt.so.3.3.8
--->  Preserving /usr/local/lib/libqui.so.1.0.0 as /usr/local/lib/compat/pkg/libqui.so.1.0.0
pkg_delete: package 'qt-3.3.8_3' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
arts-1.5.7,1
libdv-0.104_4
mplayer-0.99.10_11
pinentry-0.7.2_6
psi-0.10_1
qca-1.0_1
qca-tls-1.0_2
sdl-1.2.11_1,2
pkg_delete: unable to completely remove directory '/usr/local/share/qt'
pkg_delete: unable to completely remove directory '/usr/local/share/doc/qt/html'
pkg_delete: unable to completely remove directory '/usr/local/share/doc/qt'
pkg_delete: unable to completely remove directory '/usr/local/lib/plugins'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 607 packages found (-1 +0) (...) done]
--->  Installing the new version via the port
===>  Installing for qt-3.3.8_4
===>   qt-3.3.8_4 depends on file: /usr/local/libdata/xorg/libraries - found
===>   qt-3.3.8_4 depends on shared library: mng - found
===>   qt-3.3.8_4 depends on shared library: png - found
===>   qt-3.3.8_4 depends on shared library: jpeg - found
===>   qt-3.3.8_4 depends on shared library: Xft.2 - found
===>   qt-3.3.8_4 depends on shared library: audio - found
===>   qt-3.3.8_4 depends on shared library: GLU.1 - found
===>   Generating temporary packing list
/bin/mkdir -p /usr/local/lib /usr/local/bin
install  -o root -g wheel -m 444 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib/*.prl /usr/local/lib
install  -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/bin/findtr /usr/local/bin
install  -s -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/makeqpf/makeqpf /usr/local/bin
install  -s -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/mergetr/mergetr /usr/local/bin
install  -s -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/msg2qm/msg2qm /usr/local/bin
install  -s -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/qembed/qembed /usr/local/bin
install  -s -o root -g wheel -m 555 /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/qvfb/qvfb /usr/local/bin
cd src/moc && make
cd src/moc && make install
cp -f "../../bin/moc" "/common/local/bin/moc"
cd src && make
make: don't know how to make /common/local/include/qconfig.h. Stop
*** Error code 2

Stop in /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8.
*** Error code 1

Stop in /bkp/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8.
*** Error code 1

Stop in /bkp/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /bkp/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /bkp/ports/x11-toolkits/qt33.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.22269.19 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qt-3.3.8_3 UPGRADE_PORT_VER=3.3.8_3 make reinstall
--->  Restoring the old version
** Fix the installation problem and try again.

>How-To-Repeat:
	portupgrade qt-3.3.8_3
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jul 22 23:31:17 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, david@catwhisker.org
Cc:  
Subject: Re: ports/114809: x11-toolkits/qt33 - qt-3.3.8_4 install error: don't
 know how to make qconfig.h
Date: Mon, 23 Jul 2007 11:57:35 +0200

 Did the workaround I suggested in my reply to your previous mail
 (deinstalling the qt33 completely before rebuilding it) not help?

From: David Wolfskill <david@catwhisker.org>
To: Michael Nottebrock <lofi@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/114809: x11-toolkits/qt33 - qt-3.3.8_4 install error: don't know how to make qconfig.h
Date: Mon, 23 Jul 2007 05:59:42 -0700

 --8WKGInOJRMBXYFEc
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Jul 23, 2007 at 11:57:35AM +0200, Michael Nottebrock wrote:
 > Did the workaround I suggested in my reply to your previous mail
 > (deinstalling the qt33 completely before rebuilding it) not help?
 
 OK; that at least appears to have completed successfully:
 
 g1-18(6.2-S)[2] pkg_delete -f qt-3.3.8_3
 pkg_delete: package 'qt-3.3.8_3' is required by these other packages
 and may not be deinstalled (but I'll delete it anyway):
 arts-1.5.7,1
 libdv-0.104_4
 mplayer-0.99.10_11
 pinentry-0.7.2_6
 psi-0.10_1
 qca-1.0_1
 qca-tls-1.0_2
 sdl-1.2.11_1,2
 pkg_delete: unable to completely remove directory '/usr/local/share/qt'
 pkg_delete: unable to completely remove directory '/usr/local/share/doc/qt/=
 html'
 pkg_delete: unable to completely remove directory '/usr/local/share/doc/qt'
 pkg_delete: unable to completely remove directory '/usr/local/lib/plugins'
 pkg_delete: couldn't entirely delete package (perhaps the packing list is
 incorrectly specified?)
 g1-18(6.2-S)[3] cd /usr/ports/x11-toolkits/qt33
 g1-18(6.2-S)[4] make install clean
 =2E..
 =3D=3D=3D>   Running ldconfig
 /sbin/ldconfig -m /usr/local/lib
 =3D=3D=3D>   Registering installation for qt-3.3.8_4
 =3D=3D=3D> SECURITY REPORT:=20
       This port has installed the following files, which may act as network
       servers and may therefore pose a remote security risk to the system.
 /usr/local/lib/libqt-mt.so.3.3.8
 
       If there are vulnerabilities in these programs there may be a security
       risk to the system. FreeBSD makes no guarantee about the security of
       ports included in the Ports Collection. Please type 'make deinstall'
       to deinstall the port if this is a concern.
 
       For more information, and contact details about the security
       status of this software, see the following webpage:=20
 http://www.trolltech.com/products/qt/index.html
 =3D=3D=3D>  Cleaning for qt-3.3.8_4
 g1-18(6.2-S)[6] echo $?
 0
 g1-18(6.2-S)[7]=20
 
 
 Thanks!
 
 Peace,
 david
 --=20
 David H. Wolfskill				david@catwhisker.org
 Anything and everything is a (potential) cat toy.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
 
 --8WKGInOJRMBXYFEc
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iEYEARECAAYFAkakpj0ACgkQmprOCmdXAD17ewCdFz3nK0Bw8hGeXNA2DnplK49f
 fesAnjfCCuPi6717FIz6c2Cz9BcjGZdv
 =l8iN
 -----END PGP SIGNATURE-----
 
 --8WKGInOJRMBXYFEc--

From: Michael Nottebrock <lofi@freebsd.org>
To: David Wolfskill <david@catwhisker.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/114809: x11-toolkits/qt33 - qt-3.3.8_4 install error: don't
 know how to make qconfig.h
Date: Mon, 23 Jul 2007 15:57:23 +0200

 David Wolfskill schrieb:
 > On Mon, Jul 23, 2007 at 11:57:35AM +0200, Michael Nottebrock wrote:
 >   
 >> Did the workaround I suggested in my reply to your previous mail
 >> (deinstalling the qt33 completely before rebuilding it) not help?
 >>     
 >
 >   
 > OK; that at least appears to have completed successfully:
 >   
 Good - I believe the problem here is indeed your symlink. We in-place
 patch the Makefiles that contain the bogus dependencies qmake generates,
 but we use ${PREFIX} in the search string. Your ${PREFIX} is /usr/local,
 qmake however seems to use realpath(3), puts your symlink's target in
 the Makefiles instead and thus the search for the in-place edit comes up
 with no matches.
 
 Please try this patch:
 http://people.freebsd.org/~lofi/patch-qt33_Makefile.txt
 
 If you do not want to downgrade qt33 again to a previous revision just
 for the sake of testing, that is okay - just keep the patch or a
 bookmark around until the next time the qt33 port is updated and apply
 it then.

From: David Wolfskill <david@catwhisker.org>
To: Michael Nottebrock <lofi@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: ports/114809: x11-toolkits/qt33 - qt-3.3.8_4 install error: don't know how to make qconfig.h
Date: Mon, 23 Jul 2007 12:42:39 -0700

 --liOOAslEiF7prFVr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Jul 23, 2007 at 03:57:23PM +0200, Michael Nottebrock wrote:
 >...
 > >> Did the workaround I suggested in my reply to your previous mail
 > >> (deinstalling the qt33 completely before rebuilding it) not help?
 > >  =20
 > > OK; that at least appears to have completed successfully:
 > >  =20
 > Good - I believe the problem here is indeed your symlink. We in-place
 > patch the Makefiles that contain the bogus dependencies qmake generates,
 > but we use ${PREFIX} in the search string. Your ${PREFIX} is /usr/local,
 > qmake however seems to use realpath(3), puts your symlink's target in
 > the Makefiles instead and thus the search for the in-place edit comes up
 > with no matches.
 >=20
 > Please try this patch:
 > http://people.freebsd.org/~lofi/patch-qt33_Makefile.txt
 
 OK; I tried a forced portupgrade on qt-3.3.8_4 ("portupgrade -f
 qt-3.3.8_4") on top of the installed qt-3.3.8_4;that failed with the
 same symptoms as before (don't know how to make include/qconfig.h).
 
 I then applied the above-cited patch, then re-tried the forced
 portupgrrade; it succeeded without problem.  (It just took a while to
 build on my laptop....)
 
 I hope that's helpful.
 
 Peace,
 david
 --=20
 David H. Wolfskill				david@catwhisker.org
 Anything and everything is a (potential) cat toy.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
 
 --liOOAslEiF7prFVr
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (FreeBSD)
 
 iEYEARECAAYFAkalBK0ACgkQmprOCmdXAD06uACfcgf1JtdVZ4hM2zerzB6idtmc
 V3MAn058yvqNkAycN8jSh7IMZjUTTreq
 =MEwx
 -----END PGP SIGNATURE-----
 
 --liOOAslEiF7prFVr--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/114809: commit references a PR
Date: Wed,  1 Aug 2007 12:41:50 +0000 (UTC)

 lofi        2007-08-01 12:41:44 UTC
 
   FreeBSD ports repository
 
   Modified files:
     x11-toolkits/qt33    Makefile 
   Log:
   Don't fail if ${PREFIX} is a symlink.
   
   PR:             ports/114809
   Reported by:    dhw
   
   Revision  Changes    Path
   1.216     +4 -2      ports/x11-toolkits/qt33/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: lofi 
State-Changed-When: Wed Aug 1 13:03:05 UTC 2007 
State-Changed-Why:  
Commmitted the patch, should be fixed. 

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