From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1366693-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4D55615808C
	for <garchives@archives.gentoo.org>; Fri, 11 Feb 2022 16:57:18 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9CDBDE0857;
	Fri, 11 Feb 2022 16:57:17 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6E999E0857
	for <gentoo-commits@lists.gentoo.org>; Fri, 11 Feb 2022 16:57:17 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 672DA343128
	for <gentoo-commits@lists.gentoo.org>; Fri, 11 Feb 2022 16:57:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DB7F2DC
	for <gentoo-commits@lists.gentoo.org>; Fri, 11 Feb 2022 16:57:13 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1644598625.91941cd1584540b19dd46816b418196fb1358574.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/vanilla-kernel/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-kernel/vanilla-kernel/Manifest sys-kernel/vanilla-kernel/vanilla-kernel-5.4.179.ebuild
X-VCS-Directories: sys-kernel/vanilla-kernel/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 91941cd1584540b19dd46816b418196fb1358574
X-VCS-Branch: master
Date: Fri, 11 Feb 2022 16:57:13 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: acf2bfb7-9761-43ba-921b-115e902055b5
X-Archives-Hash: 55e41abb5ec55ca05ca44f78a7c14def

commit:     91941cd1584540b19dd46816b418196fb1358574
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 11 13:40:44 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 11 16:57:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91941cd1

sys-kernel/vanilla-kernel: Bump to 5.4.179

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/vanilla-kernel/Manifest                 |   2 +
 .../vanilla-kernel/vanilla-kernel-5.4.179.ebuild   | 105 +++++++++++++++++++++
 2 files changed, 107 insertions(+)

diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 1d3ac20c9a2d..338330ad5729 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -56,3 +56,5 @@ DIST linux-5.4.177.tar.sign 991 BLAKE2B d285ee715f43e2fe7aee5556baec4355a479dd14
 DIST linux-5.4.177.tar.xz 112891060 BLAKE2B e9423cdb22aebb95794a9a6c95f9051302effa994c5b75e45d35339d11cd6d501995e093143df5615e622a6fd7bc4821367517afdb85a2907edc085b71d535b5 SHA512 646849ed7373772aebafe2ae32d8fd4641b73799e60785a8978f61722fe5c477fdb6dab53411498562b50a033efe3a381313bd8c73abae98dfa592f99815cfc9
 DIST linux-5.4.178.tar.sign 991 BLAKE2B 3cef045640a0c5de3cc0ee6295d65e236b3fa0e13a42879df350f1e9398eebfa67fd471e1acc72e56617dc6949f513454b2042e7f760dddb0c15ffc5dceb32d6 SHA512 2ef3ae39626d363d79b0ab828261dbc4e9f24c7477de0afaab350edde7fdd77992a3ea7bf201c70b9ff49a5ce81b9164ed5b5ebfee871c17eda349f232cc1b6d
 DIST linux-5.4.178.tar.xz 112888492 BLAKE2B 4492caedee5ee665f8926fafc6077db9e6d84c25af63a68923cba1d920530b0a49264fe83f43f666ab1fdab2211595d255b6edaf49253d1122da5678349a9a9b SHA512 4f9842cbc7394d2010d10129a9772c4c6207d3b12a62c1b52777c5bcd796a169147c3b7cbafc99fac8cce7f35ca160754f565c10bfd953a6858436157c27a72b
+DIST linux-5.4.179.tar.sign 991 BLAKE2B 3774c967791c06ba872128010ec391480011941ff995723f6c9afb1707ffa30c530ec746061a75d392287b70e6fd45c11206749f6a3b655ce5281e7c8ba3ea20 SHA512 891681d1fe6ffd8dada62d5ec3d4e5de1f901952126deafaa0e2c754b903a8865f13cf580b99d50055f1af15476ddf2fa87a394b676b988fd302070d4b273cae
+DIST linux-5.4.179.tar.xz 112895912 BLAKE2B a37ed171cf26d191dfecd8c891efc9f23092ff7b22791756e506b7f201781a1d02394f5f6f607595250da7b846d50f4b9251f088cc83f9acdbf77c434d6729c2 SHA512 36f72c4e9eddaf73be4f32858ed30831da6b79f0b991b97af8ed49d8517afae52e2095f0efed019da78dc2a397dd4aec8bea9d16b866dbdac5c1379f3cf491a8

diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.179.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.179.ebuild
new file mode 100644
index 000000000000..0cc0038429d9
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.4.179.ebuild
@@ -0,0 +1,105 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.4.21
+CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
+GENTOO_CONFIG_VER=5.4.114
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI+="
+	https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
+	https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz
+		-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+	verify-sig? (
+		https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign
+	)
+	amd64? (
+		https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config
+			-> kernel-x86_64.config.${CONFIG_VER}
+	)
+	arm64? (
+		https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config
+			-> kernel-aarch64.config.${CONFIG_VER}
+	)
+	ppc64? (
+		https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config
+			-> kernel-ppc64le.config.${CONFIG_VER}
+	)
+	x86? (
+		https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config
+			-> kernel-i686.config.${CONFIG_VER}
+	)"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+IUSE="debug"
+
+BDEPEND="
+	debug? ( dev-util/pahole )
+	verify-sig? ( sec-keys/openpgp-keys-kernel )"
+PDEPEND="
+	>=virtual/dist-kernel-${PV}"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc
+
+src_unpack() {
+	if use verify-sig; then
+		einfo "Unpacking linux-${PV}.tar.xz ..."
+		verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \
+			< <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x))
+		assert "Unpack failed"
+		unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
+	else
+		default
+	fi
+}
+
+src_prepare() {
+	default
+
+	# prepare the default config
+	case ${ARCH} in
+		amd64)
+			cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die
+			;;
+		arm64)
+			cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die
+			;;
+		ppc)
+			# assume powermac/powerbook defconfig
+			# we still package.use.force savedconfig
+			cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+			;;
+		ppc64)
+			cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die
+			;;
+		x86)
+			cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die
+			;;
+		*)
+			die "Unsupported arch ${ARCH}"
+			;;
+	esac
+
+	echo 'CONFIG_LOCALVERSION="-dist"' > "${T}"/version.config || die
+	local merge_configs=(
+		"${T}"/version.config
+		"${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config
+	)
+	use debug || merge_configs+=(
+		"${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config
+	)
+	[[ ${ARCH} == x86 ]] && merge_configs+=(
+		"${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config
+	)
+
+	kernel-build_merge_configs "${merge_configs[@]}"
+}