PERFORCE change 122144 for review

Gabor Kovesdan gabor at FreeBSD.org
Fri Jun 22 13:25:57 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122144

Change 122144 by gabor at gabor_server on 2007/06/22 13:25:32

	- Fix typo
	- Nullmount PORTSDIR if not available in the jail
	- Mount devfs if not available in the jail

Affected files ...

.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#21 edit

Differences ...

==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#21 (text+ko) ====

@@ -1090,11 +1090,18 @@
 .include "${PORTSDIR}/Mk/bsd.commands.mk"
 
 #
-# DESTDIR section to start a chrooted process if incoked with DESTDIR set
+# DESTDIR section to start a chrooted process if invoked with DESTDIR set
 #
 
 .if defined(DESTDIR) && !empty(DESTDIR) && !defined(CHROOTED)
 .BEGIN:
+	${MKDIR} ${DESTDIR}${PORTSDIR}
+.if !exists(${DESTDIR}${PORTSDIR}/Makefile)
+	${MOUNT} -t nullfs ${PORTSDIR} ${DESTDIR}${PORTSDIR}
+.endif
+.if !exists (${DESTDIR}/dev/null)
+	${MOUNT} -t devfs devfs ${DESTDIR}/dev
+.endif
 	${ECHO_CMD} "===> Starting chrooted make in ${DESTDIR}..."; \
 	${CHROOT} ${DESTDIR} ${SH} -c "(cd ${.CURDIR}; ${MAKE} DESTDIR= CHROOTED=YES ${.TARGETS})"
 .else


More information about the p4-projects mailing list