diff options
author | David Seifert <soap@gentoo.org> | 2022-03-20 18:35:30 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-03-20 18:35:30 +0100 |
commit | abe6b16adc80afe6966567c6b0908fe83af8d033 (patch) | |
tree | 634eb107d57e3f9bdbd5015095905b0906933378 /sys-kernel/linux-headers | |
parent | profiles: mask gcc-8 (diff) | |
download | gentoo-abe6b16adc80afe6966567c6b0908fe83af8d033.tar.gz gentoo-abe6b16adc80afe6966567c6b0908fe83af8d033.tar.bz2 gentoo-abe6b16adc80afe6966567c6b0908fe83af8d033.zip |
sys-kernel/linux-headers: update EAPI 6 -> 7
Closes: https://github.com/gentoo/gentoo/pull/24682
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-kernel/linux-headers')
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-3.18-r1.ebuild (renamed from sys-kernel/linux-headers/linux-headers-3.18.ebuild) | 22 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-4.14-r2.ebuild (renamed from sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild) | 20 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-4.19-r1.ebuild (renamed from sys-kernel/linux-headers/linux-headers-4.19.ebuild) | 23 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-4.4-r1.ebuild (renamed from sys-kernel/linux-headers/linux-headers-4.4.ebuild) | 20 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-4.9-r1.ebuild (renamed from sys-kernel/linux-headers/linux-headers-4.9.ebuild) | 20 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild | 28 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild | 17 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-5.16.ebuild | 14 | ||||
-rw-r--r-- | sys-kernel/linux-headers/linux-headers-5.4-r2.ebuild (renamed from sys-kernel/linux-headers/linux-headers-5.4-r1.ebuild) | 20 |
9 files changed, 102 insertions, 82 deletions
diff --git a/sys-kernel/linux-headers/linux-headers-3.18.ebuild b/sys-kernel/linux-headers/linux-headers-3.18-r1.ebuild index 8b2fb4022b85..184ca9358ef3 100644 --- a/sys-kernel/linux-headers/linux-headers-3.18.ebuild +++ b/sys-kernel/linux-headers/linux-headers-3.18-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa" @@ -11,23 +11,24 @@ detect_version PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" +S="${WORKDIR}/gentoo-headers-base-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/gentoo-headers-base-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { + # avoid kernel-2_src_prepare default - - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch } src_test() { @@ -43,9 +44,10 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die # provided by libdrm (for now?) - rm -rf "${ED}"/$(kernel_header_destdir)/drm + rm -rf "${ED}"/$(kernel_header_destdir)/drm || die } diff --git a/sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild b/sys-kernel/linux-headers/linux-headers-4.14-r2.ebuild index 619e37227597..c2e4b27768e6 100644 --- a/sys-kernel/linux-headers/linux-headers-4.14-r1.ebuild +++ b/sys-kernel/linux-headers/linux-headers-4.14-r2.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa" @@ -11,23 +11,24 @@ detect_version PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" +S="${WORKDIR}/gentoo-headers-base-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/gentoo-headers-base-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { + # avoid kernel-2_src_prepare default - - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch } src_test() { @@ -43,6 +44,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-4.19.ebuild b/sys-kernel/linux-headers/linux-headers-4.19-r1.ebuild index c64043d1577b..dc815ab8f84f 100644 --- a/sys-kernel/linux-headers/linux-headers-4.19.ebuild +++ b/sys-kernel/linux-headers/linux-headers-4.19-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" @@ -12,25 +12,25 @@ PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz https://dev.gentoo.org/~sam/distfiles/gentoo-headers-base-${PV}.tar.xz ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} - ${PATCH_VER:+https://dev.gentoo.org/~sam/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz} -" + ${PATCH_VER:+https://dev.gentoo.org/~sam/distfiles/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" +S="${WORKDIR}/gentoo-headers-base-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/gentoo-headers-base-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { + # avoid kernel-2_src_prepare default - - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PV}/*.patch } src_test() { @@ -46,6 +46,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-4.4.ebuild b/sys-kernel/linux-headers/linux-headers-4.4-r1.ebuild index 619e37227597..c2e4b27768e6 100644 --- a/sys-kernel/linux-headers/linux-headers-4.4.ebuild +++ b/sys-kernel/linux-headers/linux-headers-4.4-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa" @@ -11,23 +11,24 @@ detect_version PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" +S="${WORKDIR}/gentoo-headers-base-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/gentoo-headers-base-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { + # avoid kernel-2_src_prepare default - - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch } src_test() { @@ -43,6 +44,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-4.9.ebuild b/sys-kernel/linux-headers/linux-headers-4.9-r1.ebuild index 22670cf7f55e..689310c20111 100644 --- a/sys-kernel/linux-headers/linux-headers-4.9.ebuild +++ b/sys-kernel/linux-headers/linux-headers-4.9-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa" @@ -11,23 +11,24 @@ detect_version PATCH_VER="1" SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}" +S="${WORKDIR}/gentoo-headers-base-${PV}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/gentoo-headers-base-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { + # avoid kernel-2_src_prepare default - - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}/${PV}"/*.patch } src_test() { @@ -43,6 +44,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild b/sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild index ce31c0eacbdf..08907ac2fb24 100644 --- a/sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild +++ b/sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild @@ -5,7 +5,7 @@ EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" -inherit kernel-2 toolchain-funcs +inherit kernel-2 detect_version PATCH_PV=${PV} # to ease testing new versions against not existing patches @@ -14,25 +14,28 @@ SRC_URI="${KERNEL_URI} ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz} ${PATCH_VER:+https://dev.gentoo.org/~sam/distfiles/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz} " -S="${WORKDIR}"/linux-${PV} +S="${WORKDIR}/linux-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -BDEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PATCH_PV} ) + src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PATCH_PV}/*.patch - - if use elibc_musl ; then - # TODO: May need forward porting to newer versions - eapply "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch - fi + # TODO: May need forward porting to newer versions + use elibc_musl && PATCHES+=( + "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch + ) + # avoid kernel-2_src_prepare default } @@ -43,6 +46,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild b/sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild index 6541482454d5..9d2ebae3daee 100644 --- a/sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild +++ b/sys-kernel/linux-headers/linux-headers-5.15-r3.ebuild @@ -5,7 +5,7 @@ EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" -inherit kernel-2 toolchain-funcs +inherit kernel-2 detect_version PATCH_PV=${PV} # to ease testing new versions against not existing patches @@ -17,7 +17,8 @@ S="${WORKDIR}/linux-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -BDEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" # bug #816762 @@ -31,11 +32,11 @@ src_unpack() { } src_prepare() { - if use elibc_musl ; then - # TODO: May need forward porting to newer versions - eapply "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch - eapply "${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch - fi + # TODO: May need forward porting to newer versions + use elibc_musl && PATCHES+=( + "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch + "${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch + ) # avoid kernel-2_src_prepare default @@ -49,4 +50,6 @@ src_install() { kernel-2_src_install find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-5.16.ebuild b/sys-kernel/linux-headers/linux-headers-5.16.ebuild index 56a633840c3b..5a407e44b3c5 100644 --- a/sys-kernel/linux-headers/linux-headers-5.16.ebuild +++ b/sys-kernel/linux-headers/linux-headers-5.16.ebuild @@ -5,7 +5,7 @@ EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" -inherit kernel-2 toolchain-funcs +inherit kernel-2 detect_version PATCH_PV=${PV} # to ease testing new versions against not existing patches @@ -31,11 +31,11 @@ src_unpack() { } src_prepare() { - if use elibc_musl ; then - # TODO: May need forward porting to newer versions - eapply "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch - eapply "${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch - fi + # TODO: May need forward porting to newer versions + use elibc_musl && PATCHES+=( + "${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch + "${FILESDIR}"/${PN}-5.15-remove-inclusion-sysinfo.h.patch + ) # avoid kernel-2_src_prepare default @@ -49,4 +49,6 @@ src_install() { kernel-2_src_install find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } diff --git a/sys-kernel/linux-headers/linux-headers-5.4-r1.ebuild b/sys-kernel/linux-headers/linux-headers-5.4-r2.ebuild index cd9d9d53db40..be894fb9ad8d 100644 --- a/sys-kernel/linux-headers/linux-headers-5.4-r1.ebuild +++ b/sys-kernel/linux-headers/linux-headers-5.4-r2.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=7 ETYPE="headers" H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa" @@ -14,22 +14,23 @@ SRC_URI="${KERNEL_URI} ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz} ${PATCH_VER:+https://dev.gentoo.org/~sam/distfiles/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz} " +S="${WORKDIR}/linux-${PV}" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" -DEPEND="app-arch/xz-utils +BDEPEND=" + app-arch/xz-utils dev-lang/perl" -RDEPEND="" -S=${WORKDIR}/linux-${PV} +[[ -n ${PATCH_VER} ]] && PATCHES=( "${WORKDIR}"/${PATCH_PV} ) src_unpack() { - unpack ${A} + # avoid kernel-2_src_unpack + default } src_prepare() { - [[ -n ${PATCH_VER} ]] && eapply "${WORKDIR}"/${PATCH_PV}/*.patch - + # avoid kernel-2_src_prepare default } @@ -40,6 +41,7 @@ src_test() { src_install() { kernel-2_src_install - find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete - find "${ED}" -depth -type d -delete 2>/dev/null + find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die + # delete empty directories + find "${ED}" -empty -type d -delete || die } |