package/syslog-ng: fix build if net-snmp is installed on the host (again)
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Wed, 20 Jan 2021 13:40:07 +0000 (14:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 23 Jan 2021 20:35:41 +0000 (21:35 +0100)
See also commit 4ff6e5239240a4e1bdf73c41d6e9bff9473ec62c which describes the
problem in detail.

The same problem now arises again, because syslog-ng renamed the
--enable-snmp-dest option into --enable-afsnmp. See syslog-ng commit
4537938474771673ef5bd4a9cad7c9a7dc20b7c1, first part of 3.27.1.

Update the configure options passed from Buildroot accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/syslog-ng/syslog-ng.mk

index 6d22883116d01fde6ecaa8ffcec07cb8eb75b6d1..14888d2aedab55e5f5081698bbaf2e0bba1ec272 100644 (file)
@@ -100,10 +100,10 @@ endif
 
 ifeq ($(BR2_PACKAGE_NETSNMP),y)
 SYSLOG_NG_DEPENDENCIES += netsnmp
-SYSLOG_NG_CONF_OPTS += --enable-snmp-dest
+SYSLOG_NG_CONF_OPTS += --enable-afsnmp
 SYSLOG_NG_CONF_OPTS += --with-net-snmp="$(STAGING_DIR)/usr/bin"
 else
-SYSLOG_NG_CONF_OPTS += --disable-snmp-dest
+SYSLOG_NG_CONF_OPTS += --disable-afsnmp
 endif
 
 define SYSLOG_NG_INSTALL_INIT_SYSV