From c8e9de88098d4e56b80e93733ddca0661075134f Mon Sep 17 00:00:00 2001 From: Vadim Misbakh-Soloviov Date: Fri, 2 Oct 2020 18:06:17 +0700 Subject: sys-firmware/edk2-ovmf: py3-patching is not needed on USE=binary Bug: https://bugs.gentoo.org/746122 Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Vadim Misbakh-Soloviov --- sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild | 8 +++++--- sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'sys-firmware') diff --git a/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild b/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild index 91d22497f89f..0ce07a1b4456 100644 --- a/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild +++ b/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild @@ -96,9 +96,11 @@ pkg_setup() { } src_prepare() { - sed -i -r \ - -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ - "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + if ! use binary; then + sed -i -r \ + -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ + "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + fi if [[ ${PV} != "999999" ]] && use binary; then eapply_user return diff --git a/sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild b/sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild index 4f3c1c5375db..2e326c433bce 100644 --- a/sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild +++ b/sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild @@ -102,9 +102,11 @@ pkg_setup() { } src_prepare() { - sed -i -r \ - -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ - "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + if ! use binary; then + sed -i -r \ + -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ + "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + fi if [[ ${PV} != "999999" ]]; then if use binary; then eapply_user -- cgit v1.2.3-65-gdbad