summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-11 20:02:45 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-11 21:26:08 +0200
commit37298575779654642d37573e35662546bc4532de (patch)
tree9540972714b1a7b00a93c7232067e78938fb3d75 /sys-kernel
parentsys-kernel/gentoo-kernel: Backport CVE-2023-32233 fix to 5.4.242-r2 (diff)
downloadgentoo-37298575779654642d37573e35662546bc4532de.tar.gz
gentoo-37298575779654642d37573e35662546bc4532de.tar.bz2
gentoo-37298575779654642d37573e35662546bc4532de.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.2.14-r2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.14-r2.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index ab271aa4ad99..4b5f9d050b0a 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -24,6 +24,8 @@ DIST genpatches-6.2-15.base.tar.xz 763032 BLAKE2B b933b63ddc6d19f47ba58d5a5884ff
DIST genpatches-6.2-15.extras.tar.xz 3808 BLAKE2B 6134125180afd914169eb329f5d9ec8f3f9fbd3ff61a0266200defdae573a62b39ba557c2a815229344ac762786715a6193ce3cb9c3ed08d07a87d83427ab107 SHA512 857e513619ab77e79461a337c02e9fa9fbb63ee9a837eef438b1e5af3c8c856867c738b0b28f21a8035a5e1b963eb8c13507223ad6a251f5320da67aeaeb595d
DIST genpatches-6.2-16.base.tar.xz 768864 BLAKE2B e852e0feb635be67bbf0da77ca6c946abb4fdad1b7b6a6e72c350b7705c4c1edeaa152f8b5ab70e4089bec80de805dc4a506ca60f74f53d3572b3ad0214bcec8 SHA512 2ea683e51835696d825977f65d93b9c25259f59499669bbddbfadc1573e6510b46e916c4e4922d5c62bd64ecda992615fbdb076f5c50648debfe2f9f05e1974f
DIST genpatches-6.2-16.extras.tar.xz 3812 BLAKE2B ffc7e5852ee193ff8bf364ae77394e10c0d9cf8f21ec4f9886d87803be3f6152e632990be009b68f3910ba3e95d7c2bd30c37d6cbf5c49cccf497dffd12f62a5 SHA512 b17df7f12e2c50bfaab0a0a865e1a7687f058e6b4d6fdcd1b107c690e6869e8ad5c127a51ea64b55ce3dc57d74da05fa075f9d99fb3f0b24dbe6dee5d7fb4402
+DIST genpatches-6.2-17.base.tar.xz 769888 BLAKE2B 517466cee5855a4e48a1d055b32b05f78c04931fe2460c57b5fa1aeabda22fd6063826423b951be57863eb50b849852f0b01c089badc030b2b5016a9d9d96502 SHA512 aefa91753cafe7babb994216e97a817318ca65e76087f176c2fd57cc2a41b8380c56966ad60b56567cf9f33b0b4f6386c143fe10ee78ec708ab6abe3e9d3a3fb
+DIST genpatches-6.2-17.extras.tar.xz 3808 BLAKE2B 901180e014376c5b043259536379814d23e6af899f25e550368bec932dd23a9c8280c68d1690d7420516807e14e55b4758f811a33c1a6a064699b147383510b2 SHA512 486349288c8b0230167b5985d163f60ead8e636c0eb5fa58e8aa99647427133f5780a823f449956d59f3a8f7bb204d4c37f62f062b9e104607a058b48ae158b0
DIST genpatches-6.3-2.base.tar.xz 8036 BLAKE2B 754d46f15ab113a1bae41d154b47c4cde2a93df9dbc4333b93e7d3abc424ef19dca2993c25705020096ab9d500f794a852c4cff68f29907e7667edbec7503ff6 SHA512 45eb038e9118a2feff7625cefc7bbb96ef4fd8fa29fce118943dbd0685075fbf9c525202879abf6308d7e80e94b8e9704799e3c863105add026c86b97314d580
DIST genpatches-6.3-2.extras.tar.xz 3808 BLAKE2B 6eccde5d3591804ef50d800dc7ec4cb8b2192d805832cde3496c519bf4ff0f9eef62a76f1e77677df66a054ed1f1efe341f71b8f86b185b10145de8200bc2c70 SHA512 8d79b8c2eed3c962a4c8fda80934720a2ee1436d4e42d762d3f945972537491f415aa6b3615f7a81a727bbb239cd0277ecfb18c83a90ba57252674bf135b35f8
DIST genpatches-6.3-3.base.tar.xz 9340 BLAKE2B e163214c2f648a410b6253caf1cd2fa60beff29341cfba23674cf41712e11893c1f9574a1bfc4df797e69900a3a3f18e65399f5be720c58ab32c5780a41891c4 SHA512 8d308cac9a26c32688588fc8aa34f6798f5c0334fa01f3b813922ab46f0d53cde6c94a5c71817f929c5fd4f96741380da1d97c6ba6a3a5091549651c32fc99c9
@@ -80,6 +82,10 @@ DIST gentoo-kernel-6.2.14-1.amd64.gpkg.tar 82647040 BLAKE2B c895ead21704cdd0d2f2
DIST gentoo-kernel-6.2.14-1.arm64.gpkg.tar 71802880 BLAKE2B bd9f6c0368ca04f3a7512c4678b1d567bb4f7de336dc631639cd3c256b692464d48e1492911c231d907d189f71fff225d0710b1cbb3cccc5ba1104127c7027e0 SHA512 035ea2e7f7309b1080c58b5490c13bc6908df1ec8f01a286bdea83e15dcfe5f9ce36cb9664e3cf37dbbbd056b85621bda1c42f8ffd91ff77c4d56c392e02d0b8
DIST gentoo-kernel-6.2.14-1.ppc64le.gpkg.tar 63928320 BLAKE2B 8287654a4864994f70124132669cb9eda0cc8397150a44950b9ffe0241af535cd8d7556af67b07b6129e62a567be9678220ed34aadb09f2a9678af536604fa1d SHA512 c3dbaef15e020deee482b696a183da22bd1de2ccb4eb27e8fc5b40b3c49d8e5e0a76b3478e75aea064c84cb03823f05d12360682b59f30fc4db66b2a1801763d
DIST gentoo-kernel-6.2.14-1.x86.gpkg.tar 66519040 BLAKE2B 68dbd8c39de89dd97e8d29774df725cee0d67b74ce4d3c0860e0d7bbfb6564a7ade3a7b3ffecb079b9edb04b6b59ec8a22b668c86826ee64332e204a084abab4 SHA512 8a6b84ac77da67ec74de1a5c95e604d05298beeacf526ce23991c96ae3eeb13714d268d8ece6ee4979967310ebaa8773281c181d1af22cabab87cb6fac0e7549
+DIST gentoo-kernel-6.2.14-r2-1.amd64.gpkg.tar 82626560 BLAKE2B 6d5467f0fb9ab915572a80f3c317b231cbe800a51f0e728793287844e5a83bd519753a9794f41243388351570211810964a9f8fc2d29683f4485252bfd319cad SHA512 7495d2bbf75d7a81cf26b5775d381fe9fb8d83dd97b9488edcb1054b91c1709979effec8102ffcf0195c6e69fe4cb5051779a7936b2480862689a39329829edc
+DIST gentoo-kernel-6.2.14-r2-1.arm64.gpkg.tar 71802880 BLAKE2B 59845eeade429b1a50e09323440e0edbc095b1afa5e7fd5fecbfdc7510a7fc677fbb0b130a46dbebcc553026b8b9847b150cc65fb6e2b99267a33325acad8ad5 SHA512 7f30d43162a1a1bf0283abdaa49014b99be4ae7ebbcd494d6d362a4ec0c934f5a337321d3f988016c9f6372f91a06b64e0a9f41baf7e3f2feb9724e78a4cdf33
+DIST gentoo-kernel-6.2.14-r2-1.ppc64le.gpkg.tar 63918080 BLAKE2B 4398d590f60afc6cb8433d1dd4492bd13266ea02d288e4fcb3caa053126c22cd319e737b56c388f2015e6d6c5d95941b5f118a88dc08c356b9f2d741aa81fa16 SHA512 784eeaffb482b3a44f8dddcaf425b07728ef939c984d941e4354e740ec354afd2982539c05978fbc3108bffd7065c5d721a76ded8b27b5229dedebaf1a9a5ab5
+DIST gentoo-kernel-6.2.14-r2-1.x86.gpkg.tar 66519040 BLAKE2B b780d822df660784c24c1abf626c2c372b45f2320a3e9350cb160a43655ceb7dcc86390822baaa6089d882afa50d2f49c191811bbfe4fc121914503db4ae4535 SHA512 be2bf89283698ecd27cd0c6bc846cb43c2eae8b9e21230aa369172d74f35779b5a01ac5d3e9eed89960bac14445e46ff83e21b4187fdc0ad591847347a12b687
DIST gentoo-kernel-6.3.1-1.amd64.gpkg.tar 83415040 BLAKE2B 25b01c8ce51ae47c9ac32c8eb42b1ba78ed0c889ccc5538f3da96db671b5e4cafac133fb23fec7c2b315e1c5306d68c6c1072189cc6889cd1774ab7ab7a2a241 SHA512 f01cafdc3946fb6583d2412892498320a5ce896cbf3f27d1138de6698478522a68edde3610b22f4b8126ac0907d4cf63f602e71643ed06f8a87ddcc894eeefa8
DIST gentoo-kernel-6.3.1-1.arm64.gpkg.tar 72376320 BLAKE2B 7bcbf05310a57d5d8417b13f94031f6876aa37108c8077a97c6d9e6ef67bc5052527319c0bdb9d470eaf398e6ba719079a8b4a121f900355343366c7ed749d4c SHA512 12ad556ed9b52774485de2e0a625a2fe3557425ad8c3971eb0988ac85ae17cbe4ab1bce5e8360cd28b12bf731edc1f6c8c60fffa86240fb45adc9ac8a7f12341
DIST gentoo-kernel-6.3.1-1.ppc64le.gpkg.tar 64256000 BLAKE2B 4c094238f14f221fd42598b6dde1486e07f0998b51d834428ec294aa027d04e8f9dedf6c5d9129a12bf361ea4f009f5271b8bf542575e5dbc056d14eec4752cd SHA512 33ab3fc05bec10552e58796efaf63ae507af546b6edee2ec6111eca564aba71be1de00a1427386f0102b0cbe10b44e35ec8a2bc44f1d0a799bec7fcc2d85c695
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.14-r2.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.14-r2.ebuild
new file mode 100644
index 000000000000..ff865204fd12
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.14-r2.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 3 ))
+BINPKG=${PF/-bin}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI+="
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+ amd64? (
+ https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+BDEPEND="
+ sys-devel/bc
+ sys-devel/flex
+ virtual/libelf
+ app-alternatives/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ cd "${MY_P}" || die
+ default
+}
+
+src_configure() {
+ # force ld.bfd if we can find it easily
+ local LD="$(tc-getLD)"
+ if type -P "${LD}.bfd" &>/dev/null; then
+ LD+=.bfd
+ fi
+
+ tc-export_build_env
+ local makeargs=(
+ V=1
+
+ HOSTCC="$(tc-getBUILD_CC)"
+ HOSTCXX="$(tc-getBUILD_CXX)"
+ HOSTCFLAGS="${BUILD_CFLAGS}"
+ HOSTLDFLAGS="${BUILD_LDFLAGS}"
+
+ CROSS_COMPILE=${CHOST}-
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ LD="${LD}"
+ AR="$(tc-getAR)"
+ NM="$(tc-getNM)"
+ STRIP=":"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+
+ # we need to pass it to override colliding Gentoo envvar
+ ARCH="$(tc-arch-kernel)"
+
+ O="${WORKDIR}"/modprep
+ )
+
+ mkdir modprep || die
+ cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
+ mv "${BINPKG}"/image/boot "${ED}"/ || die
+ fi
+
+ # strip out-of-source build stuffs from modprep
+ # and then copy built files
+ find modprep -type f '(' \
+ -name Makefile -o \
+ -name '*.[ao]' -o \
+ '(' -name '.*' -a -not -name '.config' ')' \
+ ')' -delete || die
+ rm modprep/source || die
+ cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
+}