From de4a000ca6de9e7efec31dccf3844952600dfd2b Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 18 Dec 2006 21:32:50 +0000 Subject: Add patch for configure LANG settings. svn path=/trunk/; revision=16 --- .../ac213-configure-LANG/ac213-configure-LANG.sh | 12 +++++++ patches/ac213-configure-LANG/flex.patch | 41 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 patches/ac213-configure-LANG/ac213-configure-LANG.sh create mode 100644 patches/ac213-configure-LANG/flex.patch diff --git a/patches/ac213-configure-LANG/ac213-configure-LANG.sh b/patches/ac213-configure-LANG/ac213-configure-LANG.sh new file mode 100644 index 0000000..af0b7fd --- /dev/null +++ b/patches/ac213-configure-LANG/ac213-configure-LANG.sh @@ -0,0 +1,12 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Patch all 2.13 configures to be safe +patch_targets() { + fgrep -r --include configure -l "Generated automatically using autoconf version 2.13" "${WORKDIR}" +} + +# This patch is always required +patch_required() { + return 0 +} diff --git a/patches/ac213-configure-LANG/flex.patch b/patches/ac213-configure-LANG/flex.patch new file mode 100644 index 0000000..3ef76ef --- /dev/null +++ b/patches/ac213-configure-LANG/flex.patch @@ -0,0 +1,41 @@ +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 + +--- 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. -- cgit v1.2.3-65-gdbad