-
Notifications
You must be signed in to change notification settings - Fork 697
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
Project that builds successfully in version 3.6.2.0 fails in version 3.8.1.0: "libcrypto-any, not found in the pkg-config database" #8446
Comments
@ulysses4ever I'm a bit confused, because it looks like #7621 is merged. Did it not make it into 3.8.1.0? Or was 3.6.2.0 doing some hack to get around this? Like was I actually falling back to a non-pkg-config flag and it was just working anyway? |
"Before, if there was no pkg-config that could be found, the solver would optimistically succeed" So it would be due to that if this failure occurs because pkg-config is not present or perhaps finding the package in pkg-config fails due to the name not being exactly correct. |
@gbaz I don't know much about pkg-config or even why we're using it in this project (I'm relatively new on this project) but is what you're saying that this our project is broken in some way, and 3.6.2.0 somehow worked around it, whereas 3.8.1.0 is more strict? |
Sorry I'm quite dumb. It seems when making this report I accidentally hadn't entered a I guess 3.6.2.0 worked around this when doing dependency solving but 3.8.1.0 is probably CORRECTLY rejecting the build. I'm happy to consider this closed. |
I bumped into similar problem on FreeBSD, except the rejection is incorrect. The error I get is
However, Running with
Removing the
|
It looks like cabal is trying to find libevent, and the broken avahi-app package prevents it from finding it? I.e. the broken pc file breaks pkg-config-depends in general? |
avahi-libevent.pc has However, the library I'm building doesn't depend on libevent, nor on avahi. Cabal's error message is about atk and pkg-config return correct results for this package. The problem is that Cabal somehow queries all pkg-config packages and if one of them is broken it thinks that nothing was found at all. |
Another problem with different Haskell package:
The package doesn't use any of |
Wait why does the first package succeed when there's still a broken pc for gtest apparently, and only the second package fail? |
These are different machines. The first one was building in a clean and isolated environment with only required dependencies installed. The last one is on my laptop, which also has unrelated stuff installed. |
Should this issue be reopened, or it is better to open a new one? |
better a new one imho. |
In the CI for Agda, we are also seeing regressions when upgrading cabal-install from 3.6.2.0 to 3.8.1.0:
Note that we do set I suppose this is a regression introduced by: |
Describe the bug
Upon updating cabal from 3.6.2.0 to 3.8.1.0, I get this bizarre error:
I am intentionally using the
+use-pkg-config
flag, with the following in mycabal.project
file:cabal version 3.6.2.0 happily builds though.
To Reproduce
Steps to reproduce the behavior:
I'm not sure what difference using
v2-build
makes, butcabal v2-build all
produces the same error.Expected behavior
The build working like it does for cabal 3.6.2.0
System information
Additional context
As this is propriety software it may be a bit tricky to give you a full reproducible example
The text was updated successfully, but these errors were encountered: