From david@catwhisker.org  Fri Apr 22 15:38:42 2011
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 CEEE6106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Apr 2011 15:38:42 +0000 (UTC)
	(envelope-from david@catwhisker.org)
Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73])
	by mx1.freebsd.org (Postfix) with ESMTP id AD8A68FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Apr 2011 15:38:42 +0000 (UTC)
Received: from albert.catwhisker.org (localhost [127.0.0.1])
	by albert.catwhisker.org (8.14.4/8.14.4) with ESMTP id p3MFcgic042455
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Apr 2011 08:38:42 -0700 (PDT)
	(envelope-from david@albert.catwhisker.org)
Received: (from david@localhost)
	by albert.catwhisker.org (8.14.4/8.14.4/Submit) id p3MFcgnv042454;
	Fri, 22 Apr 2011 08:38:42 -0700 (PDT)
	(envelope-from david)
Message-Id: <201104221538.p3MFcgnv042454@albert.catwhisker.org>
Date: Fri, 22 Apr 2011 08:38:42 -0700 (PDT)
From: David Wolfskill <david@catwhisker.org>
Reply-To: David Wolfskill <david@catwhisker.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         156577
>Category:       ports
>Synopsis:       Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 22 15:40:09 UTC 2011
>Closed-Date:    Wed May 11 19:56:19 CEST 2011
>Last-Modified:  Wed May 11 19:56:19 CEST 2011
>Originator:     David Wolfskill
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
Wolfskill & Dowling Residence
>Environment:
System: FreeBSD albert.catwhisker.org 8.2-STABLE FreeBSD 8.2-STABLE #272 r220736: Sun Apr 17 04:22:26 PDT 2011 root@freebeast.catwhisker.org:/common/S1/obj/usr/src/sys/ALBERT i386

>Description:
	Attempt to build graphics/netpbm-10.35.80_2 fails if an earlier
	revision of the port is already installed.

	According to Christoph Moench-Tegeder, "THe current
	graphics/netpbm port does not compile if there's an older
	version of netpbm installed - /usr/local/include/pm.h from the
	older netpbm takes precedence over the port's lib/pm.h but
	misses some macros (well, it's an upgrade...) as
	PM_GNU_PRINTF_ATTR(a, b) which then confuse the compiler."

	To which Matthias Andree responded, "Which would then have to be
	fixed through CPPFLAGS such that the local headers take
	preference over system headers."

	Christoph also suggested a circumvention: pkg_delete -f the old
	graphics/netpbm installation, then install the new one.  I did
	that, and it seems to work so far.

>How-To-Repeat:
	I had graphics/netpbm-10.26.64_4 installed, then issued
	"portmaster -ad".  It turned out that graphics/netpbm-10.26.64_4
	was the only port installed on my system that was a candidate
	for upgrading, so portmaster attempted to build
	netpbm-10.35.80_2, which failed.  My original message on the
	topic, which has an excerpt of the build activity, is archived
	at <http://docs.FreeBSD.org/cgi/mid.cgi?20110422114116.GZ1553>.
>Fix:

	As noted, a forced pkg_delete followed by installation of the
	new version appears to work, and pending a real fix, I suggest a
	note in /usr/ports/UPDATING advising folks of this.

	I expect that Matthias's suggestion may prove useful, but I'm
	not really in a position to pursue it myself at this time.

>Release-Note:
>Audit-Trail:

From: Nikola =?utf-8?B?UGF2bG92acSH?= <npavlovi@gmail.com>
To: bug-followup@FreeBSD.org, david@catwhisker.org
Cc:  
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
Date: Sat, 23 Apr 2011 18:44:46 +0200

 The proposed solution didn't work for me unfortunately.
 
 uname -a
 FreeBSD sputnjik.localdomain 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 
 After a pkg_delete -f netpbm\* and make install clean I got this:
 
 [snip the usual stuff]
 
 netpbm-10.35.80_2 depends on file: /usr/local/bin/perl5.10.1 - found
 ===>  Patching for netpbm-10.35.80_2
 ===>   netpbm-10.35.80_2 depends on file: /usr/local/bin/perl5.10.1 -
 found
 ===>  Applying FreeBSD patches for netpbm-10.35.80_2
 ===>   netpbm-10.35.80_2 depends on executable: gmake - found
 ===>   netpbm-10.35.80_2 depends on file:
 /usr/local/libdata/pkgconfig/x11.pc - found
 ===>   netpbm-10.35.80_2 depends on file: /usr/local/bin/perl5.10.1 -
 found
 ===>   netpbm-10.35.80_2 depends on shared library: tiff.4 - found
 ===>   netpbm-10.35.80_2 depends on shared library: jpeg.11 - found
 ===>   netpbm-10.35.80_2 depends on shared library: png.6 - found
 ===>   netpbm-10.35.80_2 depends on shared library: jbig.1 - found
 ===>   netpbm-10.35.80_2 depends on shared library: jasper.4 - found
 ===>   netpbm-10.35.80_2 depends on shared library: xml2.5 - found
 ===>  Configuring for netpbm-10.35.80_2
 if test -d "//usr/local/include/pm.h
 if:No such file or directory
 *** Error code 1
 
 Stop in /usr/ports/graphics/netpbm.
 
 
 I'm not sure why the -d test flag, but the file isn't there anyway (as, I
 presume, it shouldn't after the package was removed).
 

From: Lena@lena.kiev.ua
To: bug-followup@FreeBSD.org, david@catwhisker.org
Cc:  
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
Date: Sat, 30 Apr 2011 16:01:55 +0300

 Fixed with
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/netpbm/Makefile.diff?r1=1.195;r2=1.196;f=h
 
 (I'm just a user, I wasn't involved in the fix)
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun May 1 11:39:13 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=156577 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Mon May 2 05:48:23 CEST 2011 
State-Changed-Why:  
Please cvsup and try again. 

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

From: Matthias Andree <matthias.andree@tu-dortmund.de>
To: bug-followup@FreeBSD.org, david@catwhisker.org
Cc:  
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2
 fails
Date: Tue, 10 May 2011 18:38:28 +0200

 I have filed a patch to solve this as 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=156930
 
 -- 
 Matthias Andree

From: David Wolfskill <david@catwhisker.org>
To: Matthias Andree <matthias.andree@tu-dortmund.de>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
Date: Tue, 10 May 2011 09:44:07 -0700

 --REOXmE5zpOGz6VLu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, May 10, 2011 at 06:38:28PM +0200, Matthias Andree wrote:
 > I have filed a patch to solve this as=20
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D156930
 
 Thank you; that looks encouraging -- the upgrade from netpbm-10.35.80_2
 to netpbm-10.35.80_3 rudely interrupted my (daily) portmaster run again
 this morning.
 
 Peace,
 david
 --=20
 David H. Wolfskill				david@catwhisker.org
 Depriving a girl or boy of an opportunity for education is evil.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
 
 --REOXmE5zpOGz6VLu
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (FreeBSD)
 
 iEYEARECAAYFAk3Ja1YACgkQmprOCmdXAD180ACfYEY4/P9LDevDOnq4228ZCpTc
 zdYAn3BZxAyuoMS/tVfqKIgPCFUf+UXv
 =1PUw
 -----END PGP SIGNATURE-----
 
 --REOXmE5zpOGz6VLu--

From: Matthias Andree <mandree@FreeBSD.org>
To: bug-followup@FreeBSD.org, david@catwhisker.org
Cc:  
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2
 fails
Date: Wed, 11 May 2011 10:23:08 +0200

 David,
 
 Dirk has committed a part of the patch that should make upgrading safer.
 Can you update your ports tree and confirm that it works for you? It
 does for me.
 
 My test procedure was a bit more complicated because I'd upgraded Perl
 to 5.12, where the netpbm package wanted 5.10.
 
 - pkg-delete -f netpbm-10.35.80_2  (or _3)
 - download the netpbm-10.28 package from my release
 - unpack the .tbz to a temporary directory
 - manually install the include/ subdirectory to ${PREFIX}/include (IOW,
 /usr/local/include in the default configuration)
 - try to "make" the new port
 - if it succeeds, use your usual port upgrade procedure to re-install.
 
 Thanks.

From: David Wolfskill <david@catwhisker.org>
To: Matthias Andree <mandree@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails
Date: Wed, 11 May 2011 04:10:41 -0700

 --9o1Xi4ZMQ45MudWG
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, May 11, 2011 at 10:23:08AM +0200, Matthias Andree wrote:
 > David,
 >=20
 > Dirk has committed a part of the patch that should make upgrading safer.
 > Can you update your ports tree and confirm that it works for you? It
 > does for me.
 >=20
 > My test procedure was a bit more complicated because I'd upgraded Perl
 > to 5.12, where the netpbm package wanted 5.10.
 >=20
 > - pkg-delete -f netpbm-10.35.80_2  (or _3)
 > - download the netpbm-10.28 package from my release
 > - unpack the .tbz to a temporary directory
 > - manually install the include/ subdirectory to ${PREFIX}/include (IOW,
 > /usr/local/include in the default configuration)
 > - try to "make" the new port
 > - if it succeeds, use your usual port upgrade procedure to re-install.
 >=20
 > Thanks.
 
 IRC, last time I updated the ports on my desktop at work, I just left
 netpbm alone (so I'd have a machine to test the updated port).
 
 I had already migrated to Perl 5.12 on all my machines quite a while
 back.
 
 It will be a few hours before I can get to it -- I have my updates here
 at home to do, as well as commuting in to work.
 
 Thanks!
 
 Peace,
 david
 --=20
 David H. Wolfskill				david@catwhisker.org
 Depriving a girl or boy of an opportunity for education is evil.
 
 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
 
 --9o1Xi4ZMQ45MudWG
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (FreeBSD)
 
 iEYEARECAAYFAk3KbrAACgkQmprOCmdXAD28XACggXQ6wqORYE2dehwiuJxshE59
 eJcAoISjXbAcuahwehrcRjDfx0yG8O0U
 =zjDu
 -----END PGP SIGNATURE-----
 
 --9o1Xi4ZMQ45MudWG--
State-Changed-From-To: feedback->closed 
State-Changed-By: dinoex 
State-Changed-When: Wed May 11 19:55:42 CEST 2011 
State-Changed-Why:  
a fix was committed, thanks. 

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