mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Don't exec programs in post-install when STAGE mode is enabled.
Noticed by: antoine (on #poudriere) Reviewed by: bapt@
This commit is contained in:
parent
f819f7cc03
commit
dd15126ccc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328714
@ -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}; \
|
||||
|
@ -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}; \
|
||||
|
Loading…
Reference in New Issue
Block a user