commit: 08a69400ed7aa6f0b3d522f012924f547f31e4bb Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Wed Aug 28 15:07:24 2024 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Wed Aug 28 15:14:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08a69400
sys-boot/refind: fix compilation on different locales Bug: https://bugs.gentoo.org/938580 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> sys-boot/refind/refind-0.14.2-r2.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys-boot/refind/refind-0.14.2-r2.ebuild b/sys-boot/refind/refind-0.14.2-r2.ebuild index 5755a725f1bf..cad032fc658b 100644 --- a/sys-boot/refind/refind-0.14.2-r2.ebuild +++ b/sys-boot/refind/refind-0.14.2-r2.ebuild @@ -41,7 +41,7 @@ checktools() { # llvm-objcopy does not support EFI target, try to use binutils objcopy or fail tc-export OBJCOPY OBJCOPY="${OBJCOPY/llvm-/}" - LANG=C LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target" + LC_ALL=C "${OBJCOPY}" --help | grep -q '\<pei-' || die "${OBJCOPY} (objcopy) does not support EFI target" tc-is-gcc || tc-is-clang || die "Unsupported compiler" fi @@ -106,9 +106,9 @@ src_compile() { # see the comments in "${FILESDIR}"/${P}-fix-freestanding-on-musl.patch tc-export CC if tc-is-gcc; then - local -x CPPINCLUDEDIR=$(LANG=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include + local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-search-dirs 2> /dev/null | grep ^install: | cut -f2 -d' ')/include elif tc-is-clang; then - local -x CPPINCLUDEDIR=$(LANG=C ${CC} -print-resource-dir 2> /dev/null)/include + local -x CPPINCLUDEDIR=$(LC_ALL=C ${CC} -print-resource-dir 2> /dev/null)/include local -x EXTRACFLAGS=-D__DEFINED_wchar_t fi
