diff options
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.16/tzselect-awk.patch')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-2.16/tzselect-awk.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.16/tzselect-awk.patch b/meta/recipes-core/eglibc/eglibc-2.16/tzselect-awk.patch new file mode 100644 index 0000000000..dc9949bec9 --- /dev/null +++ b/meta/recipes-core/eglibc/eglibc-2.16/tzselect-awk.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | tzselect: workaround bug in busybox awk | ||
2 | |||
3 | busybox's version of awk in version 1.20.2 and lower doesn't support | ||
4 | escape sequences in conjunction with the -F option. Use -v FS= instead | ||
5 | as a workaround until the bug is fixed. | ||
6 | |||
7 | Reference: | ||
8 | https://bugs.busybox.net/show_bug.cgi?id=5126 | ||
9 | |||
10 | Upstream-Status: Inappropriate [other] | ||
11 | |||
12 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
13 | |||
14 | --- libc/timezone/tzselect.ksh | ||
15 | +++ libc/timezone/tzselect.ksh | ||
16 | @@ -208,7 +208,7 @@ while | ||
17 | TZ_for_date=$TZ;; | ||
18 | *) | ||
19 | # Get list of names of countries in the continent or ocean. | ||
20 | - countries=$($AWK -F'\t' \ | ||
21 | + countries=$($AWK -v FS="\t" \ | ||
22 | -v continent="$continent" \ | ||
23 | -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ | ||
24 | ' | ||
25 | @@ -252,7 +252,7 @@ while | ||
26 | |||
27 | |||
28 | # Get list of names of time zone rule regions in the country. | ||
29 | - regions=$($AWK -F'\t' \ | ||
30 | + regions=$($AWK -v FS="\t" \ | ||
31 | -v country="$country" \ | ||
32 | -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ | ||
33 | ' | ||
34 | @@ -289,7 +289,7 @@ while | ||
35 | esac | ||
36 | |||
37 | # Determine TZ from country and region. | ||
38 | - TZ=$($AWK -F'\t' \ | ||
39 | + TZ=$($AWK -v FS="\t" \ | ||
40 | -v country="$country" \ | ||
41 | -v region="$region" \ | ||
42 | -v TZ_COUNTRY_TABLE="$TZ_COUNTRY_TABLE" \ | ||