commit:     9df9fcfa401695f942929df8d4d2a474c8244468
Author:     Z. Liu <zhixu.liu <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 01:21:15 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 01:55:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9df9fcfa

sys-devel/dwz: fix compilation on different locales

otherwise "readelf | grep" will return nothing for non-ascii locales

Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40308
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/dwz/dwz-0.15-r1.ebuild | 2 ++
 sys-devel/dwz/dwz-0.15-r4.ebuild | 2 ++
 sys-devel/dwz/dwz-9999.ebuild    | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/sys-devel/dwz/dwz-0.15-r1.ebuild b/sys-devel/dwz/dwz-0.15-r1.ebuild
index 6ea8c380f942..2b489208a186 100644
--- a/sys-devel/dwz/dwz-0.15-r1.ebuild
+++ b/sys-devel/dwz/dwz-0.15-r1.ebuild
@@ -41,6 +41,8 @@ src_prepare() {
 }
 
 src_compile() {
+       export LANG=C LC_ALL=C  # grep find nothing for non-ascii locales
+
        emake CFLAGS="${CFLAGS}" srcdir="${S}"
 }
 

diff --git a/sys-devel/dwz/dwz-0.15-r4.ebuild b/sys-devel/dwz/dwz-0.15-r4.ebuild
index 1fa3a4e115ac..aff95634ad3b 100644
--- a/sys-devel/dwz/dwz-0.15-r4.ebuild
+++ b/sys-devel/dwz/dwz-0.15-r4.ebuild
@@ -52,6 +52,8 @@ src_prepare() {
 }
 
 src_compile() {
+       export LANG=C LC_ALL=C  # grep find nothing for non-ascii locales
+
        tc-export PKG_CONFIG
 
        export LIBS="-lelf"

diff --git a/sys-devel/dwz/dwz-9999.ebuild b/sys-devel/dwz/dwz-9999.ebuild
index 8e0c26c75f09..7692569e9bca 100644
--- a/sys-devel/dwz/dwz-9999.ebuild
+++ b/sys-devel/dwz/dwz-9999.ebuild
@@ -41,6 +41,8 @@ src_prepare() {
 }
 
 src_compile() {
+       export LANG=C LC_ALL=C  # grep find nothing for non-ascii locales
+
        emake CFLAGS="${CFLAGS}" srcdir="${S}"
 }
 

Reply via email to