Contents of /trunk/traceroute/patches/traceroute-1.4.a.12-configure-lang.patch
Parent Directory | Revision Log
Revision 210 -
(show annotations)
(download)
Thu May 24 09:45:22 2007 UTC (17 years, 4 months ago) by niro
File size: 1684 byte(s)
Thu May 24 09:45:22 2007 UTC (17 years, 4 months ago) by niro
File size: 1684 byte(s)
-security fix
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 | adapted from sys-devel/flex |
5 | |
6 | --- configure |
7 | +++ configure |
8 | @@ -54,6 +54,16 @@ |
9 | infodir='${prefix}/info' |
10 | mandir='${prefix}/man' |
11 | |
12 | +# NLS nuisances. |
13 | +# Only set these to C if already set. These must not be set unconditionally |
14 | +# because not all systems understand e.g. LANG=C (notably SCO). |
15 | +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
16 | +# Non-C LC_CTYPE values break the ctype check. |
17 | +if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
18 | +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
19 | +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
20 | +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
21 | + |
22 | # Initialize some other variables. |
23 | subdirs= |
24 | MFLAGS= MAKEFLAGS= |
25 | @@ -452,16 +463,6 @@ |
26 | esac |
27 | done |
28 | |
29 | -# NLS nuisances. |
30 | -# Only set these to C if already set. These must not be set unconditionally |
31 | -# because not all systems understand e.g. LANG=C (notably SCO). |
32 | -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
33 | -# Non-C LC_CTYPE values break the ctype check. |
34 | -if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
35 | -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
36 | -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
37 | -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
38 | - |
39 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
40 | rm -rf conftest* confdefs.h |
41 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |