commit:     1228ce0c5b683ffde567bbf535a96ac96d546af4
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 15 04:37:36 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Oct 15 04:37:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1228ce0c

sys-boot/gnu-efi: fix building on llvm profile

The llvm profile does not have sys-devel/binutils.
Remove the check from pkg_pretend, before it being installed.

Bug: https://bugs.gentoo.org/940728
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild 
b/sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild
index d3d5d12d57b7..d42c0ae837f4 100644
--- a/sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild
+++ b/sys-boot/gnu-efi/gnu-efi-3.0.18-r5.ebuild
@@ -61,18 +61,18 @@ check_and_set_objcopy() {
        fi
 }
 
-check_comppiler() {
+check_compiler() {
        if [[ ${MERGE_TYPE} != "binary" ]]; then
                tc-is-gcc || tc-is-clang || die "Unsupported compiler"
        fi
 }
 
 pkg_pretend() {
-       check_comppiler
-       check_and_set_objcopy
+       check_compiler
 }
 
 pkg_setup() {
+       check_compiler
        check_and_set_objcopy
 }
 

Reply via email to