-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minizip2 2.10.4 #66598
minizip2 2.10.4 #66598
Conversation
Build error:
It seems to conflict with I can turn off |
It appears to be looking for the libzstd.a in the source directory. I have recently changed the 3rd-party libs to build into whatever directory FetchContent creates. |
Thanks for looking at it. I'm not sure that's the problem. The problem is that it's found a |
Is the If it is I can just delete it and I think the build will proceed just fine. |
If it can't find libzstd on the machine it will clone the zstd repository and build it, so it is the built zstd library. |
Ah, I see. Ok. I'll have to look at helping it find the existing zstd library then. Any tips on this would be appreciated, but I imagine I'll figure it out eventually. |
It might be possible to add the BINARY_DIR to the FetchContent_Declare calls in the CMakeLists.txt. It looks like Homebrew is just looking for the file in a particular directory when it goes to package it up. |
It looks like you have cmake set up to use pkg-config to look for libraries. I'll make pkg-config available to the build environment and see if that helps. |
Build scripts don't seem to be able to find zstd without it, and so builds duplicate libraries in the process.
It needs this for liblzma. It will attempt to use the master branch of the liblzma repo otherwise.
Ok, the I've provided a tested lzma library as a dependency, so that should hopefully fix things. Thanks again for the assist, @nmoinvaz. I have to say though -- cloning repos from their master branch to produce libraries that you expect to be there but aren't doesn't seem like a great practice... |
@chenrui333 build failure should be fixed now. |
I agree, it only does that when it does not find the the library installed on the system. It can also be disabled through |
It seems to be off by default here: https://github.com/nmoinvaz/minizip/blob/318e848843667f982f81dbcb72334e415ba482a5/CMakeLists.txt#L34 It even looks like it does the opposite of what the name suggests (though the description does match). It's also not documented. This behaviour has prevented two version bumps here at Homebrew: #64762, #63653 It would be useful for package managers like Homebrew if there were an option to turn off all fetching behaviour. If this option were the default, even better. Apologies for the litany of complaints: I don't have a lot of experience with your fork of minizip but it seems like you've done great work with it. Just thought the feedback could be useful for when you think of things to improve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
🤖 A scheduled task has triggered a merge. |
@carlocab if you can create an issue in minizip project then when I am working on it again next I can take a look. Thanks. |
Created with
brew bump-formula-pr
.