While working on bug #729806 I discovered a related problem. Currently the ebuild does this in src_configure(): $(use_enable snmp snmp-dest) Yet the configure script actually does only these: --enable-afsnmp Enable afsnmp module (default: auto) [...] --with-net-snmp=path use path to net-snmp-config script The latter should probably be found based on path, but the former should be explicitly enabled or disabled: --- a/app-admin/syslog-ng/syslog-ng-3.28.1-r1.ebuild +++ b/app-admin/syslog-ng/syslog-ng-3.28.1-r1.ebuild @@ -126,7 +126,7 @@ src_configure() { $(use_enable python) $(use_enable redis) $(use_enable smtp) - $(use_enable snmp snmp-dest) + $(use_enable snmp afsnmp) $(use_enable spoof-source) $(use_enable systemd) $(use_enable tcpd tcp-wrapper)
--enable-snmp-dest Enable snmp destination (default: auto) is apparently a holdover from 3.26.1.
ping
Please commit this fix too, thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1348a904272e79f177519434af7fc9dc9036b369 commit 1348a904272e79f177519434af7fc9dc9036b369 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2020-06-28 20:43:52 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2020-06-28 20:45:03 +0000 app-admin/syslog-ng: Fix USE=snmp configure switch Package-Manager: Portage-2.3.103, Repoman-2.3.23 Closes: https://bugs.gentoo.org/729828 Signed-off-by: Jeroen Roovers <jer@gentoo.org> .../{syslog-ng-3.28.1-r1.ebuild => syslog-ng-3.28.1-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thank you Jeroen. I don't use snmp at all, thanks for improving this for all.