]> git.pld-linux.org Git - packages/glibc.git/blob - glibc-no-bash-nls.patch
Rel 8; fixes from upstream
[packages/glibc.git] / glibc-no-bash-nls.patch
1 --- glibc-2.31/elf/ldd.bash.in.orig     2020-02-01 12:52:50.000000000 +0100
2 +++ glibc-2.31/elf/ldd.bash.in  2020-02-01 14:02:07.365985940 +0100
3 @@ -1,4 +1,4 @@
4 -#!/bin/bash
5 +#!/bin/sh
6  # Copyright (C) 1996-2021 Free Software Foundation, Inc.
7  # This file is part of the GNU C Library.
8  
9 @@ -35,16 +35,16 @@
10    case "$1" in
11    --vers | --versi | --versio | --version)
12      echo 'ldd @PKGVERSION@@VERSION@'
13 -    printf $"Copyright (C) %s Free Software Foundation, Inc.
14 +    printf "Copyright (C) %s Free Software Foundation, Inc.
15  This is free software; see the source for copying conditions.  There is NO
16  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  " "2021"
18 -    printf $"Written by %s and %s.
19 +    printf "Written by %s and %s.
20  " "Roland McGrath" "Ulrich Drepper"
21      exit 0
22      ;;
23    --h | --he | --hel | --help)
24 -    echo $"Usage: ldd [OPTION]... FILE...
25 +    echo "Usage: ldd [OPTION]... FILE...
26        --help              print this help and exit
27        --version           print version information and exit
28    -d, --data-relocs       process data relocations
29 @@ -52,7 +52,7 @@
30    -u, --unused            print unused direct dependencies
31    -v, --verbose           print all information
32  "
33 -    printf $"For bug reporting instructions, please see:\\n%s.\\n" \
34 +    printf "For bug reporting instructions, please see:\\n%s.\\n" \
35        "@REPORT_BUGS_TO@"
36      exit 0
37      ;;
38 @@ -77,15 +77,15 @@
39      shift
40      ;;
41    --v | --ve | --ver)
42 -    echo >&2 $"ldd: option \`$1' is ambiguous"
43 +    echo >&2 "ldd: option \`$1' is ambiguous"
44      exit 1
45      ;;
46    --)          # Stop option processing.
47      shift; break
48      ;;
49    -*)
50 -    echo >&2 'ldd:' $"unrecognized option" "\`$1'"
51 -    echo >&2 $"Try \`ldd --help' for more information."
52 +    echo >&2 'ldd:' "unrecognized option" "\`$1'"
53 +    echo >&2 "Try \`ldd --help' for more information."
54      exit 1
55      ;;
56    *)
57 @@ -121,8 +121,8 @@
58  
59  case $# in
60  0)
61 -  echo >&2 'ldd:' $"missing file arguments"
62 -  echo >&2 $"Try \`ldd --help' for more information."
63 +  echo >&2 'ldd:' "missing file arguments"
64 +  echo >&2 "Try \`ldd --help' for more information."
65    exit 1
66    ;;
67  1)
68 @@ -144,13 +144,13 @@
69       ;;
70    esac
71    if test ! -e "$file"; then
72 -    echo "ldd: ${file}:" $"No such file or directory" >&2
73 +    echo "ldd: ${file}:" "No such file or directory" >&2
74      result=1
75    elif test ! -f "$file"; then
76 -    echo "ldd: ${file}:" $"not regular file" >&2
77 +    echo "ldd: ${file}:" "not regular file" >&2
78      result=1
79    elif test -r "$file"; then
80 -    test -x "$file" || echo 'ldd:' $"\
81 +    test -x "$file" || echo 'ldd:' "\
82  warning: you do not have execution permission for" "\`$file'" >&2
83      RTLD=
84      ret=1
85 @@ -167,7 +167,7 @@
86      1)
87        # This can be a non-ELF binary or no binary at all.
88        nonelf "$file" || {
89 -       echo $" not a dynamic executable" >&2
90 +       echo "  not a dynamic executable" >&2
91         result=1
92        }
93        ;;
94 @@ -175,12 +175,12 @@
95        try_trace "$RTLD" "$file" || result=1
96        ;;
97      *)
98 -      echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2
99 +      echo 'ldd:' ${RTLD} "exited with unknown exit code" "($ret)" >&2
100        exit 1
101        ;;
102      esac
103    else
104 -    echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2
105 +    echo 'ldd:' "error: you do not have read permission for" "\`$file'" >&2
106      result=1
107    fi
108  done
109 --- glibc-2.31/elf/sotruss.sh.orig      2020-02-01 13:38:05.830462075 +0100
110 +++ glibc-2.31/elf/sotruss.sh   2020-02-01 14:06:25.601253626 +0100
111 @@ -1,4 +1,4 @@
112 -#!/bin/bash
113 +#!/bin/sh
114  # Copyright (C) 2011-2021 Free Software Foundation, Inc.
115  # This file is part of the GNU C Library.
116  
117 @@ -29,7 +29,7 @@
118  lib='@PREFIX@/$LIB/audit/sotruss-lib.so'
119  
120  do_help() {
121 -  echo $"Usage: sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
122 +  echo "Usage: sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]
123    -F, --from FROMLIST     Trace calls from objects on FROMLIST
124    -T, --to TOLIST         Trace calls to objects on TOLIST
125  
126 @@ -43,28 +43,28 @@
127        --version           Print program version"
128  
129    echo
130 -  printf $"Mandatory arguments to long options are also mandatory for any corresponding\nshort options.\n"
131 +  printf "Mandatory arguments to long options are also mandatory for any corresponding\nshort options.\n"
132    echo
133  
134 -  printf $"For bug reporting instructions, please see:\\n%s.\\n" \
135 +  printf "For bug reporting instructions, please see:\\n%s.\\n" \
136      "@REPORT_BUGS_TO@"
137    exit 0
138  }
139  
140  do_missing_arg() {
141 -  printf >&2 $"%s: option requires an argument -- '%s'\n" sotruss "$1"
142 -  printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
143 +  printf >&2 "%s: option requires an argument -- '%s'\n" sotruss "$1"
144 +  printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
145    exit 1
146  }
147  
148  do_ambiguous() {
149 -  printf >&2 $"%s: option is ambiguous; possibilities:"
150 +  printf >&2 "%s: option is ambiguous; possibilities:"
151    while test $# -gt 0; do
152      printf >&2 " '%s'" $1
153      shift
154    done
155    printf >&2 "\n"
156 -  printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
157 +  printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
158    exit 1
159  }
160  
161 @@ -72,18 +72,18 @@
162    case "$1" in
163    --v | --ve | --ver | --vers | --versi | --versio | --version)
164      echo "sotruss @PKGVERSION@@VERSION@"
165 -    printf $"Copyright (C) %s Free Software Foundation, Inc.
166 +    printf "Copyright (C) %s Free Software Foundation, Inc.
167  This is free software; see the source for copying conditions.  There is NO
168  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
169  " "2021"
170 -    printf $"Written by %s.\n" "Ulrich Drepper"
171 +    printf "Written by %s.\n" "Ulrich Drepper"
172      exit 0
173      ;;
174    -\? | --h | --he | --hel | --help)
175      do_help
176      ;;
177    --u | --us | --usa | --usag | --usage)
178 -    printf $"Usage: %s [-ef] [-F FROMLIST] [-o FILENAME] [-T TOLIST] [--exit]
179 +    printf "Usage: %s [-ef] [-F FROMLIST] [-o FILENAME] [-T TOLIST] [--exit]
180             [--follow] [--from FROMLIST] [--output FILENAME] [--to TOLIST]
181             [--help] [--usage] [--version] [--]
182             EXECUTABLE [EXECUTABLE-OPTION...]\n" sotruss
183 @@ -131,8 +131,8 @@
184      break
185      ;;
186    -*)
187 -    printf >&2 $"%s: unrecognized option '%c%s'\n" sotruss '-' ${1#-}
188 -    printf >&2 $"Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
189 +    printf >&2 "%s: unrecognized option '%c%s'\n" sotruss '-' ${1#-}
190 +    printf >&2 "Try \`%s --help' or \`%s --usage' for more information.\n" sotruss sotruss
191      exit 1
192      ;;
193    *)
This page took 0.033404 seconds and 3 git commands to generate.