]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Change the default for building with net-snmp from `auto` to `no` 13168/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Aug 2023 15:00:17 +0000 (17:00 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 23 Aug 2023 15:05:24 +0000 (17:05 +0200)
We have had a fair amount of issues with `net-snmp` adding unexpected
and unwanted values to both `CXXFLAGS` and `LDFLAGS`, and it was just
reported to also define `HAVE_LIBSSL` is in public header, which messes
up our own feature detection. Therefore it is likely better for everyone
to prevent net-snmp from being enabled without the user intending it.
For our own packages we explicitly enable net-snmp when supported,
and this commit also enables it in our CI for dnsdist (it was already
done for the recursor) so it should not have any impact.

m4/pdns_with_net_snmp.m4
tasks.py

index 08ce13987a2f23bab1b716cf1f823152fa71da90..19102b6cf19fcb971d8d5d71732283eba841d23d 100644 (file)
@@ -1,9 +1,9 @@
 AC_DEFUN([PDNS_WITH_NET_SNMP], [
   AC_MSG_CHECKING([if we need to link in Net SNMP])
   AC_ARG_WITH([net-snmp],
-    AS_HELP_STRING([--with-net-snmp],[enable net snmp support @<:@default=auto@:>@]),
+    AS_HELP_STRING([--with-net-snmp],[enable net snmp support @<:@default=no@:>@]),
     [with_net_snmp=$withval],
-    [with_net_snmp=auto],
+    [with_net_snmp=no],
   )
   AC_MSG_RESULT([$with_net_snmp])
 
index e78e0a55212ecdee766298922886034b23fff910..6115bd4ed5b7a0fae5bdc2661c3a044ac87ee6c9 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -462,6 +462,7 @@ def ci_dnsdist_configure(c, features):
                       --with-libsodium \
                       --with-lua=luajit \
                       --with-libcap \
+                      --with-net-snmp \
                       --with-nghttp2 \
                       --with-re2 '
     else: