commit:     c8e9de88098d4e56b80e93733ddca0661075134f
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  2 11:06:17 2020 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Fri Oct  2 11:06:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e9de88

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 <mva <AT> gentoo.org>

 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(-)

diff --git a/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild 
b/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild
index 91d22497f89..0ce07a1b445 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 4f3c1c5375d..2e326c433bc 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

Reply via email to