ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails

David Wolfskill david at catwhisker.org
Fri Apr 22 15:40:10 UTC 2011


>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:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 22 15:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list