commit:     63a96ace9cb4603ce47168500734b93f7fd21ae4
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Dec  9 13:10:16 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 11:25:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63a96ace

net-dns/knot: fix QA implicit function in configure

QA Notice: cpuset_create cpuset_destroy

Used to check cpuset_t in sched.h with NetBSD.
False positive because linux have sched.h too but with cpu_set_t

Closes: https://bugs.gentoo.org/879723
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Closes: https://github.com/gentoo/gentoo/pull/39650
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-dns/knot/knot-3.2.2.ebuild    | 12 ++++++++----
 net-dns/knot/knot-3.2.9-r1.ebuild |  4 ++++
 net-dns/knot/knot-3.4.2-r2.ebuild |  4 ++++
 net-dns/knot/knot-3.4.3-r1.ebuild |  4 ++++
 4 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/net-dns/knot/knot-3.2.2.ebuild b/net-dns/knot/knot-3.2.2.ebuild
index 76430f146b00..d19b7b58777e 100644
--- a/net-dns/knot/knot-3.2.2.ebuild
+++ b/net-dns/knot/knot-3.2.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,6 +12,8 @@ DESCRIPTION="High-performance authoritative-only DNS server"
 HOMEPAGE="https://www.knot-dns.cz/ https://gitlab.nic.cz/knot/knot-dns";
 SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz";
 
+S="${WORKDIR}/${P/_/-}"
+
 LICENSE="GPL-3+"
 SLOT="0/${KNOT_SUBSLOT}"
 KEYWORDS="amd64 ~riscv x86"
@@ -53,8 +55,8 @@ RDEPEND="
        quic? ( net-libs/ngtcp2:=[gnutls] )
        systemd? ( sys-apps/systemd:= )
        xdp? (
-                dev-libs/libbpf:=
-                net-libs/libmnl:=
+               dev-libs/libbpf:=
+               net-libs/libmnl:=
        )
 "
 DEPEND="${RDEPEND}"
@@ -63,7 +65,9 @@ BDEPEND="
        doc? ( dev-python/sphinx )
 "
 
-S="${WORKDIR}/${P/_/-}"
+# Used to check cpuset_t in sched.h with NetBSD.
+# False positive because linux have sched.h too but with cpu_set_t
+QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy )
 
 src_configure() {
        local u

diff --git a/net-dns/knot/knot-3.2.9-r1.ebuild 
b/net-dns/knot/knot-3.2.9-r1.ebuild
index 7a4b327e73e2..c46323b3e1fb 100644
--- a/net-dns/knot/knot-3.2.9-r1.ebuild
+++ b/net-dns/knot/knot-3.2.9-r1.ebuild
@@ -66,6 +66,10 @@ BDEPEND="
        doc? ( dev-python/sphinx )
 "
 
+# Used to check cpuset_t in sched.h with NetBSD.
+# False positive because linux have sched.h too but with cpu_set_t
+QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy )
+
 src_configure() {
        local u
        local my_conf=(

diff --git a/net-dns/knot/knot-3.4.2-r2.ebuild 
b/net-dns/knot/knot-3.4.2-r2.ebuild
index 3e4f6cadbe37..93aa5243b76d 100644
--- a/net-dns/knot/knot-3.4.2-r2.ebuild
+++ b/net-dns/knot/knot-3.4.2-r2.ebuild
@@ -77,6 +77,10 @@ BDEPEND="
        )
 "
 
+# Used to check cpuset_t in sched.h with NetBSD.
+# False positive because linux have sched.h too but with cpu_set_t
+QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy )
+
 src_prepare() {
        default
 

diff --git a/net-dns/knot/knot-3.4.3-r1.ebuild 
b/net-dns/knot/knot-3.4.3-r1.ebuild
index 40e3b8bd878c..3de295a89f70 100644
--- a/net-dns/knot/knot-3.4.3-r1.ebuild
+++ b/net-dns/knot/knot-3.4.3-r1.ebuild
@@ -77,6 +77,10 @@ BDEPEND="
        )
 "
 
+# Used to check cpuset_t in sched.h with NetBSD.
+# False positive because linux have sched.h too but with cpu_set_t
+QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy )
+
 src_prepare() {
        # https://gitlab.nic.cz/knot/knot-dns/-/issues/946
        cat > tests/contrib/test_atomic.c <<-_EOF_ || die

Reply via email to