2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 15:45:25 +00:00

Merge branch 'fanf-prune-libirs' into 'main'

Move irs_resconf into libdns and remove libirs

See merge request isc-projects/bind9!7463
This commit is contained in:
Tony Finch
2023-02-24 10:01:05 +00:00
16 changed files with 21 additions and 53 deletions

View File

@@ -1,3 +1,6 @@
6111. [cleanup] Move irs_resconf into libdns, and remove the
now empty libirs. [GL !7463]
6110. [cleanup] Refactor the dns_xfrin module to use dns_dispatch 6110. [cleanup] Refactor the dns_xfrin module to use dns_dispatch
to set up TCP connections and send and receive to set up TCP connections and send and receive
messages. [GL #3886] messages. [GL #3886]

View File

@@ -40,12 +40,6 @@ LIBNS_CFLAGS = \
LIBNS_LIBS = \ LIBNS_LIBS = \
$(top_builddir)/lib/ns/libns.la $(top_builddir)/lib/ns/libns.la
LIBIRS_CFLAGS = \
-I$(top_srcdir)/lib/irs/include
LIBIRS_LIBS = \
$(top_builddir)/lib/irs/libirs.la
LIBISCCFG_CFLAGS = \ LIBISCCFG_CFLAGS = \
-I$(top_srcdir)/lib/isccfg/include -I$(top_srcdir)/lib/isccfg/include

View File

@@ -4,8 +4,7 @@ AM_CPPFLAGS += \
-I$(top_builddir)/include \ -I$(top_builddir)/include \
$(LIBISC_CFLAGS) \ $(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \ $(LIBDNS_CFLAGS) \
$(LIBISCCFG_CFLAGS) \ $(LIBISCCFG_CFLAGS)
$(LIBIRS_CFLAGS)
AM_CPPFLAGS += \ AM_CPPFLAGS += \
-DSYSCONFDIR=\"${sysconfdir}\" -DSYSCONFDIR=\"${sysconfdir}\"
@@ -14,8 +13,8 @@ bin_PROGRAMS = delv
delv_SOURCES = \ delv_SOURCES = \
delv.c delv.c
delv_LDADD = \ delv_LDADD = \
$(LIBISC_LIBS) \ $(LIBISC_LIBS) \
$(LIBDNS_LIBS) \ $(LIBDNS_LIBS) \
$(LIBISCCFG_LIBS) \ $(LIBISCCFG_LIBS)
$(LIBIRS_LIBS)

View File

@@ -4,7 +4,6 @@ AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \ $(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \ $(LIBDNS_CFLAGS) \
$(LIBISCCFG_CFLAGS) \ $(LIBISCCFG_CFLAGS) \
$(LIBIRS_CFLAGS) \
$(LIBIDN2_CFLAGS) \ $(LIBIDN2_CFLAGS) \
$(LIBUV_CFLAGS) $(LIBUV_CFLAGS)
@@ -13,7 +12,6 @@ LDADD += \
$(LIBISC_LIBS) \ $(LIBISC_LIBS) \
$(LIBDNS_LIBS) \ $(LIBDNS_LIBS) \
$(LIBISCCFG_LIBS) \ $(LIBISCCFG_LIBS) \
$(LIBIRS_LIBS) \
$(LIBIDN2_LIBS) $(LIBIDN2_LIBS)
noinst_LTLIBRARIES = libdighost.la noinst_LTLIBRARIES = libdighost.la

View File

@@ -4,7 +4,6 @@ AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \ $(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \ $(LIBDNS_CFLAGS) \
$(LIBISCCFG_CFLAGS) \ $(LIBISCCFG_CFLAGS) \
$(LIBIRS_CFLAGS) \
$(GSSAPI_CFLAGS) \ $(GSSAPI_CFLAGS) \
$(KRB5_CFLAGS) \ $(KRB5_CFLAGS) \
$(READLINE_CFLAGS) $(READLINE_CFLAGS)
@@ -16,7 +15,6 @@ LDADD += \
$(LIBISC_LIBS) \ $(LIBISC_LIBS) \
$(LIBDNS_LIBS) \ $(LIBDNS_LIBS) \
$(LIBISCCFG_LIBS) \ $(LIBISCCFG_LIBS) \
$(LIBIRS_LIBS) \
$(GSSAPI_LIBS) \ $(GSSAPI_LIBS) \
$(KRB5_LIBS) $(KRB5_LIBS)

View File

@@ -1558,7 +1558,6 @@ AC_CONFIG_FILES([lib/Makefile
lib/isc/Makefile lib/isc/Makefile
lib/dns/Makefile lib/dns/Makefile
lib/ns/Makefile lib/ns/Makefile
lib/irs/Makefile
lib/isccfg/Makefile lib/isccfg/Makefile
lib/isccc/Makefile]) lib/isccc/Makefile])

View File

@@ -272,8 +272,6 @@ libraries.
configuration parser and checker. configuration parser and checker.
* `bind9/lib/isccc`: library implementing the control channel used * `bind9/lib/isccc`: library implementing the control channel used
by `rndc` by `rndc`
* `bind9/lib/irs`: provides mechanisms for reading `/etc/resolv.conf`
and other configuration files.
#### Namespace #### Namespace

View File

@@ -33,6 +33,10 @@ Removed Features
moved to the ``libisc`` and ``libisccfg`` libraries, and the moved to the ``libisc`` and ``libisccfg`` libraries, and the
now-empty ``libbind9`` has been removed and is no longer installed. now-empty ``libbind9`` has been removed and is no longer installed.
- The ``irs_resconf`` module has been moved to the ``libdns`` shared
library and the now-empty ``libirs`` library has been removed and is
no longer installed.
Feature Changes Feature Changes
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~

View File

@@ -1,3 +1,3 @@
include $(top_srcdir)/Makefile.top include $(top_srcdir)/Makefile.top
SUBDIRS = isc dns isccc ns isccfg irs SUBDIRS = isc dns isccc ns isccfg

View File

@@ -142,9 +142,14 @@ dst_HEADERS = \
include/dst/dst.h \ include/dst/dst.h \
include/dst/gssapi.h include/dst/gssapi.h
irsdir = $(includedir)/irs
irs_HEADERS = \
include/irs/resconf.h
libdns_la_SOURCES = \ libdns_la_SOURCES = \
$(libdns_la_HEADERS) \ $(libdns_la_HEADERS) \
$(dst_HEADERS) \ $(dst_HEADERS) \
$(irs_HEADERS) \
acl.c \ acl.c \
adb.c \ adb.c \
badcache.c \ badcache.c \
@@ -212,6 +217,7 @@ libdns_la_SOURCES = \
rdataslab.c \ rdataslab.c \
remote.c \ remote.c \
request.c \ request.c \
resconf.c \
resolver.c \ resolver.c \
result.c \ result.c \
rootns.c \ rootns.c \

View File

@@ -96,13 +96,11 @@ struct irs_resconf {
isc_mem_t *mctx; isc_mem_t *mctx;
isc_sockaddrlist_t nameservers; isc_sockaddrlist_t nameservers;
unsigned int numns; /*%< number of configured servers unsigned int numns; /*%< number of configured servers */
* */
char *domainname; char *domainname;
char *search[RESCONFMAXSEARCH]; char *search[RESCONFMAXSEARCH];
uint8_t searchnxt; /*%< index for next free slot uint8_t searchnxt; /*%< index for next free slot */
* */
irs_resconf_searchlist_t searchlist; irs_resconf_searchlist_t searchlist;

View File

@@ -1,27 +0,0 @@
include $(top_srcdir)/Makefile.top
lib_LTLIBRARIES = libirs.la
libirs_ladir = $(includedir)/irs
libirs_la_HEADERS = \
include/irs/resconf.h
libirs_la_SOURCES = \
$(libirs_la_HEADERS) \
resconf.c
libirs_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LIBISC_CFLAGS) \
$(LIBDNS_CFLAGS) \
$(LIBISCCFG_CFLAGS) \
$(LIBIRS_CFLAGS)
libirs_la_LIBADD = \
$(LIBISC_LIBS) \
$(LIBDNS_LIBS) \
$(LIBISCCFG_LIBS)
libirs_la_LDFLAGS = \
$(AM_LDFLAGS) \
-release "$(PACKAGE_VERSION)"

View File

@@ -1 +0,0 @@
../../../.clang-format.headers

View File

@@ -1 +0,0 @@
../../tests/irs

View File

@@ -2,11 +2,11 @@ include $(top_srcdir)/Makefile.top
AM_CPPFLAGS += \ AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \ $(LIBISC_CFLAGS) \
$(LIBIRS_CFLAGS) $(LIBDNS_CFLAGS)
LDADD += \ LDADD += \
$(LIBISC_LIBS) \ $(LIBISC_LIBS) \
$(LIBIRS_LIBS) $(LIBDNS_LIBS)
check_PROGRAMS = \ check_PROGRAMS = \
resconf_test resconf_test