GNU bug report logs -
#46835
Fwd: Debian Bug 983706: gzip FTBFS on mips64el: FAIL: timestamp
Previous Next
Reported by: Milan Kupcevic <milan <at> debian.org>
Date: Sun, 28 Feb 2021 22:43:01 UTC
Severity: normal
Tags: notabug
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 46835 <at> debbugs.gnu.org (full text, mbox):
Hi Paul,
Please take a look at YunQiang's explanation of what is going on.
-------- Forwarded Message --------
Subject: Bug#983706: gzip FTBFS on mips64el: FAIL: timestamp
Resent-Date: Mon, 01 Mar 2021 10:54:34 +0000
Resent-From: YunQiang Su <wzssyqa <at> gmail.com>
Resent-To: debian-bugs-dist <at> lists.debian.org
Resent-CC: Milan Kupcevic <milan <at> debian.org>
Date: Mon, 1 Mar 2021 18:52:50 +0800
From: YunQiang Su <wzssyqa <at> gmail.com>
Reply-To: YunQiang Su <wzssyqa <at> gmail.com>, 983706 <at> bugs.debian.org
To: Adrian Bunk <bunk <at> debian.org>
CC: 983706 <at> bugs.debian.org, debian-mips <at> lists.debian.org
[...]
With some digging, we found the real problem:
mips64 has y2106 problem
the struct stat in asm/stat.h, the timestamp is unsigned int (uint32_t),
so in the SYS_stat, -1 is converted to 0xffffff.
Then in glibc wrapper of stat, 0xffffffff need to convert to int64_t,
then, it is converted to 2016.
So, current, for gzip, we can just ignore the test fails on mips64el.
To solve this problem: I guess that we can wrap `statx' instead of
`stat' in glibc.
Since the timestamp in bits/stat.h is 64bit, there will no ABI broken.
[...]
--
YunQiang Su
This bug report was last modified 3 years and 59 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.