Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  5 Sep 2004 16:00:06 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/71390: change-request: add add-plist-perl in bsd.port.mk
Message-ID:  <20040905080006.ED6B03EAB18@utopia.leeym.com>
Resent-Message-ID: <200409050810.i858ATh7081256@freefall.freebsd.org>

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

>Number:         71390
>Category:       ports
>Synopsis:       change-request: add add-plist-perl in bsd.port.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 05 08:10:28 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA3 FreeBSD 5.3-BETA3 #1: Sun Sep 5 01:06:46 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

- remove %%SITE_PERL%%/%%PERL_ARCH%%/auto if it's empty.

>How-To-Repeat:

http://pointyhat.freebsd.org/errorlogs/i386-5-full-logs/extras.html

>Fix:

	

--- bsd.port.mk.diff begins here ---
--- /usr/ports/Mk/bsd.port.mk	Wed Aug  4 03:03:58 2004
+++ bsd.port.mk	Sun Sep  5 15:23:30 2004
@@ -3555,6 +3555,7 @@
 _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \
 				pre-su-install-script do-install post-install \
 				post-install-script add-plist-info add-plist-docs \
+				add-plist-perl \
 				compress-man run-ldconfig fake-pkg security-check
 _PACKAGE_DEP=	install
 _PACKAGE_SEQ=	package-message pre-package pre-package-script \
@@ -4658,6 +4659,14 @@
 .endfor
 .if !defined(NO_MTREE)
 	@${ECHO_CMD} "@unexec if [ -f %D/${INFO_PATH}/dir ]; then if sed -e '1,/Menu:/d' %D/${INFO_PATH}/dir | grep -q '^[*] '; then true; else rm %D/${INFO_PATH}/dir; fi; fi" >> ${TMPPLIST}
+.endif
+
+# Remove perl arch-depended directory if it's empty.
+.if !target(add-plist-perl)
+add-plist-perl:
+.if defined(PERL_CONFIGURE)
+	${ECHO_CMD} "@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto 2>/dev/null || true" >> ${TMPPLIST}
+.endif
 .endif
 
 # Compress (or uncompress) and symlink manpages.
--- bsd.port.mk.diff ends here ---


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



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