diff options
author | tnn <tnn> | 2010-02-02 15:36:15 +0000 |
---|---|---|
committer | tnn <tnn> | 2010-02-02 15:36:15 +0000 |
commit | a66e4ef548c5888aa2380123f760700ea8cd2be0 (patch) | |
tree | 90731df1ae67fecec2729e633b47a601411b7add /mk | |
parent | c16ad8528f841cab5febcdf736482d881cd414a4 (diff) | |
download | pkgsrc-a66e4ef548c5888aa2380123f760700ea8cd2be0.tar.gz |
The missing run-time search path test cannot run reliably in DESTDIR mode
when not using the readelf(1) method, so skip the test and warn about it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/check/check-shlibs.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mk/check/check-shlibs.mk b/mk/check/check-shlibs.mk index 81518551e64..639660d5922 100644 --- a/mk/check/check-shlibs.mk +++ b/mk/check/check-shlibs.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-shlibs.mk,v 1.16 2009/06/18 14:51:55 tnn Exp $ +# $NetBSD: check-shlibs.mk,v 1.17 2010/02/02 15:36:15 tnn Exp $ # # This file verifies that all libraries used by the package can be found # at run-time. @@ -45,9 +45,9 @@ CHECK_SHLIBS_ELF_ENV+= READELF=${TOOLS_PATH.readelf:Q} CHECK_SHLIBS_ELF_ENV+= CROSS_DESTDIR=${_CROSS_DESTDIR:Q} CHECK_SHLIBS_ELF_ENV+= PKG_INFO_CMD=${PKG_INFO:Q} CHECK_SHLIBS_ELF_ENV+= DEPENDS_FILE=${_RDEPENDS_FILE:Q} -.if ${_USE_DESTDIR} != "no" +. if ${_USE_DESTDIR} != "no" CHECK_SHLIBS_ELF_ENV+= DESTDIR=${DESTDIR:Q} -.endif +. endif CHECK_SHLIBS_ELF_ENV+= WRKDIR=${WRKDIR:Q} _check-shlibs: error-check .PHONY @@ -60,6 +60,10 @@ _check-shlibs: error-check .PHONY ${SETENV} ${CHECK_SHLIBS_ELF_ENV} ${AWK} -f ${CHECK_SHLIBS_ELF} > ${ERROR_DIR}/${.TARGET} .else +. if ${_USE_DESTDIR} != "no" +_check-shlibs: error-check .PHONY + @${WARNING_MSG} "Skipping missing run-time search-path check in DESTDIR mode." +. else _check-shlibs: error-check .PHONY @${STEP_MSG} "Checking for missing run-time search paths in ${PKGNAME}" ${RUN} rm -f ${ERROR_DIR}/${.TARGET} @@ -85,4 +89,5 @@ _check-shlibs: error-check .PHONY ${ECHO} " Please fix the package (add -Wl,-R.../lib in the right places)!"; \ ${SHCOMMENT} Might not error-out for non-pkg-developers; \ fi +. endif .endif |