pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/check mk: Remove warning messages for unsupported c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c15fe0e62595
branches: trunk
changeset: 425668:c15fe0e62595
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Mar 23 09:24:35 2020 +0000
description:
mk: Remove warning messages for unsupported check targets.
These appear to have been cargo culted around for a while, don't even have
anything to do with DESTDIR mode, and are completely useless. Simplify the
logic a little while here. Noticed by rillig@.
diffstat:
mk/check/check-relro.mk | 14 ++++----------
mk/check/check-shlibs.mk | 14 ++++----------
mk/check/check-ssp.mk | 14 ++++----------
3 files changed, 12 insertions(+), 30 deletions(-)
diffs (120 lines):
diff -r 7355a7a4c036 -r c15fe0e62595 mk/check/check-relro.mk
--- a/mk/check/check-relro.mk Mon Mar 23 09:22:07 2020 +0000
+++ b/mk/check/check-relro.mk Mon Mar 23 09:24:35 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-relro.mk,v 1.3 2018/03/04 20:45:19 rillig Exp $
+# $NetBSD: check-relro.mk,v 1.4 2020/03/23 09:24:35 jperkin Exp $
#
# This file verifies that RELRO (read-only relocations) was applied
# accordingly at build-time.
@@ -47,11 +47,8 @@
done)
.if !empty(CHECK_RELRO:M[Yy][Ee][Ss]) && \
- !empty(CHECK_RELRO_SUPPORTED:M[Yy][Ee][Ss])
-privileged-install-hook: _check-relro
-.endif
-
-.if ${_USE_CHECK_RELRO_NATIVE} == "yes"
+ !empty(CHECK_RELRO_SUPPORTED:M[Yy][Ee][Ss]) && \
+ ${_USE_CHECK_RELRO_NATIVE} == "yes"
CHECK_RELRO_NATIVE_ENV=
. if ${OBJECT_FMT} == "ELF"
USE_TOOLS+= readelf
@@ -68,6 +65,7 @@
CHECK_RELRO_NATIVE_ENV+= CHECK_WRKREF_EXTRA_DIRS=${CHECK_WRKREF_EXTRA_DIRS:Q}
. endif
+privileged-install-hook: _check-relro
_check-relro: error-check .PHONY
@${STEP_MSG} "Checking for RELRO in ${PKGNAME}"
${RUN} rm -f ${ERROR_DIR}/${.TARGET}
@@ -83,8 +81,4 @@
${ECHO} $$file; \
done | \
${PKGSRC_SETENV} ${CHECK_RELRO_NATIVE_ENV} ${AWK} -f ${CHECK_RELRO_NATIVE} > ${ERROR_DIR}/${.TARGET}
-
-.else
-_check-relro: error-check .PHONY
- @${WARNING_MSG} "Skipping check for RELRO in DESTDIR mode."
.endif
diff -r 7355a7a4c036 -r c15fe0e62595 mk/check/check-shlibs.mk
--- a/mk/check/check-shlibs.mk Mon Mar 23 09:22:07 2020 +0000
+++ b/mk/check/check-shlibs.mk Mon Mar 23 09:24:35 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs.mk,v 1.31 2018/10/01 14:59:49 triaxx Exp $
+# $NetBSD: check-shlibs.mk,v 1.32 2020/03/23 09:24:35 jperkin Exp $
#
# This file verifies that all libraries used by the package can be found
# at run-time.
@@ -54,11 +54,8 @@
done)
.if !empty(CHECK_SHLIBS:M[Yy][Ee][Ss]) && \
- !empty(CHECK_SHLIBS_SUPPORTED:M[Yy][Ee][Ss])
-privileged-install-hook: _check-shlibs
-.endif
-
-.if ${_USE_CHECK_SHLIBS_NATIVE} == "yes"
+ !empty(CHECK_SHLIBS_SUPPORTED:M[Yy][Ee][Ss]) && \
+ ${_USE_CHECK_SHLIBS_NATIVE} == "yes"
CHECK_SHLIBS_NATIVE_ENV=
. if ${OBJECT_FMT} == "ELF"
USE_TOOLS+= readelf
@@ -81,6 +78,7 @@
CHECK_SHLIBS_NATIVE_ENV+= CHECK_SHLIBS_BLACKLIST=${CHECK_SHLIBS_BLACKLIST:Q}
. endif
+privileged-install-hook: _check-shlibs
_check-shlibs: error-check .PHONY
@${STEP_MSG} "Checking for missing run-time search paths in ${PKGNAME}"
${RUN} rm -f ${ERROR_DIR}/${.TARGET}
@@ -96,8 +94,4 @@
${ECHO} $$file; \
done | \
${PKGSRC_SETENV} ${CHECK_SHLIBS_NATIVE_ENV} ${AWK} -f ${CHECK_SHLIBS_NATIVE} > ${ERROR_DIR}/${.TARGET}
-
-.else
-_check-shlibs: error-check .PHONY
- @${WARNING_MSG} "Skipping missing run-time search-path check in DESTDIR mode."
.endif
diff -r 7355a7a4c036 -r c15fe0e62595 mk/check/check-ssp.mk
--- a/mk/check/check-ssp.mk Mon Mar 23 09:22:07 2020 +0000
+++ b/mk/check/check-ssp.mk Mon Mar 23 09:24:35 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-ssp.mk,v 1.1 2017/10/03 09:43:06 jperkin Exp $
+# $NetBSD: check-ssp.mk,v 1.2 2020/03/23 09:24:35 jperkin Exp $
#
# This file verifies that SSP was applied accordingly at build-time.
#
@@ -46,11 +46,8 @@
done)
.if !empty(CHECK_SSP:M[Yy][Ee][Ss]) && \
- !empty(CHECK_SSP_SUPPORTED:M[Yy][Ee][Ss])
-privileged-install-hook: _check-ssp
-.endif
-
-.if ${_USE_CHECK_SSP_NATIVE} == "yes"
+ !empty(CHECK_SSP_SUPPORTED:M[Yy][Ee][Ss]) && \
+ ${_USE_CHECK_SSP_NATIVE} == "yes"
CHECK_SSP_NATIVE_ENV=
. if ${OBJECT_FMT} == "ELF"
USE_TOOLS+= readelf
@@ -67,6 +64,7 @@
CHECK_SSP_NATIVE_ENV+= CHECK_WRKREF_EXTRA_DIRS=${CHECK_WRKREF_EXTRA_DIRS:Q}
. endif
+privileged-install-hook: _check-ssp
_check-ssp: error-check .PHONY
@${STEP_MSG} "Checking for SSP in ${PKGNAME}"
${RUN} rm -f ${ERROR_DIR}/${.TARGET}
@@ -82,8 +80,4 @@
${ECHO} $$file; \
done | \
${PKGSRC_SETENV} ${CHECK_SSP_NATIVE_ENV} ${AWK} -f ${CHECK_SSP_NATIVE} > ${ERROR_DIR}/${.TARGET}
-
-.else
-_check-ssp: error-check .PHONY
- @${WARNING_MSG} "Skipping check for SSP in DESTDIR mode."
.endif
Home |
Main Index |
Thread Index |
Old Index