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

Alex Mestiashvili amestia at rsh2.donotuse.de
Mon Jun 29 14:40:59 BST 2020


On 6/11/20 9:38 PM, Helmut Grohne wrote:
> 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
> 


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



More information about the Debian-med-packaging mailing list