commit:     d97e2b6f2438d5b03262ba2c66aff3a49595e4dd
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Feb 11 19:37:34 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 28 15:26:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d97e2b6f

net-libs/miniupnpc: drop "ipv6" use flag that is not needed

As recently noted in metadata.xml, this USE flag is used to disable test
dependencies that may hang. But since 2017 / version 2.1, this has been
checked at test time by seeing whether ifconfig (and later, ip addr)
report ipv6 support:

https://github.com/miniupnp/miniupnp/commit/b4bbee1df9b9c7c27751fc18a88afb74ada0f4b1

It's not necessary anymore to manually set this. And, perhaps all along
this should have been a src_test probe instead of a USE flag.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/miniupnpc/metadata.xml              | 3 ---
 net-libs/miniupnpc/miniupnpc-2.2.6-r1.ebuild | 3 +--
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/net-libs/miniupnpc/metadata.xml b/net-libs/miniupnpc/metadata.xml
index 4f701bfb3aff..c89549110c7c 100644
--- a/net-libs/miniupnpc/metadata.xml
+++ b/net-libs/miniupnpc/metadata.xml
@@ -8,7 +8,4 @@
        <upstream>
                <remote-id type="github">miniupnp/miniupnp</remote-id>
        </upstream>
-       <use>
-               <flag name="ipv6">Run tests requiring IPv6-enabled 
kernel.</flag>
-       </use>
 </pkgmetadata>

diff --git a/net-libs/miniupnpc/miniupnpc-2.2.6-r1.ebuild 
b/net-libs/miniupnpc/miniupnpc-2.2.6-r1.ebuild
index fc26588ea5ba..8f58e1fc3ffd 100644
--- a/net-libs/miniupnpc/miniupnpc-2.2.6-r1.ebuild
+++ b/net-libs/miniupnpc/miniupnpc-2.2.6-r1.ebuild
@@ -21,7 +21,6 @@ SRC_URI="
 LICENSE="BSD"
 SLOT="0/17"
 KEYWORDS="amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-IUSE="ipv6"
 
 BDEPEND="
        kernel_linux? ( sys-apps/lsb-release )
@@ -57,7 +56,7 @@ src_compile() {
 }
 
 src_test() {
-       emake -j1 HAVE_IPV6=$(usex ipv6) check
+       emake -j1 check
 }
 
 src_install() {

Reply via email to