Comments (7)
We recently integrated some Windows-specific changes, so please try the latest git version. I'm not aware of any patches needed for building on Windows.
That being said, we're not using Windows ourselves, so we're always happy to integrate improvements for that, as long as they don't break stuff on Unix systems. I'm looking forward to your PR! :)
from libzip.
First of all, thank you for commenting! I'll have to spread the PRs out a little, i think.
I strongly suggest to add Windows CI using something like AppVeyor - like TravisCI, it's free for OSS. Even if Windows isn't a first-class citizen, this way you'd at least get instant feedback. I'd be happy to do this for you, if you wish (and if you're willing to permit the corresponding github webhooks π ).
Just to bring some problems to your attention, please read the follow-up below.
I'm not aware of any patches needed for building on Windows.
The issue with the GCC attribute has already been fixed on master. However, assuming that I didn't miss any Windows-specific mandatory settings, master simply doesn't build - right out the gate. The config header template seems to be missing some variables here. There are other build errors in the
commit with which I'm trying to work (6eb844d ...).
Another issue is the distribution custom commands - one should not assume the existence of xz-utils on any platform. At the very least, one should use find_program
and abort configuration if nothing is found - or make the whole thing optional. Better yet, simply use CPack for packaging. A TGZ generator is readily available with CMake on all platforms (IIRC) - as is a ZIP generator, which I'd prefer for Windows (even if the only reason is basic OS support for the archive type).
Regarding the distcheck
target, unless you're using something like Cygwin (or for a subset of the utilized commands, the PowerShell), there is no way you're writing to /dev/null
, calling rm
or sh
or any other Unix command on Windows. π
as long as they don't break stuff on Unix systems
It'd be useful to know the minimum-viable set of supported platforms and distros. I probably cannot assume that building on Ubuntu and Windows is enough, can I? I couldn't find anything about this in the docs tho.
Some examples currently cannot build on Windows (for instance, norandomopen
uses unistd.h
which isn't available with MSVC). I assume you want them and the regression tests to work cross-platform, correct?
I find that manpage generation on Windows isn't desirable. The real problem is that even HTML documentation generation is dependent on mandoc
. A way to independently generate HTML or manpages could be doxygen, albeit this would introduce a new dependency (which shouldn't be a problem on any reasonable Linux distro or any of the BSDs) and would force one to rewrite documentation in the doxygen format.
from libzip.
Thank you, you touch a lot of interesting points.
As for appveyor, we'd be very happy to have that working for libzip. I have tried setting it up a few months ago, but gave up after about a day of not getting it going correctly. You can still find my .appveyor*
file in the git history, I removed it in f0b8dda. Please note that appveyor currently has different settings directly in its web configuration than were in that file.
Various people have reported success building on Windows, but I guess there are many different ways to build this on various different Windows systems, so please just send patches for what you need fixed.
The dist and distcheck targets are currently only intended to be run on Unix systems. If you want to make them work on Windows too, please go ahead, but I don't think this is high priority.
As for supported systems, we regularly build on travis (Linux, MacOS) and NetBSD, and the releases are also build-tested on Solaris/Illumos. If your changes keep it working on Linux/OSX/Windows that's good enough, we can fix the rest.
As for the test suite: some of our test use library pre-loading to override functions with test functions (especially the AES tests). I'm not sure if that'll work on Windows, and so far we didn't have the aim or the knowledge to get the tests working on Windows, but we'll gladly accept patches.
We're not planning on rewriting the documentation in a different format. The one for the latest release is always available as HTML on libzip.org. Is there a mandoc port for Windows?
Looking forward to your PRs!
from libzip.
For some other needed Windows work, please see https://libzip.org/libzip-discuss/msg00837.html -- we've replaced the Crypto code by using external libraries, that needs a new Windows backend too.
from libzip.
@thokra1 please see my PR for adding appveyor.yml
: #32
from libzip.
See some relevant discussion: microsoft/vcpkg#2973
from libzip.
For finding libzip, use the standard CMake FindPkgConfig module (see e.g. https://cmake.org/cmake/help/v3.11/module/FindPkgConfig.html).
As for the other points, we'll gladly accept PRs, but will not work on this ourselves.
from libzip.
Related Issues (20)
- [1.10.0] failing tests HOT 1
- Allow adding files being appended to by another process. HOT 21
- Regression failure to open empty, encrypted file
- compat.h:170:46: error: β__builtin_strncpyβ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] HOT 1
- Incorrectly created ZIP_EM_TRAD_PKWARE-encrypted entries from sources which have no mtime HOT 2
- Bypassing Linux file cache HOT 8
- ETA for 1.10.1 HOT 4
- adding file to an existing archive change the mode of the archive file HOT 1
- Incorrect .pc file with 1.10.0 versus 1.9.2 HOT 5
- libzip-1.10.1.tar.xz does not match https://github.com/nih-at/libzip/releases/tag/v1.10.1 HOT 1
- Bad archive HOT 1
- Still a corner case failure with if(ENABLE_ZSTD) HOT 1
- change from autotools to cmake decreased library compatibility_version (macOS)
- errno: default is not 0 HOT 10
- Unfriendly for decompressing windos zip, zip_ Open error=21 HOT 2
- Incorrect Progress Progression State - With Fix HOT 1
- Does libzip support "Central Directory Encryption"? HOT 6
- Add a different error code for truncated ZIPs HOT 3
- zip_close failed cause filesystem handle to leak. HOT 3
- How to save or socket an archive from memory? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libzip.