ports/71390: change-request: add add-plist-perl in bsd.port.mk
Yen-Ming Lee
leeym at utopia.leeym.com
Sun Sep 5 08:10:29 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list