diff --git a/net-analyzer/net-snmp/net-snmp-5.9.4-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.9.4-r1.ebuild index 741621409fe05..0125a78a765f5 100644 --- a/net-analyzer/net-snmp/net-snmp-5.9.4-r1.ebuild +++ b/net-analyzer/net-snmp/net-snmp-5.9.4-r1.ebuild @@ -34,7 +34,6 @@ REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) rpm? ( bzip2 zlib ) " -RESTRICT="test" COMMON_DEPEND=" virtual/libcrypt:= @@ -117,6 +116,9 @@ src_prepare() { mv "${WORKDIR}"/patches/0005-Respect-LDFLAGS-properly.patch{,.disabled} || die eapply "${WORKDIR}"/patches/*.patch + # Fails because of our eautoconf call + rm testing/fulltests/default/T000configure_simple || die + default eautoconf @@ -175,6 +177,10 @@ src_compile() { use doc && emake docsdox } +src_test() { + emake -Onone test +} + src_install() { # bug #317965 emake -j1 DESTDIR="${D}" install diff --git a/net-analyzer/net-snmp/net-snmp-9999.ebuild b/net-analyzer/net-snmp/net-snmp-9999.ebuild index 6e33a560b72fc..b7691c93b893f 100644 --- a/net-analyzer/net-snmp/net-snmp-9999.ebuild +++ b/net-analyzer/net-snmp/net-snmp-9999.ebuild @@ -7,7 +7,7 @@ GENTOO_DEPEND_ON_PERL=no PYTHON_COMPAT=( python3_{10..13} ) WANT_AUTOMAKE=none -inherit autotools python-single-r1 perl-module systemd +inherit autotools python-single-r1 libtool perl-module systemd DESCRIPTION="Software for generating and retrieving SNMP data" HOMEPAGE="https://www.net-snmp.org/" @@ -34,7 +34,6 @@ REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) rpm? ( bzip2 zlib ) " -RESTRICT="test" COMMON_DEPEND=" virtual/libcrypt:= @@ -111,9 +110,13 @@ src_prepare() { mv "${WORKDIR}"/patches/0005-Respect-LDFLAGS-properly.patch{,.disabled} || die eapply "${WORKDIR}"/patches/*.patch + # Fails because of our eautoconf call + rm testing/fulltests/default/T000configure_simple || die + default eautoconf + elibtoolize } src_configure() { @@ -169,6 +172,10 @@ src_compile() { use doc && emake docsdox } +src_test() { + emake -Onone test +} + src_install() { # bug #317965 emake -j1 DESTDIR="${D}" install