2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

add --enable-dnsrps to gitlab CI

enable DNSRPS in the continuous integration tests

this triggered a build failure in OpenBSD; building with DNSRPS
causes arpa/nameser.h to be included, which defines the value
STATUS. that value was then reused in server.c  renaming the
value to STAT corrects the error.
This commit is contained in:
Evan Hunt 2023-03-15 14:05:26 -07:00
parent f43de96460
commit b573d4abf8
2 changed files with 4 additions and 3 deletions

View File

@ -226,6 +226,7 @@ stages:
--enable-developer
--enable-option-checking=fatal
--enable-dnstap
--enable-dnsrps
--with-cmocka
--with-libxml2
--with-json-c

View File

@ -15851,7 +15851,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
dns_view_t *view = NULL;
dns_rdataclass_t rdclass;
char msg[DNS_NAME_FORMATSIZE + 500] = "";
enum { NONE, STATUS, REFRESH, SYNC, DESTROY } opt = NONE;
enum { NONE, STAT, REFRESH, SYNC, DESTROY } opt = NONE;
bool found = false;
bool first = true;
@ -15870,7 +15870,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
}
if (strcasecmp(cmd, "status") == 0) {
opt = STATUS;
opt = STAT;
} else if (strcasecmp(cmd, "refresh") == 0) {
opt = REFRESH;
} else if (strcasecmp(cmd, "sync") == 0) {
@ -15929,7 +15929,7 @@ named_server_mkeys(named_server_t *server, isc_lex_t *lex,
}
CHECK(mkey_refresh(view, text));
break;
case STATUS:
case STAT:
if (!first) {
CHECK(putstr(text, "\n\n"));
}