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

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