/[gentoo]/xml/htdocs/proj/en/qa/bug103483-configure-LANG.patch.txt
Gentoo

Contents of /xml/htdocs/proj/en/qa/bug103483-configure-LANG.patch.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 19 19:13:43 2010 UTC (4 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +34 -9 lines
File MIME type: text/plain
Update example patch per 310225

1 The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
2 option parsing, it may break.
3
4 http://bugs.gentoo.org/103483
5 http://bugs.gentoo.org/122216
6 http://bugs.gentoo.org/310225
7
8 --- configure
9 +++ configure
10 @@ -54,6 +54,19 @@
11 infodir='${prefix}/info'
12 mandir='${prefix}/man'
13
14 +# NLS nuisances.
15 +for as_var in \
16 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18 + LC_TELEPHONE LC_TIME
19 +do
20 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21 + eval $as_var=C; export $as_var
22 + else
23 + unset $as_var
24 + fi
25 +done
26 +
27 # Initialize some other variables.
28 subdirs=
29 MFLAGS= MAKEFLAGS=
30 @@ -452,16 +463,6 @@
31 esac
32 done
33
34 -# NLS nuisances.
35 -# Only set these to C if already set. These must not be set unconditionally
36 -# because not all systems understand e.g. LANG=C (notably SCO).
37 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
38 -# Non-C LC_CTYPE values break the ctype check.
39 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
40 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
41 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
42 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
43 -
44 # confdefs.h avoids OS command line length limits that DEFS can exceed.
45 rm -rf conftest* confdefs.h
46 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
47 @@ -1850,6 +1850,19 @@
48 # Compiler output produced by configure, useful for debugging
49 # configure, is in ./config.log if it exists.
50
51 +# NLS nuisances.
52 +for as_var in \
53 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
54 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
55 + LC_TELEPHONE LC_TIME
56 +do
57 + if (set +x; test -z "`(eval \$as_var=C; export \$as_var) 2>&1`"); then
58 + eval \$as_var=C; export \$as_var
59 + else
60 + unset \$as_var
61 + fi
62 +done
63 +
64 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
65 for ac_option
66 do

  ViewVC Help
Powered by ViewVC 1.1.20