commit:     de3f4c4ededefda3220a8dd4c7a8622567ed2584
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 16 18:50:08 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 31 07:10:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de3f4c4e

net-dns/bind: use standard USE=test

USE=test-extra means we lose some of the niceties of emerge ... --with-test-deps
and such.

In order to avoid circular dependencies, use the normal pattern of:
- emerge -v1o --with-test-deps net-dns/bind
- FEATURES=test emerge -v1 net-dns/bind

Bug: https://bugs.gentoo.org/832218
Bug: https://bugs.gentoo.org/930348
Bug: https://bugs.gentoo.org/936568
Bug: https://bugs.gentoo.org/937907
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/bind/bind-9.18.0.ebuild | 7 ++++---
 net-dns/bind/metadata.xml       | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-dns/bind/bind-9.18.0.ebuild b/net-dns/bind/bind-9.18.0.ebuild
index dd465d39879c..a9242a3570fb 100644
--- a/net-dns/bind/bind-9.18.0.ebuild
+++ b/net-dns/bind/bind-9.18.0.ebuild
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
 
+PYTHON_COMPAT=( python3_{8..10} )
 inherit python-any-r1 systemd tmpfiles
 
 MY_PV="${PV/_p/-P}"
@@ -19,7 +19,8 @@ 
SRC_URI="https://downloads.isc.org/isc/bind9/${PV}/${P}.tar.xz";
 LICENSE="MPL-2.0"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~x86 ~amd64-linux ~x86-linux"
-IUSE="+caps dnsrps dnstap doc doh fixed-rrset idn geoip gssapi lmdb selinux 
static-libs test-extra xml"
+IUSE="+caps dnsrps dnstap doc doh fixed-rrset idn geoip gssapi lmdb selinux 
static-libs test xml"
+RESTRICT="!test? ( test )"
 
 DEPEND="
        acct-group/named
@@ -39,7 +40,7 @@ DEPEND="
        xml? ( dev-libs/libxml2 )
 "
 BDEPEND="
-       test-extra? (
+       test? (
                ${PYTHON_DEPS}
                dev-python/pytest
                dev-perl/Net-DNS-SEC

diff --git a/net-dns/bind/metadata.xml b/net-dns/bind/metadata.xml
index 49012f10c364..aa2583bf5543 100644
--- a/net-dns/bind/metadata.xml
+++ b/net-dns/bind/metadata.xml
@@ -15,6 +15,5 @@
                <flag name="gssapi">Enable gssapi support</flag>
                <flag name="json">Enable JSON statistics channel</flag>
                <flag name="lmdb">Enable LMDB support to store configuration 
for 'addzone' zones</flag>
-               <flag name="test-extra">Pulls in extra dependencies for 
additional testing</flag>
        </use>
 </pkgmetadata>

Reply via email to