Repository navigation
Conversation
32e4efd to
8c54948
Compare
|
Added autoconf check for |
Build zlib before ccache so that ccache does not try to use its bundled zlib, which does not compile cleanly on cygwin/msys2. A couple of related PRs for ccache: ccache/ccache#311 ccache/ccache#310 Replace the usage of xzcat/bzcat in archive unpacking with `xz -dc` and `bzip2 -dc` because @ZachBacon had some issues with xzcat trying to compress instead of decompress. When switching msys2 build modes, unset related env vars first, sometimes they can get mixed up for some reason.
|
Hi, yes if the mkstemp check for cygwin is a historical artifact, I would suggest removing it, there are very very few people using old versions of cygwin. If there are macros for cygwin/msys2 versions, I could use those as well, I will look. One case of old cygwin usage, is the original msys (not msys2) there are still a very few people sometimes using the original msys releases. I'll figure out some way to detect all of this, if not by macros then with autoconf. I will try that PR in my environment. |
|
Forgot to say, I will check on the zlib upstream situation as well. The WIDECHAR thing has been around for a while. |
|
zlib appears to not have any bug tracking system or public repo available, I will join their -devel list. |
|
@afbjorklund I tried to research the And this doc: I think we can safely assume that |
It certainly was broken at the time, and most people don't care about text/binary. Maybe it is this commit ? The one with |
Add -Wno-error=implicit-fallthrough, if the compiler supports it, to dev.mk so that zlib will compile with -Werror. Disable -Wdeprecated-declarations in the mkstemp() shim in util.c so that it compiles with -Werror. Stop assuming that mkstemp() is broken on cygwin, I could not find any documentation for this. Fix a couple of erroneous checks in zlib that assume cygwin is the same as win32.
8c54948 to
192f65f
Compare
|
@afbjorklund in regards to the I can find no documentation for this claim, the cygwin documentation says binary files are always created. If it ever did not do this, there is no way to check with a configure test because the behavior would depend on mount point options. For the time being I just removed the check completely in this PR. As for zlib, I'm afraid I hit a dead end. The mailing list is dead and requires confirmation by someone who is not responding. There are public repos or issue tracking. I don't think having these minor changes in the zlib directory would be a big deal for the time being. |
|
@afbjorklund: LGTY? |
|
Thanks, applied on master. Note that the zlib fixes will most likely be lost when we upgrade zlib the next time... |
Add -Wno-error=implicit-fallthrough to dev.mk so that zlib will compile
with -Werror.
Disable -Wdeprecated-declarations in the mkstemp() shim in util.c so
that it compiles with -Werror.
Fix a couple of erroneous checks in zlib that assume cygwin is the same
as win32.