Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2013 22:51:57 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332653 - head/Mk/Uses
Message-ID:  <201311032251.rA3MpvSF080471@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Sun Nov  3 22:51:56 2013
New Revision: 332653
URL: http://svnweb.freebsd.org/changeset/ports/332653

Log:
  Use @unexec rmdir instead of @dirrmtry in the NO_STAGE case.
  
  Submitted by:	vsevolod via IRC

Modified:
  head/Mk/Uses/kmod.mk

Modified: head/Mk/Uses/kmod.mk
==============================================================================
--- head/Mk/Uses/kmod.mk	Sun Nov  3 22:48:12 2013	(r332652)
+++ head/Mk/Uses/kmod.mk	Sun Nov  3 22:51:56 2013	(r332653)
@@ -42,9 +42,11 @@ post-install: kmod-post-install
 kmod-post-install:
 	${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}"  >> ${TMPPLIST}
 	${ECHO_CMD} "@unexec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}
-	${ECHO_CMD} "@dirrmtry ${KMODDIR}" >> ${TMPPLIST}
 .if defined(NO_STAGE)
+	${ECHO_CMD} "@unexec rmdir ${KMODDIR} 2>/dev/null || true" >> ${TMPPLIST}
 	/usr/sbin/kldxref ${KMODDIR}
+.else
+	${ECHO_CMD} "@dirrmtry ${KMODDIR}" >> ${TMPPLIST}
 .endif
 
 .endif



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