ports/93536: [PATCH] Correct rc.d installation in bsd.port.mk for RELENG_6
Xin LI
delphij at FreeBSD.org
Sat Feb 18 21:20:09 UTC 2006
>Number: 93536
>Category: ports
>Synopsis: [PATCH] Correct rc.d installation in bsd.port.mk for RELENG_6
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 18 21:20:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Xin LI
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD tarsier.delphij.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #8: Sat Feb 18 01:46:38 CST 2006 delphij at tarsier.delphij.net:/usr/obj/usr/src/sys/TARSIER i386
>Description:
The new rc.d order was MFC'ed by __FreeBSD_version 600101,
however, bsd.port.mk does not have knowledge about it.
This is a show-stopper that must be corrected before
6.1-RELEASE or rc.d scripts installed by ports would be
unable to run.
>How-To-Repeat:
Install a port that uses rc.d script on new RELENG_6 system.
>Fix:
Because 700007 is greater than 600101, we should change it
to 600101.
--- patch-bsd.port.mk begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.525
diff -u -r1.525 bsd.port.mk
--- bsd.port.mk 11 Feb 2006 02:34:48 -0000 1.525
+++ bsd.port.mk 18 Feb 2006 21:12:17 -0000
@@ -5123,7 +5123,7 @@
.if defined(USE_RC_SUBR) && ${USE_RC_SUBR:U} != "YES"
@${ECHO_CMD} "===> Installing rc.d startup script(s)"
@${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST}
-.if ${OSVERSION} >= 700007
+.if ${OSVERSION} >= 600101
@for i in ${USE_RC_SUBR}; do \
${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \
${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \
--- patch-bsd.port.mk ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list