ports/162408: [patch] empty directory not preserved in package for www/firefox36

4720 at hushmail.com 4720 at hushmail.com
Wed Nov 9 16:40:09 UTC 2011


>Number:         162408
>Category:       ports
>Synopsis:       [patch] empty directory not preserved in package for www/firefox36
>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:   Wed Nov 09 16:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     4720 at hushmail.com
>Release:        
>Organization:
>Environment:
>Description:
directory created by make install with no files, so is not preserved in package, leading to plist errors when using package and deinstalling/upgrading.

pkg_delete: file '/usr/local/include/firefox3/nss' doesn't exist
pkg_delete: unable to completely remove directory '/usr/local/include/firefox3/nss'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
>How-To-Repeat:

>Fix:
attached patch manually creates directory to ensure its existence.

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/firefox36/Makefile,v
retrieving revision 1.249
diff -u -r1.249 Makefile
--- Makefile	8 Nov 2011 17:26:16 -0000	1.249
+++ Makefile	9 Nov 2011 16:17:32 -0000
@@ -111,6 +111,7 @@
 port-pre-install:
 #	${SED} -e 's|1.9a7|0|' ${WRKSRC}/dist/bin/application.ini ${FAKEDIR}/lib
 	${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLISTF}
+	${ECHO_CMD} "@exec mkdir -p %D/include/firefox3/nss" >> ${PLISTD}
 	${ECHO_CMD} "@dirrmtry share/applications" >> ${PLISTD}
 	${ECHO_CMD} 'share/pixmaps/${FIREFOX_ICON}' >> ${PLISTF}
 


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list