diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-03 13:46:53 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-03 13:46:53 +0000 |
commit | 00dacc1b6218822faeeefe7378085bf33f0a6d41 (patch) | |
tree | 337610f2a7d18f545f061098f7f777f349a9de9f /mk/check/check-shlibs.mk | |
parent | 0217bcb70921a72a980fb2b4e66919e32b35bd64 (diff) | |
download | pkgsrc-00dacc1b6218822faeeefe7378085bf33f0a6d41.tar.gz |
Introduce CHECK_SHLIBS_BLACKLIST which allows users to specify a list of
regexps that will cause the checks to fail if they match resolved RPATHs.
Diffstat (limited to 'mk/check/check-shlibs.mk')
-rw-r--r-- | mk/check/check-shlibs.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/check/check-shlibs.mk b/mk/check/check-shlibs.mk index cf931b10b03..9b07d6fd9ac 100644 --- a/mk/check/check-shlibs.mk +++ b/mk/check/check-shlibs.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-shlibs.mk,v 1.29 2016/04/10 15:58:02 joerg Exp $ +# $NetBSD: check-shlibs.mk,v 1.30 2017/05/03 13:46:53 jperkin Exp $ # # This file verifies that all libraries used by the package can be found # at run-time. @@ -10,6 +10,14 @@ # # Default value: "yes" for PKG_DEVELOPERs, "no" otherwise. # +# CHECK_SHLIBS_BLACKLIST +# A list of regular expressions that will cause the test to fail +# if they are matched in the resolved runpath. For example, set +# to ^/usr/lib/lib(crypto|ssl) will ensure that OpenSSL is not +# accidentally picked up from the OS. +# +# Default value: empty. +# # Package-settable variables: # # CHECK_SHLIBS_SKIP @@ -68,6 +76,9 @@ CHECK_SHLIBS_NATIVE_ENV+= WRKDIR=${WRKDIR:Q} . if defined(CHECK_WRKREF) && !empty(CHECK_WRKREF:Mextra) CHECK_SHLIBS_NATIVE_ENV+= CHECK_WRKREF_EXTRA_DIRS=${CHECK_WRKREF_EXTRA_DIRS:Q} . endif +. if defined(CHECK_SHLIBS_BLACKLIST) +CHECK_SHLIBS_NATIVE_ENV+= CHECK_SHLIBS_BLACKLIST=${CHECK_SHLIBS_BLACKLIST:Q} +. endif _check-shlibs: error-check .PHONY @${STEP_MSG} "Checking for missing run-time search paths in ${PKGNAME}" |