Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 16:34:44 GMT
From:      "4720@hushmail.com" <4720@hushmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/162408: [patch] empty directory not preserved in package for www/firefox36
Message-ID:  <201111091634.pA9GYi5h054051@red.freebsd.org>
Resent-Message-ID: <201111091640.pA9Ge8ku022842@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111091634.pA9GYi5h054051>