diff options
author | kwm <kwm@FreeBSD.org> | 2013-09-30 01:17:57 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2013-09-30 01:17:57 +0800 |
commit | d16792b8eb10dcb947bb9a7dc0f0aa76778b4cbc (patch) | |
tree | 8db8eccdcf9de64ed6d82a31a92b5ff09dd40d46 /Mk | |
parent | 5c471ba1e3a1c86a07520dab9ce2d424325f733c (diff) | |
download | freebsd-ports-gnome-d16792b8eb10dcb947bb9a7dc0f0aa76778b4cbc.tar.gz freebsd-ports-gnome-d16792b8eb10dcb947bb9a7dc0f0aa76778b4cbc.tar.zst freebsd-ports-gnome-d16792b8eb10dcb947bb9a7dc0f0aa76778b4cbc.zip |
Don't exec programs in post-install when STAGE mode is enabled.
Noticed by: antoine (on #poudriere)
Reviewed by: bapt@
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/desktop-file-utils.mk | 2 | ||||
-rw-r--r-- | Mk/Uses/shared-mime-info.mk | 2 |
2 files changed, 4 insertions, 0 deletions
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}; \ |