From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 28 21:50:09 2011 Return-Path: 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 993CB1065676 for ; Fri, 28 Oct 2011 21:50: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 6D3F98FC0C for ; Fri, 28 Oct 2011 21:50: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 p9SLo9GT021616 for ; Fri, 28 Oct 2011 21:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9SLo9C3021615; Fri, 28 Oct 2011 21:50:09 GMT (envelope-from gnats) Resent-Date: Fri, 28 Oct 2011 21:50:09 GMT Resent-Message-Id: <201110282150.p9SLo9C3021615@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, "4720@hushmail.com" <4720@hushmail.com> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B96A106566C for ; Fri, 28 Oct 2011 21:46:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 018388FC13 for ; Fri, 28 Oct 2011 21:46:32 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9SLkVTo037018 for ; Fri, 28 Oct 2011 21:46:31 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9SLkVxn037017; Fri, 28 Oct 2011 21:46:31 GMT (envelope-from nobody) Message-Id: <201110282146.p9SLkVxn037017@red.freebsd.org> Date: Fri, 28 Oct 2011 21:46:31 GMT From: "4720@hushmail.com" <4720@hushmail.com> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/162116: [patch] empty directories not preserved in packages for audio/sox graphics/gimp-app www/firefox X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 21:50:09 -0000 >Number: 162116 >Category: ports >Synopsis: [patch] empty directories not preserved in packages for audio/sox graphics/gimp-app www/firefox >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 28 21:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: 4720@hushmail.com >Release: >Organization: >Environment: >Description: audio/sox, graphics/gimp-app, and www/firefox create empty directories on port install. since they have no files, they are not stored in packages automatically and cause packing list errors on uninstall/upgrade when they were installed from a package. pkg_delete: file '/usr/local/lib/sox' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/lib/sox' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) pkg_delete: file '/usr/local/share/gimp/fonts' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/share/gimp/fonts' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) pkg_delete: file '/usr/local/include/firefox/nss' doesn't exist pkg_delete: unable to completely remove directory '/usr/local/include/firefox/nss' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) >How-To-Repeat: >Fix: attached patch adds mkdirs to packing lists to preserve empty directories. Patch attached with submission follows: Index: audio/sox/pkg-plist =================================================================== RCS file: /home/ncvs/ports/audio/sox/pkg-plist,v retrieving revision 1.12 diff -u -r1.12 pkg-plist --- audio/sox/pkg-plist 18 Sep 2009 19:32:50 -0000 1.12 +++ audio/sox/pkg-plist 28 Oct 2011 21:35:41 -0000 @@ -9,5 +9,6 @@ lib/libsox.la lib/libsox.so lib/libsox.so.1 +@exec mkdir -p %D/lib/sox @dirrm lib/sox libdata/pkgconfig/sox.pc Index: graphics/gimp-app/pkg-plist =================================================================== RCS file: /home/ncvs/ports/graphics/gimp-app/pkg-plist,v retrieving revision 1.130 diff -u -r1.130 pkg-plist --- graphics/gimp-app/pkg-plist 20 Nov 2010 15:36:40 -0000 1.130 +++ graphics/gimp-app/pkg-plist 28 Oct 2011 21:35:44 -0000 @@ -2135,4 +2128,5 @@ @dirrm etc/gimp/2.2 @dirrm etc/gimp @exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true +@exec mkdir -p %D/share/gimp/fonts @unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true Index: www/firefox/Makefile =================================================================== RCS file: /home/ncvs/ports/www/firefox/Makefile,v retrieving revision 1.254 diff -u -r1.254 Makefile --- www/firefox/Makefile 24 Oct 2011 12:21:27 -0000 1.254 +++ www/firefox/Makefile 28 Oct 2011 21:35:45 -0000 @@ -139,6 +142,7 @@ port-pre-install: ${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLISTF} + ${ECHO_CMD} "@exec mkdir -p %D/include/firefox/nss" >> ${PLISTD} ${ECHO_CMD} "@dirrmtry share/applications" >> ${PLISTD} ${ECHO_CMD} 'share/pixmaps/${FIREFOX_ICON}' >> ${PLISTF} >Release-Note: >Audit-Trail: >Unformatted: