commit:     12a35728ae71d82896303bed91bbed175c0d94ee
Author:     Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
AuthorDate: Mon Dec 15 22:13:27 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Dec 16 18:47:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12a35728

sys-libs/libseccomp: define sys-kernel/linux-headers as buildtime dependency

sys-kernel/linux-headers is not required at runtime nor required on
target system when building using sysroot.

Bug: https://bugs.gentoo.org/967554
Signed-off-by: Bertrand Jacquin <bertrand <AT> jacquin.bzh>
Part-of: https://github.com/gentoo/gentoo/pull/45042
Closes: https://github.com/gentoo/gentoo/pull/45042
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .../{libseccomp-2.6.0-r2.ebuild => libseccomp-2.6.0-r3.ebuild}     | 7 ++++---
 sys-libs/libseccomp/libseccomp-9999.ebuild                         | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/sys-libs/libseccomp/libseccomp-2.6.0-r2.ebuild 
b/sys-libs/libseccomp/libseccomp-2.6.0-r3.ebuild
similarity index 98%
rename from sys-libs/libseccomp/libseccomp-2.6.0-r2.ebuild
rename to sys-libs/libseccomp/libseccomp-2.6.0-r3.ebuild
index 526e3ad74651..3c7740707eef 100644
--- a/sys-libs/libseccomp/libseccomp-2.6.0-r2.ebuild
+++ b/sys-libs/libseccomp/libseccomp-2.6.0-r3.ebuild
@@ -28,13 +28,14 @@ IUSE="python static-libs test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+RDEPEND="
+       python? ( ${PYTHON_DEPS} )
+"
 # We need newer kernel headers; we don't keep strict control of the exact
 # version here, just be safe and pull in the latest stable ones. bug #551248
-DEPEND="
+DEPEND="${RDEPEND}
        >=sys-kernel/linux-headers-5.15
-       python? ( ${PYTHON_DEPS} )
 "
-RDEPEND="${DEPEND}"
 BDEPEND="
        ${DEPEND}
        dev-util/gperf

diff --git a/sys-libs/libseccomp/libseccomp-9999.ebuild 
b/sys-libs/libseccomp/libseccomp-9999.ebuild
index 0b4830a11b4b..57bdd4e2999a 100644
--- a/sys-libs/libseccomp/libseccomp-9999.ebuild
+++ b/sys-libs/libseccomp/libseccomp-9999.ebuild
@@ -28,13 +28,14 @@ IUSE="python static-libs test"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
+RDEPEND="
+       python? ( ${PYTHON_DEPS} )
+"
 # We need newer kernel headers; we don't keep strict control of the exact
 # version here, just be safe and pull in the latest stable ones. bug #551248
-DEPEND="
+DEPEND="${RDEPEND}
        >=sys-kernel/linux-headers-5.15
-       python? ( ${PYTHON_DEPS} )
 "
-RDEPEND="${DEPEND}"
 BDEPEND="
        ${DEPEND}
        dev-util/gperf

Reply via email to