From owner-freebsd-ports-bugs@FreeBSD.ORG  Fri Apr 22 15:40:09 2011
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
Delivered-To: freebsd-ports-bugs@hub.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C8370106564A
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Fri, 22 Apr 2011 15:40:09 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id 9D0EF8FC18
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Fri, 22 Apr 2011 15:40:09 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p3MFe9lW006429
	for <freebsd-ports-bugs@freefall.freebsd.org>;
	Fri, 22 Apr 2011 15:40:09 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3MFe9ro006428;
	Fri, 22 Apr 2011 15:40:09 GMT (envelope-from gnats)
Resent-Date: Fri, 22 Apr 2011 15:40:09 GMT
Resent-Message-Id: <201104221540.p3MFe9ro006428@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-ports-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	David Wolfskill <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>
To: FreeBSD-gnats-submit@FreeBSD.org
X-Send-Pr-Version: 3.113
Cc: 
Subject: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to
	netpbm-10.35.80_2 fails
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: David Wolfskill <david@catwhisker.org>
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Apr 2011 15:40:10 -0000


>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@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: