Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package net-snmp for openSUSE:Factory checked in at 2023-10-26 17:12:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/net-snmp (Old) and /work/SRC/openSUSE:Factory/.net-snmp.new.24901 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "net-snmp" Thu Oct 26 17:12:08 2023 rev:109 rq:1120200 version:5.9.4 Changes: -------- --- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes 2023-10-24 20:07:59.279719171 +0200 +++ /work/SRC/openSUSE:Factory/.net-snmp.new.24901/net-snmp.changes 2023-10-26 17:12:24.571840825 +0200 @@ -1,0 +2,7 @@ +Fri Oct 20 09:01:42 UTC 2023 - Thorsten Kukuk <[email protected]> + +- net-snmp-5.9.4-systemd-no-utmp.patch: prefer systemd-logind over + utmp to count number of logged in users, utmp is not reliable for + this and has a Y2038 problem (jsc#PED-3144) + +------------------------------------------------------------------- New: ---- net-snmp-5.9.4-systemd-no-utmp.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ net-snmp.spec ++++++ --- /var/tmp/diff_new_pack.mCXCbp/_old 2023-10-26 17:12:25.247865653 +0200 +++ /var/tmp/diff_new_pack.mCXCbp/_new 2023-10-26 17:12:25.247865653 +0200 @@ -64,6 +64,7 @@ Patch14: net-snmp-5.9.4-subagent-set-response.patch Patch15: net-snmp-5.9.4-fixed-python2-bindings.patch Patch16: net-snmp-5.9.4-add-netgroups-functionality.patch +Patch17: net-snmp-5.9.4-systemd-no-utmp.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: autoconf @@ -74,13 +75,13 @@ BuildRequires: procps BuildRequires: python-rpm-macros BuildRequires: rpm-devel +BuildRequires: systemd-devel BuildRequires: systemd-rpm-macros BuildRequires: tcpd-devel Requires: logrotate Requires: perl-SNMP = %{version} Requires: perl-TermReadKey Requires(post): %fillup_prereq -%{?systemd_requires} %if 0%{?netsnmp_with_sensors} BuildRequires: libsensors4-devel %endif ++++++ net-snmp-5.9.4-systemd-no-utmp.patch ++++++ diff -uwr net-snmp-5.9.3.old/agent/Makefile.in net-snmp-5.9.3/agent/Makefile.in --- net-snmp-5.9.3.old/agent/Makefile.in 2022-07-13 23:14:14.000000000 +0200 +++ net-snmp-5.9.3/agent/Makefile.in 2023-06-16 11:31:16.049538400 +0200 @@ -116,7 +116,7 @@ MIBLIB = libnetsnmpmibs.$(LIB_EXTENSION)$(LIB_VERSION) LAGENTLIBS = @LAGENTLIBS@ -LMIBLIBS = @LMIBLIBS@ +LMIBLIBS = @LMIBLIBS@ -lsystemd VAL_LIBS = @VAL_LIBS@ PERLLDOPTS_FOR_APPS = @PERLLDOPTS_FOR_APPS@ PERLLDOPTS_FOR_LIBS = @PERLLDOPTS_FOR_LIBS@ diff -uwr net-snmp-5.9.3.old/agent/mibgroup/host/hr_system.c net-snmp-5.9.3/agent/mibgroup/host/hr_system.c --- net-snmp-5.9.3.old/agent/mibgroup/host/hr_system.c 2022-07-13 23:14:14.000000000 +0200 +++ net-snmp-5.9.3/agent/mibgroup/host/hr_system.c 2023-06-16 10:38:58.916026706 +0200 @@ -79,6 +79,11 @@ #include <sys/sysctl.h> #endif +#ifndef NETSNMP_NO_SYSTEMD +#include <systemd/sd-daemon.h> +#include <systemd/sd-login.h> +#endif + netsnmp_feature_require(date_n_time); #if !defined(UTMP_FILE) && defined(_PATH_UTMP) @@ -686,6 +691,11 @@ struct utmp *utmp_p; #endif +#ifndef NETSNMP_NO_SYSTEMD + if (sd_booted () > 0) + total = sd_get_sessions (NULL); + else { +#endif setutent(); while ((utmp_p = getutent()) != NULL) { #ifndef UTMP_HAS_NO_TYPE @@ -704,6 +714,9 @@ ++total; } endutent(); +#ifndef NETSNMP_NO_SYSTEMD + } +#endif #else /* WIN32 */ /* * TODO - Error checking.
