pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check mk/check: Do not waste time checking binaries...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4ae9d56ff0b
branches:  trunk
changeset: 375108:b4ae9d56ff0b
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Mar 07 16:53:08 2022 +0000

description:
mk/check: Do not waste time checking binaries that set EMUL_PLATFORM.

diffstat:

 mk/check/check-pie.mk   |  6 ++++--
 mk/check/check-relro.mk |  5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r bcc274705350 -r b4ae9d56ff0b mk/check/check-pie.mk
--- a/mk/check/check-pie.mk     Mon Mar 07 16:52:25 2022 +0000
+++ b/mk/check/check-pie.mk     Mon Mar 07 16:53:08 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-pie.mk,v 1.2 2022/02/14 00:31:18 pho Exp $
+# $NetBSD: check-pie.mk,v 1.3 2022/03/07 16:53:08 nia Exp $
 #
 # This file verifies that MKPIE (position-independent executables) was applied
 # accordingly at build-time.
@@ -29,7 +29,9 @@
 _USER_VARS.check-pie=  CHECK_PIE
 _PKG_VARS.check-pie=   CHECK_PIE_SUPPORTED
 
-.if ${_PKGSRC_MKPIE:Uno} != "no" && ${PKG_DEVELOPER:Uno:tl} != "no"
+.if ${_PKGSRC_MKPIE:Uno} != "no" && \
+    ${PKG_DEVELOPER:Uno:tl} != "no" && \
+    empty(EMUL_PLATFORMS)
 CHECK_PIE?=            yes
 .else
 CHECK_PIE?=            no
diff -r bcc274705350 -r b4ae9d56ff0b mk/check/check-relro.mk
--- a/mk/check/check-relro.mk   Mon Mar 07 16:52:25 2022 +0000
+++ b/mk/check/check-relro.mk   Mon Mar 07 16:53:08 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-relro.mk,v 1.5 2021/02/01 16:03:49 tpaul Exp $
+# $NetBSD: check-relro.mk,v 1.6 2022/03/07 16:53:08 nia Exp $
 #
 # This file verifies that RELRO (read-only relocations) was applied
 # accordingly at build-time.
@@ -30,7 +30,8 @@
 _PKG_VARS.check-relro=         CHECK_RELRO_SUPPORTED
 
 .if ${_PKGSRC_USE_RELRO:Uno} != "no" && \
-    ${PKG_DEVELOPER:Uno} != "no"
+    ${PKG_DEVELOPER:Uno} != "no" && \
+    empty(EMUL_PLATFORMS)
 CHECK_RELRO?=                  yes
 .else
 CHECK_RELRO?=                  no



Home | Main Index | Thread Index | Old Index