Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2007 06:30:18 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 122375 for review
Message-ID:  <200706270630.l5R6UIdj082458@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122375

Change 122375 by gabor@gabor_server on 2007/06/27 06:30:09

	- Make post-chroot run in the chroot, after the chroot happened,
	  but before pre-everything. In this way, it can be used for
	  special preparing works if needed somewhere.

Affected files ...

.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#9 edit
.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#27 edit

Differences ...

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

@@ -26,7 +26,7 @@
 .endfor
 
 .for _target in ${.TARGETS}
-${_target}: pre-chroot do-chroot post-chroot
+${_target}: pre-chroot do-chroot
 	@${TRUE}
 .endfor
 
@@ -59,8 +59,3 @@
 	${UMOUNT} ${DESTDIR}${PORTSDIR_TMP_REL}; \
 	${RMDIR} ${DESTDIR}${PORTSDIR_TMP_REL}
 .endif
-
-.if !target(post-chroot)
-post-chroot:
-	@${TRUE}
-.endif

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

@@ -4035,10 +4035,17 @@
 # Please note that the order of the following targets is important, and
 # should not be modified.
 
+.if !defined(CHROOTED)
 _SANITY_SEQ=	pre-everything check-makefile check-categories \
 				check-makevars check-desktop-entries check-depends \
 				check-deprecated check-vulnerable buildanyway-message \
 				options-message
+.else
+_SANITY_SEQ=	post-chroot pre-everything check-makefile check-categories \
+				check-makevars check-desktop-entries check-depends \
+				check-deprecated check-vulnerable buildanyway-message \
+				options-message
+.endif
 _FETCH_DEP=		check-sanity
 _FETCH_SEQ=		fetch-depends pre-fetch pre-fetch-script \
 				do-fetch post-fetch post-fetch-script



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