From dd15126ccce0dd37986301300a2628852e72ca72 Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Sun, 29 Sep 2013 17:17:57 +0000 Subject: [PATCH] Don't exec programs in post-install when STAGE mode is enabled. Noticed by: antoine (on #poudriere) Reviewed by: bapt@ --- Mk/Uses/desktop-file-utils.mk | 2 ++ Mk/Uses/shared-mime-info.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Mk/Uses/desktop-file-utils.mk b/Mk/Uses/desktop-file-utils.mk index e5eca22a6c54..3e4a732df4d9 100644 --- a/Mk/Uses/desktop-file-utils.mk +++ b/Mk/Uses/desktop-file-utils.mk @@ -23,8 +23,10 @@ RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils post-install: desktop-file-post-install desktop-file-post-install: +.if defined(NO_STAGE) # run for port post-install @-update-desktop-database -q +.endif # plist entries for packages. @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \ >> ${TMPPLIST}; \ diff --git a/Mk/Uses/shared-mime-info.mk b/Mk/Uses/shared-mime-info.mk index 5c59e7114c79..7c59eaff86af 100644 --- a/Mk/Uses/shared-mime-info.mk +++ b/Mk/Uses/shared-mime-info.mk @@ -23,8 +23,10 @@ RUN_DEPENDS+= update-mime-database:${PORTSDIR}/misc/shared-mime-info post-install: shared-mime-post-install shared-mime-post-install: +.if defined(NO_STAGE) # run for port post-install @-update-mime-database ${PREFIX}/share/mime +.endif # plist entries for packages. @${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-mime-database %D/share/mime" \ >> ${TMPPLIST}; \