summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-02 15:08:05 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-02 15:08:05 (EST)
commit2d4bc5e8e133f8f353562f01618646cf8e2649e1 (patch)
tree848bdee709966543af83137b50bacb70fe76a457
parent8849a5a9c038cd707b68b0aecbcaa05a4ab594b4 (diff)
ob-buildenv: Set TZ='UTC0'
-rw-r--r--NEWS2
-rw-r--r--src/ob-buildenv.sh1
-rwxr-xr-xtests/exe/ob-buildenv.sh1
3 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c1c25a6..1c835ec 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Utilities:
and "data.tar.gz" files after compression rather than before,
because BusyBox's gzip doesn't preserve modification times.
* ob-buildenv now adds "-ffile-prefix-map" options to CFLAGS and
- CXXFLAGS. It also now sets "LC_ALL='C'".
+ CXXFLAGS. It also now sets "TZ='UTC0'" and "LC_ALL='C'".
* ob-gencontrol now reduces and normalizes binary package dependencies
after substituting variables. Otherwise, substitution variables may
contain dependency restrictions or newline characters that are
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh
index c6e0c8b..0657d09 100644
--- a/src/ob-buildenv.sh
+++ b/src/ob-buildenv.sh
@@ -88,6 +88,7 @@ setup_build_flags()
"-ffile-prefix-map=${PWD}=."
printf "CXXFLAGS='%s %s'\\n" "${CXXFLAGS:-}" \
"-ffile-prefix-map=${PWD}=."
+ printf "TZ='UTC0'\\n"
printf "LC_ALL='C'\\n"
return 0
diff --git a/tests/exe/ob-buildenv.sh b/tests/exe/ob-buildenv.sh
index 463f432..29235c0 100755
--- a/tests/exe/ob-buildenv.sh
+++ b/tests/exe/ob-buildenv.sh
@@ -43,5 +43,6 @@ cmd_is 'ob-buildenv' ob-buildenv <<-EOF
OPK_TOOL_PREFIX='i686-linux-glibc-'
CFLAGS=' -ffile-prefix-map=${PWD}=.'
CXXFLAGS=' -ffile-prefix-map=${PWD}=.'
+ TZ='UTC0'
LC_ALL='C'
EOF