-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
boost170: Fix cmake files #73940
boost170: Fix cmake files #73940
Conversation
The *-config.cmake files before this commit incorrectly assumed that their location will be in $out/lib, thus leading to incorrect relative paths. Fixes: NixOS#63104
Wow, this a really simple fix! cc @ktf and @arximboldi for feedback |
@ktf @arximboldi ping |
I tried the test from the title and this doesn't seem to fix it:
It does, however, work for |
Hm. That's very weird. Worked for me. I'm gonna check that again. Thanks for trying it out! |
The above only fixes header only libraries for Boost 1.70 and above, since headers and CMake config are in the same output.
...and here's how it tries to find libraries:
It assumes that libraries are also in Edit: I just realized I can only reproduce it with a static build using clang:
|
The following patch works for me:
|
A similar issue: #81004 |
Not using separate outputs with Boost is a bad idea, since the headers alone are 156M:
|
Sorry for my long silence. What is the current status, which commit should I try now? |
(Last time I tried upgrading to a recent |
Relevant PR #85254 |
Hey, what's the status of this? I also experience the issue described in #63104 with this error message in a build:
Just to note anyone who may want to perform the version bump I'm attempting: I'm trying to build |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/could-weve-implemented-multi-output-packages-better/6597/5 |
BTW I confirm now that this PR fixes the issue for me with |
Just wanted to say that both this and #85254 work, as mentioned in #85922 . What I've found out today though, was that with the workaround supplied at: #85922 (comment) Makes (e.g) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Closed in favor of #85254 |
Motivation for this change
Fixes: #63104
The *-config.cmake files before this commit incorrectly assumed that
their location will be in $out/lib, thus leading to incorrect relative
paths.
I used the following derivation to test that the change really makes a difference. Before this commit this doesn't build. (Interestingly enough it already worked with boost171.)
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)