[Debian-med-packaging] Bug#962676: libzstd FTBFS for alpha: libc doesn't #define st_mtime

Helmut Grohne helmut at subdivi.de
Thu Jun 11 20:38:05 BST 2020


Source: libzstd
Version: 1.4.5+dfsg-1
Tags: ftbfs patch
User: helmutg at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alpha.patch
Type: text/x-diff
Size: 772 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20200611/4f4cc95d/attachment.patch>


More information about the Debian-med-packaging mailing list