https://bugs.winehq.org/show_bug.cgi?id=51877
--- Comment #7 from Damjan Jovanovic damjan.jov@gmail.com --- (In reply to Gerald Pfeifer from comment #5)
For some reason, patches/gitapply.sh explicitly checks for BSD gzip and fails if found:
What happens if you remove this check, Damjan?
Apparently the patches apply and it builds perfectly.
Or, maybe question to Zebediah: any chance of finding why this was added originally?
It was added by:
---snip--- commit c594bca17a959351f845ce8713cd4410ba248df9 Author: Michael Müller michael@fds-team.de Date: Thu Jun 5 21:20:54 2014 +0200
Error out in git apply script on *BSD. ---snip---
It could be a bug or missing feature in an old version of FreeBSD that was fixed since. The original gzip imported from NetBSD in 2007 still works (with FreeBSD 13's zlib), so maybe it was some zlib bug or missing feature, or temporary gzip regression in some in-between version. Or older wine-staging used gzip in a different way that broke it at that time.