Blame SOURCES/bind-9.11-feature-test-named.patch

854838
From e645046202006750f87531e21e3ff7c26fba3466 Mon Sep 17 00:00:00 2001
854838
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
854838
Date: Wed, 30 Jan 2019 14:37:17 +0100
854838
Subject: [PATCH] Create feature-test in source directory
854838
854838
Feature-test tool is used in system tests to test compiled in changes.
854838
Because we build more variants of named with different configuration,
854838
compile feature-test for each of them this way.
854838
---
854838
 bin/named/Makefile.in       | 12 +++++++++++-
854838
 bin/tests/system/conf.sh.in |  2 +-
854838
 2 files changed, 12 insertions(+), 2 deletions(-)
854838
854838
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
854838
index 37053a7..ed9add2 100644
854838
--- a/bin/named/Makefile.in
854838
+++ b/bin/named/Makefile.in
854838
@@ -91,7 +91,7 @@ NOSYMLIBS =	${NSLIBS} ${DNSLIBS} ${BIND9LIBS} \
854838
 
854838
 SUBDIRS =	unix
854838
 
854838
-TARGETS =	named@EXEEXT@
854838
+TARGETS =	named@EXEEXT@ feature-test@EXEEXT@
854838
 
854838
 GEOIP2LINKOBJS = geoip.@O@
854838
 
854838
@@ -154,6 +154,16 @@ named@EXEEXT@: ${OBJS} ${DEPLIBS}
854838
 	export BASEOBJS="${OBJS} ${UOBJS}"; \
854838
 	${FINALBUILDCMD}
854838
 
854838
+# Bit of hack, do not produce intermediate .o object for featuretest
854838
+feature-test.@O@: ${top_srcdir}/bin/tests/system/feature-test.c
854838
+	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
854838
+		-c ${top_srcdir}/bin/tests/system/feature-test.c
854838
+
854838
+feature-test@EXEEXT@: feature-test.@O@
854838
+	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
854838
+		-o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
854838
+
854838
+
854838
 clean distclean maintainer-clean::
854838
 	rm -f ${TARGETS} ${OBJS}
854838
 
854838
diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
854838
index 7934930..e84fde2 100644
854838
--- a/bin/tests/system/conf.sh.in
854838
+++ b/bin/tests/system/conf.sh.in
854838
@@ -37,7 +37,7 @@ DELV=$TOP/bin/delv/delv
854838
 DIG=$TOP/bin/dig/dig
854838
 DNSTAPREAD=$TOP/bin/tools/dnstap-read
854838
 DSFROMKEY=$TOP/bin/dnssec/dnssec-dsfromkey
854838
-FEATURETEST=$TOP/bin/tests/system/feature-test
854838
+FEATURETEST=$TOP/bin/named/feature-test
854838
 FSTRM_CAPTURE=@FSTRM_CAPTURE@
854838
 HOST=$TOP/bin/dig/host
854838
 IMPORTKEY=$TOP/bin/dnssec/dnssec-importkey
854838
-- 
854838
2.26.2
854838