bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46835: Fwd: Bug#983706: gzip FTBFS on mips64el: FAIL: timestamp


From: Milan Kupcevic
Subject: bug#46835: Fwd: Bug#983706: gzip FTBFS on mips64el: FAIL: timestamp
Date: Fri, 5 Mar 2021 23:40:25 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

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@gmail.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Milan Kupcevic <milan@debian.org>
Date: Mon, 1 Mar 2021 18:52:50 +0800
From: YunQiang Su <wzssyqa@gmail.com>
Reply-To: YunQiang Su <wzssyqa@gmail.com>, 983706@bugs.debian.org
To: Adrian Bunk <bunk@debian.org>
CC: 983706@bugs.debian.org, debian-mips@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]