diff options
author | Dan Langille <dvl@FreeBSD.org> | 2020-07-20 19:22:16 +0000 |
---|---|---|
committer | Dan Langille <dvl@FreeBSD.org> | 2020-07-20 19:22:16 +0000 |
commit | c1f39c706ad4bd6583d3080922df13159cdff167 (patch) | |
tree | ca44d343f338c559aa2a0780c08fc25d1fa236ea | |
parent | Update to 2.21.3 (diff) |
At present, the policy implemented in Mk/Scripts/qa.sh prevents me
from adding lang/python, lang/python2, or lang/python3 as a dependency of
another port. "This is to prevent adding dependencies to meta ports that
are only there to improve the end user experience." - I build my own packages
via poudriere. I want to create my own meta-package which has such packages
as RUN_DEPENDS. It's been suggested that I patch my own copy of the tree.
This patch moves towards tools, not policy.
This patch allows me to set this variable in a poudriere make.conf file:
QA_ENV+= IGNORE_DEPENDS_BLACKLIST="YES"
Reviewed by: mat
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D25450
-rw-r--r-- | Mk/Scripts/qa.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh index 2e6c2579b1fa..2c22977c2c14 100644 --- a/Mk/Scripts/qa.sh +++ b/Mk/Scripts/qa.sh @@ -1020,7 +1020,12 @@ checks="$checks license depends_blacklist pkgmessage reinplace" ret=0 cd ${STAGEDIR} || exit 1 for check in ${checks}; do - ${check} || ret=1 + eval check_test="\$IGNORE_QA_$check" + if [ -z "${check_test}" ]; then + ${check} || ret=1 + else + warn "Ignoring $check QA test" + fi done exit ${ret} |