Date: Fri, 28 Oct 2011 21:46:31 GMT From: "4720@hushmail.com" <4720@hushmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/162116: [patch] empty directories not preserved in packages for audio/sox graphics/gimp-app www/firefox Message-ID: <201110282146.p9SLkVxn037017@red.freebsd.org> Resent-Message-ID: <201110282150.p9SLo9C3021615@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110282146.p9SLkVxn037017>