diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-04-22 08:01:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-04-22 08:01:47 +0000 |
commit | 6aac1c0e4ce47ebac4056a028544afbc5f94a4ae (patch) | |
tree | 7ee684c94fd11fc4306da7dd9bb04a6c0ad239ca /sys-devel/binutils/files | |
parent | make sure we patch up locale bugs automatically #122216 (diff) | |
download | gentoo-2-6aac1c0e4ce47ebac4056a028544afbc5f94a4ae.tar.gz gentoo-2-6aac1c0e4ce47ebac4056a028544afbc5f94a4ae.tar.bz2 gentoo-2-6aac1c0e4ce47ebac4056a028544afbc5f94a4ae.zip |
fix up locale issues automatically #122216
(Portage version: 2.1_pre9-r1)
Diffstat (limited to 'sys-devel/binutils/files')
-rw-r--r-- | sys-devel/binutils/files/binutils-configure-LANG.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-devel/binutils/files/binutils-configure-LANG.patch b/sys-devel/binutils/files/binutils-configure-LANG.patch new file mode 100644 index 000000000000..8ef31d096206 --- /dev/null +++ b/sys-devel/binutils/files/binutils-configure-LANG.patch @@ -0,0 +1,42 @@ +The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in +option parsing, it may break. + +http://bugs.gentoo.org/103483 +http://bugs.gentoo.org/122216 + +--- configure ++++ configure +@@ -54,6 +54,16 @@ + infodir='${prefix}/info' + mandir='${prefix}/man' + ++# NLS nuisances. ++# Only set these to C if already set. These must not be set unconditionally ++# because not all systems understand e.g. LANG=C (notably SCO). ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ++# Non-C LC_CTYPE values break the ctype check. ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ++ + # Initialize some other variables. + subdirs= + MFLAGS= MAKEFLAGS= +@@ -452,16 +463,6 @@ + esac + done + +-# NLS nuisances. +-# Only set these to C if already set. These must not be set unconditionally +-# because not all systems understand e.g. LANG=C (notably SCO). +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +-# Non-C LC_CTYPE values break the ctype check. +-if test "${LANG+set}" = set; then LANG=C; export LANG; fi +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +- + # confdefs.h avoids OS command line length limits that DEFS can exceed. + rm -rf conftest* confdefs.h + # AIX cpp loses on an empty file, so make sure it contains at least a newline. |