summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch')
-rw-r--r--meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch b/meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch
new file mode 100644
index 0000000000..1477ea2cc5
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.19/timezone-re-written-tzselect-as-posix-sh.patch
@@ -0,0 +1,40 @@
1timezone: re-written tzselect as posix sh
2
3To avoid the bash dependency.
4
5Upstream-Status: Pending
6
7Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
8---
9 timezone/Makefile | 2 +-
10 timezone/tzselect.ksh | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/timezone/Makefile b/timezone/Makefile
14--- a/timezone/Makefile
15+++ b/timezone/Makefile
16@@ -113,7 +113,7 @@ $(testdata)/Asia/Tokyo: asia $(zic-deps)
17
18
19 $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
20- sed -e 's|/bin/bash|$(KSH)|g' \
21+ sed -e 's|/bin/bash|/bin/sh|g' \
22 -e '/TZDIR=/s|\$$(pwd)|$(zonedir)|' \
23 -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \
24 -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \
25diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
26index 9d70691..25f45a8 100644
27--- a/timezone/tzselect.ksh
28+++ b/timezone/tzselect.ksh
29@@ -35,7 +35,7 @@ REPORT_BUGS_TO=tz@iana.org
30
31 # Specify default values for environment variables if they are unset.
32 : ${AWK=awk}
33-: ${TZDIR=`pwd`}
34+: ${TZDIR=$(pwd)}
35
36 # Check for awk Posix compliance.
37 ($AWK -v x=y 'BEGIN { exit 123 }') </dev/null >/dev/null 2>&1
38--
391.8.1.2
40