aports/main/busybox/0022-tests-musl-doesn-t-seem-to-recognize-UTC0-as-a-timez.patch
Sören Tempel 531e69840c main/busybox: upgrade to 1.37.0
Not a lot of big changes in this release, mostly code shrinks and bug
fixes here and there. Hence, I don't expect too much breakage. Most patches
applied as is and didn't require any changes either. Nonetheless, I
rebased the entire patchset and removed patches that were backported.

The 0001-modutils-check-ELF-header-before-calling-finit_modul.patch
should be superseded by an upstream modutils change which checks that
if the loaded module file path ends in .ko and if not attempts to
uncompress it first. Thereby preventing compressed modules to be
passed to the kernel and causing a weird error to be emitted. Therefore,
this patch was removed

See: https://git.busybox.net/busybox/commit/?id=af5277f883e8fc2e0236aa9ecc5115ecaffd0ccb
2024-10-20 10:16:15 +00:00

37 lines
1.2 KiB
Diff

From 0ac589c33ca701c300b3d19829abf460de54dba8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
Date: Wed, 4 Jan 2023 08:04:07 +0100
Subject: [PATCH] tests: musl doesn't seem to recognize UTC0 as a timezone
UTC works though.
TODO: Figure out if musl /should/ regonize UTC0.
---
testsuite/date/date-timezone | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testsuite/date/date-timezone b/testsuite/date/date-timezone
index 8628aa1d7..720ce4f26 100644
--- a/testsuite/date/date-timezone
+++ b/testsuite/date/date-timezone
@@ -1,17 +1,17 @@
# FEATURE: CONFIG_FEATURE_TIMEZONE
# 'Z' is UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5Z')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5Z')
dt=$(echo "$dt" | cut -b1-19)
test x"$dt" = x"Sat Jan 2 03:04:05"
# '+0600' is six hours ahead of UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5 +0600')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5 +0600')
dt=$(echo "$dt" | cut -b1-19)
test x"$dt" = x"Fri Jan 1 21:04:05"
# '-0600' is six hours behind UTC
-dt=$(TZ=UTC0 busybox date -d '1999-1-2 3:4:5 -0600')
+dt=$(TZ=UTC busybox date -d '1999-1-2 3:4:5 -0600')
dt=$(echo "$dt" | cut -b1-19)
test x"$dt" = x"Sat Jan 2 09:04:05"