From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 6CC0915800A for ; Thu, 17 Aug 2023 07:49:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AA8F2BC018; Thu, 17 Aug 2023 07:49:26 +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 6CFB92BC018 for ; Thu, 17 Aug 2023 07:49:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 79D7E340775 for ; Thu, 17 Aug 2023 07:49:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13190FC8 for ; Thu, 17 Aug 2023 07:49:24 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1692258523.9f9c3cefd3cdfa58e9fc2eeefe02625a0da53b62.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/xen/xen-4.17.1.ebuild X-VCS-Directories: app-emulation/xen/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 9f9c3cefd3cdfa58e9fc2eeefe02625a0da53b62 X-VCS-Branch: master Date: Thu, 17 Aug 2023 07:49:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9eaaa95a-28bd-4c13-a588-bd326085a167 X-Archives-Hash: 858a170884e9bbc4d613b96071b5f37b commit: 9f9c3cefd3cdfa58e9fc2eeefe02625a0da53b62 Author: Andrew Ammerlaan gentoo org> AuthorDate: Sun Jul 16 08:05:56 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Thu Aug 17 07:48:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9c3cef app-emulation/xen: use secureboot.eclass to sign efi exec Signed-off-by: Andrew Ammerlaan gentoo.org> app-emulation/xen/xen-4.17.1.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app-emulation/xen/xen-4.17.1.ebuild b/app-emulation/xen/xen-4.17.1.ebuild index b72efd743ad1..975fb00f411b 100644 --- a/app-emulation/xen/xen-4.17.1.ebuild +++ b/app-emulation/xen/xen-4.17.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit flag-o-matic mount-boot python-any-r1 toolchain-funcs +inherit flag-o-matic mount-boot python-any-r1 secureboot toolchain-funcs if [[ ${PV} == *9999 ]]; then inherit git-r3 @@ -78,6 +78,7 @@ pkg_setup() { die "Unsupported architecture!" fi fi + use efi && secureboot_pkg_setup } src_prepare() { @@ -169,6 +170,11 @@ src_install() { xen_make DESTDIR="${D}" -C xen install - # make install likes to throw in some extra EFI bits if it built - use efi || rm -rf "${D}/usr/$(get_libdir)/efi" + if use efi; then + secureboot_auto_sign --in-place + else + # make install likes to throw in some extra EFI bits if it built + rm -rf "${D}/usr/$(get_libdir)/efi" + fi + }