From owner-svn-ports-head@FreeBSD.ORG Sun Nov 3 22:51:57 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7DB4C6B5; Sun, 3 Nov 2013 22:51:57 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6AD592814; Sun, 3 Nov 2013 22:51:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA3Mpv3l080472; Sun, 3 Nov 2013 22:51:57 GMT (envelope-from rene@svn.freebsd.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA3MpvSF080471; Sun, 3 Nov 2013 22:51:57 GMT (envelope-from rene@svn.freebsd.org) Message-Id: <201311032251.rA3MpvSF080471@svn.freebsd.org> From: Rene Ladan Date: Sun, 3 Nov 2013 22:51:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332653 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2013 22:51:57 -0000 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