commit: b984147b7ba5abea79959d66c71c33531f706a82
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 19 19:15:39 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 19 19:15:39 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b984147b
net-analyzer/net-snmp: use PERL_FEATURES
Signed-off-by: Sam James <sam <AT> gentoo.org>
...{net-snmp-9999.ebuild => net-snmp-5.9.4-r3.ebuild} | 19 ++++++++++++++-----
net-analyzer/net-snmp/net-snmp-9999.ebuild | 6 +++++-
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/net-analyzer/net-snmp/net-snmp-9999.ebuild
b/net-analyzer/net-snmp/net-snmp-5.9.4-r3.ebuild
similarity index 91%
copy from net-analyzer/net-snmp/net-snmp-9999.ebuild
copy to net-analyzer/net-snmp/net-snmp-5.9.4-r3.ebuild
index 00c163b66b17..febf40f33c04 100644
--- a/net-analyzer/net-snmp/net-snmp-9999.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-5.9.4-r3.ebuild
@@ -4,7 +4,7 @@
EAPI=8
GENTOO_DEPEND_ON_PERL=no
-PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_COMPAT=( python3_{11..13} )
WANT_AUTOMAKE=none
inherit autotools python-single-r1 libtool perl-module systemd
@@ -29,6 +29,7 @@ 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
+ ${GENTOO_PERL_USESTRING}
"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
@@ -44,8 +45,11 @@ COMMON_DEPEND="
netlink? ( dev-libs/libnl:3 )
pcap? ( net-libs/libpcap )
pci? ( sys-apps/pciutils )
- pcre? ( dev-libs/libpcre2 )
- perl? ( dev-lang/perl:= )
+ pcre? ( dev-libs/libpcre )
+ perl? (
+ ${GENTOO_PERL_DEPSTRING}
+ dev-lang/perl:=
+ )
python? (
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
@@ -84,6 +88,12 @@ 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
+ "${FILESDIR}"/${PN}-5.9.4-c99.patch
)
pkg_setup() {
@@ -139,8 +149,7 @@ src_configure() {
$(use_with netlink 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 00c163b66b17..d65374acfeed 100644
--- a/net-analyzer/net-snmp/net-snmp-9999.ebuild
+++ b/net-analyzer/net-snmp/net-snmp-9999.ebuild
@@ -29,6 +29,7 @@ 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
+ ${GENTOO_PERL_USESTRING}
"
REQUIRED_USE="
python? ( ${PYTHON_REQUIRED_USE} )
@@ -45,7 +46,10 @@ COMMON_DEPEND="
pcap? ( net-libs/libpcap )
pci? ( sys-apps/pciutils )
pcre? ( dev-libs/libpcre2 )
- perl? ( dev-lang/perl:= )
+ perl? (
+ ${GENTOO_PERL_DEPSTRING}
+ dev-lang/perl:=
+ )
python? (
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]