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
I am using zlib-ng in my project build, packaged via the official Conan recipe. I would like to integrate minizip-ng, which depends on zlib and OpenSSL. OpenSSL also uses zlib. My goal is to replace all zlib dependencies with zlib-ng, as it should be API-compatible when the zlib_compat=True option is set.
However, when I try to install all the dependencies for minizip-ng, I encounter the following error:
Error: minizip-ng/4.0.7: Error in generate() method, line 125
deps.generate()
ConanException: error generating context for 'openssl/3.3.2': Component 'zlib-ng::zlib' not found in 'zlib-ng' package requirement
It seems that using [replace_requires] modifies the component from zlib::zlib to zlib-ng::zlib. However, for the zlib_compat=True option, I believe the component should remain zlib::zlib. This issue also occurs when I try to use OpenSSL directly as a dependency (without involving minizip-ng).
Any guidance or suggestions on resolving this would be greatly appreciated.
Additional Info:
Conan version: 2.9.1
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
What is your question?
Hi,
I am using
zlib-ng
in my project build, packaged via the official Conan recipe. I would like to integrateminizip-ng
, which depends onzlib
andOpenSSL
.OpenSSL
also useszlib.
My goal is to replace allzlib
dependencies withzlib-ng
, as it should be API-compatible when thezlib_compat=True
option is set.I found that this can potentially be achieved using
[replace_requires]
as described in the https://blog.conan.io/2024/02/20/Conan-2-graph-features.html.Build profile:
Host profile:
However, when I try to install all the dependencies for
minizip-ng
, I encounter the following error:It seems that using
[replace_requires
] modifies the component fromzlib::zlib
tozlib-ng::zlib
. However, for thezlib_compat=True
option, I believe the component should remainzlib::zlib
. This issue also occurs when I try to useOpenSSL
directly as a dependency (without involvingminizip-ng
).Any guidance or suggestions on resolving this would be greatly appreciated.
Additional Info:
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: