You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/biew/files/biew-610-fix_localedep-1.patch

27 lines
1003 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

The configure script of biew-6.1.0 fails with
Checking for C compiler name ... gcc-Version
if using the de_DE.UTF-8 locale and sys-devel/gcc-4.5.2. It may fail with other
locales and/or compilers, too. The problem occurs due to the fact that the
string “gcc version” written by gcc for gcc -v is translated according to the
language (German in the case mentioned above).
This patch makes sure that the POSIX locale is used when the biew configure
script checks for the name of the compiler. This allows the configure script to
parse the output properly.
nico
diff -Naur biew-610.orig/configure biew-610/configure
--- biew-610.orig/configure 2009-11-13 15:52:36.000000000 +0100
+++ biew-610/configure 2011-01-13 11:11:59.000000000 +0100
@@ -497,7 +497,7 @@
_cdefos="-DDATADIR='\"$_datadir\"'"
-cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
+cc_name=`LC_ALL=POSIX $_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
cc_version=`$_cc -dumpversion`
echocheck "C compiler name"