Date: Fri, 22 Apr 2011 08:38:42 -0700 (PDT) From: David Wolfskill <david@catwhisker.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/156577: Upgrade of graphics/netpbm-10.26.64_4 to netpbm-10.35.80_2 fails Message-ID: <201104221538.p3MFcgnv042454@albert.catwhisker.org> Resent-Message-ID: <201104221540.p3MFe9ro006428@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104221538.p3MFcgnv042454>