commit: 1f66f839828b1616a614f3dc158e7c8a096282aa Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Dec 23 12:24:18 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 23 12:28:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f66f839
net-analyzer/net-snmp: add 5.9.5 I've made netlink mandatory as it fails to build w/o it, and upstream commit messages indicate they really expect it to be enabled. Bug: https://bugs.gentoo.org/967885 Signed-off-by: Sam James <sam <AT> gentoo.org> net-analyzer/net-snmp/Manifest | 1 + .../{net-snmp-9999.ebuild => net-snmp-5.9.5.ebuild} | 16 ++++++++++------ net-analyzer/net-snmp/net-snmp-9999.ebuild | 6 +++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest index aa43a146a555..e0ab0b26ded9 100644 --- a/net-analyzer/net-snmp/Manifest +++ b/net-analyzer/net-snmp/Manifest @@ -1,2 +1,3 @@ DIST net-snmp-5.7.3-patches-3.tar.xz 3176 BLAKE2B 1a71d6743afb841f664c6058e32c7c411af62b0f36acd3bb9251804893ed12f462a0c5bab828e309eeec7824def2dca8fa866350b90a62ec4f0df1141b51ecae SHA512 d8a91b9668320a1e19d062eb86dd4d16beb7c2d15ac7ebbb9d2a4bd298af39bbb0a2613504dbb0057cccdec731f08f2308c5a15395e1fbc29bb0611ed8aca636 DIST net-snmp-5.9.4.tar.gz 6681606 BLAKE2B 2f3dfdc4ce2f4d9a1a771a77e0b0c427a89e3de6dc217009df385baabc7d860ca7714fa76360a4d14521f1b88c9c13ad46b25d3975e33e8bc4bce3eb3b27b99d SHA512 a510fa91a21e9ddc86a12fd1d0bc6b356e63f3ea53f184d2e31439004d41d902390664134dc40b3b828eabb4282eaf3da628a07c4d480fa00eff7e700950c423 +DIST net-snmp-5.9.5.tar.gz 6728907 BLAKE2B 4b73221e3ec8e8cdf1abeea4a0cae988a37999cf7d56e9ce7152eab7f6869ac6de764c1c27172d357183f61e324f20d463c64bf724ace307a5581f584879f92a SHA512 a9801dd83cf7a800942327358654977856a20fd16af703c110dfff2b8baa345ea44ed19131b78a2b31076503a9478da91722eefa139783e6908896673d24dbf2 diff --git a/net-analyzer/net-snmp/net-snmp-9999.ebuild b/net-analyzer/net-snmp/net-snmp-5.9.5.ebuild similarity index 92% copy from net-analyzer/net-snmp/net-snmp-9999.ebuild copy to net-analyzer/net-snmp/net-snmp-5.9.5.ebuild index 95d2f1609606..12afb973a78f 100644 --- a/net-analyzer/net-snmp/net-snmp-9999.ebuild +++ b/net-analyzer/net-snmp/net-snmp-5.9.5.ebuild @@ -28,7 +28,7 @@ LICENSE="HPND BSD GPL-2" SLOT="0/40" IUSE=" X bzip2 doc elf kmem ipv6 lm-sensors mfd-rewrites minimal mysql - netlink pcap pci pcre perl python rpm selinux smux ssl tcpd ucd-compat valgrind zlib + pcap pci pcre perl python rpm selinux smux ssl tcpd ucd-compat valgrind zlib ${GENTOO_PERL_USESTRING} " REQUIRED_USE=" @@ -37,15 +37,15 @@ REQUIRED_USE=" " COMMON_DEPEND=" + dev-libs/libnl:3 virtual/libcrypt:= bzip2? ( app-arch/bzip2 ) elf? ( dev-libs/elfutils ) lm-sensors? ( sys-apps/lm-sensors ) mysql? ( dev-db/mysql-connector-c:0= ) - netlink? ( dev-libs/libnl:3 ) pcap? ( net-libs/libpcap ) pci? ( sys-apps/pciutils ) - pcre? ( dev-libs/libpcre2 ) + pcre? ( dev-libs/libpcre ) perl? ( ${GENTOO_PERL_DEPSTRING} dev-lang/perl:= @@ -88,6 +88,11 @@ PATCHES=( "${FILESDIR}"/${PN}-5.8-pcap.patch "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch "${FILESDIR}"/${PN}-5.9-MakeMaker.patch + # https://github.com/net-snmp/net-snmp/pull/493 + "${FILESDIR}"/${PN}-5.9.3-0001-Fix-LDFLAGS-vs-LIBS-ordering.patch + "${FILESDIR}"/${PN}-5.9.3-0002-Tidy-up-net-snmp-config-output.patch + "${FILESDIR}"/${PN}-5.9.3-0003-Prune-Libs.private-entries-in-netsnmp-.pc.in.patch + "${FILESDIR}"/${PN}-5.9.3-0004-Search-for-ltinfo-in-configure-if-needed.patch ) pkg_setup() { @@ -140,11 +145,10 @@ src_configure() { $(use_with elf) \ $(use_with kmem kmem-usage) \ $(use_with mysql) \ - $(use_with netlink nl) \ + --with-nl \ $(use_with pcap) \ $(use_with pci) \ - $(use_with pcre pcre2-8) \ - --without-pcre \ + $(use_with pcre) \ $(use_with perl perl-modules INSTALLDIRS=vendor) \ $(use_with python python-modules) \ $(use_with rpm) \ diff --git a/net-analyzer/net-snmp/net-snmp-9999.ebuild b/net-analyzer/net-snmp/net-snmp-9999.ebuild index 95d2f1609606..6b2c2e5a7379 100644 --- a/net-analyzer/net-snmp/net-snmp-9999.ebuild +++ b/net-analyzer/net-snmp/net-snmp-9999.ebuild @@ -28,7 +28,7 @@ LICENSE="HPND BSD GPL-2" SLOT="0/40" IUSE=" X bzip2 doc elf kmem ipv6 lm-sensors mfd-rewrites minimal mysql - netlink pcap pci pcre perl python rpm selinux smux ssl tcpd ucd-compat valgrind zlib + pcap pci pcre perl python rpm selinux smux ssl tcpd ucd-compat valgrind zlib ${GENTOO_PERL_USESTRING} " REQUIRED_USE=" @@ -37,12 +37,12 @@ REQUIRED_USE=" " COMMON_DEPEND=" + dev-libs/libnl:3 virtual/libcrypt:= bzip2? ( app-arch/bzip2 ) elf? ( dev-libs/elfutils ) lm-sensors? ( sys-apps/lm-sensors ) mysql? ( dev-db/mysql-connector-c:0= ) - netlink? ( dev-libs/libnl:3 ) pcap? ( net-libs/libpcap ) pci? ( sys-apps/pciutils ) pcre? ( dev-libs/libpcre2 ) @@ -140,7 +140,7 @@ src_configure() { $(use_with elf) \ $(use_with kmem kmem-usage) \ $(use_with mysql) \ - $(use_with netlink nl) \ + --with-nl \ $(use_with pcap) \ $(use_with pci) \ $(use_with pcre pcre2-8) \
