summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Misbakh-Soloviov <mva@gentoo.org>2020-10-02 18:06:17 +0700
committerVadim Misbakh-Soloviov <mva@gentoo.org>2020-10-02 18:06:17 +0700
commitc8e9de88098d4e56b80e93733ddca0661075134f (patch)
tree3c731a35437c993f7f98e0c39132a1b8ee18165a /sys-firmware
parentnet-mail/hyperkitty: Add missing dependency isort (diff)
downloadgentoo-c8e9de88098d4e56b80e93733ddca0661075134f.tar.gz
gentoo-c8e9de88098d4e56b80e93733ddca0661075134f.tar.bz2
gentoo-c8e9de88098d4e56b80e93733ddca0661075134f.zip
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@gentoo.org>
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild8
-rw-r--r--sys-firmware/edk2-ovmf/edk2-ovmf-202008.ebuild8
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 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