On 6/11/20 9:38 PM, Helmut Grohne wrote:
Source: libzstd
Version: 1.4.5+dfsg-1
Tags: ftbfs patch
User: helm...@debian.org
Usertags: rebootstrap
libzstd fails to build from source on alpha. programs/util.c has code
that checks whether st_mtime is defined as a macro. If yes, it uses a
struct timespec. Otherwise a struct utimebuf. alpha is the only Debian
architecture that does not define st_mtime (while still providing the
field). The code in libzstd selects the struct utimebuf path and fails,
because that isn't declared.
I don't think that st_mtime is guaranteed to be a macro anywhere.
Therefore libzstd should cope with it not being one. The attached patch
achieves that by special casing alpha. Do you have any better ideas?
Helmut
Thank you a lot for the patch, I am going to apply it and upload
libzstd. And no, I don't have better ideas.
Best regards,
Alex