8000
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In summary, it would be useful for package managers like Homebrew if it were possible to turn off all automatic fetching behaviour. If this were the default, then even better.
At the moment it seems to only be possible to do this for zlib and zstd:
I have added -DMZ_FETCH_LIBS=OFF that should allow you to disable fetching of third-party libraries. I hesitate to
7438
default it to OFF because there may be more people already relying on the way it is even if it isn't ideal.
Thanks for looking into it so quickly. I think the reason you give for not making it default is a good one, and I'm fine with just the option to deactivate it.
It doesn't quite work as expected yet, unfortunately:
==> cmake . -DIconv_IS_BUILT_IN=on -DMZ_FETCH_LIBS=OFF -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/minizip2/2.10.5 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
-- Using CMake version 3.19.1
-- The C compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - found
-- Using ZLIB 1.2.11
-- Using BZIP2 1.0.6
-- Checking for module 'liblzma'
-- No package 'liblzma' found
-- Using LZMA 5.2.5
-- Checking for module 'libzstd'
-- No package 'libzstd' found
-- Fetching zstd https://github.com/facebook/zstd master
It seems it's still trying to fetch zstd even if I've told it not to. Of course, I rigged this environment so that it won't find zstd and lzma just to see how it would behave. It still behaves the way I expect it to when it can find zstd/lzma.
Activity
Add MZ_FETCH_LIBS and MZ_FORCE_FETCH_LIBS options to enable/disable f…
nmoinvaz commentedon Dec 13, 2020
I have added
-DMZ_FETCH_LIBS=OFFthat should allow you to disable fetching of third-party libraries. I hesitate to 7438 default it to OFF because there may be more people already relying on the way it is even if it isn't ideal.Deactivate automatic fetching of missing libraries
carlocab commentedon Dec 14, 2020
Thanks for looking into it so quickly. I think the reason you give for not making it default is a good one, and I'm fine with just the option to deactivate it.
It doesn't quite work as expected yet, unfortunately:
It seems it's still trying to fetch
zstdeven if I've told it not to. Of course, I rigged this environment so that it won't findzstdandlzmajust to see how it would behave. It still behaves the way I expect it to when it can findzstd/lzma.minizip2 2.10.5
Fixed ZSTD still being fetched when MZ_FETCH_LIBS is OFF. #539
nmoinvaz commentedon Dec 29, 2020
Should be resolved now.
carlocab commentedon Dec 29, 2020
Thank you!