-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
libdnf: switch back to default stdenv. #138540
Conversation
This commit message is misleading — what this change does is switch back to the default stdenv, which on most platforms is the gcc stdenv, not the clang one. Could you rephrase it? |
Yeah, you're right. That's better. PR is still in draft form and not quite ready, so I'll add some more details over the next few minutes :) |
65194cc
to
cd9a774
Compare
Result of 2 packages built:
|
cd9a774
to
31b5fa9
Compare
The commit message still doesn't make sense — the version you changed the PR title to is good, can you use that as the commit message too? |
31b5fa9
to
e7f64e6
Compare
e7f64e6
to
5c5db1f
Compare
ugh, sorry. clearly I need more coffee this morning :) |
@ofborg build libdnf.override { stdenv = clangStdenv; } |
Hmm, that appeared not to work. Can I get it to work like this? @ofborg build libdnf.override{stdenv=clangStdenv;} |
Found the issue with darwin on master: #138545 (indeed unrelated to this) |
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.
Tested on x86_64-linux with
nix-build -E 'with import <nixpkgs> {}; libdnf.override { stdenv = clangStdenv; }' -I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/pull/138540/head
Motivation for this change
The only reason this was on GCC was because of some implicit constructor conversion issues that gcc handled without complaining and clang did not.
This commit fixed those:
rpm-software-management/libdnf@fefe0b6
Now that it works on clang, might as well revert back to the default.
Note: I can't currently test this on darwin because libbfd in master seem broken even without my modifications. I just end up with this: https://www.internalfb.com/phabricator/paste/view/P459437194
I did however apply the fefe0b69e8368a8e9ceeed107add174c64f00f5e commit as a patch to 21.05 and was able to also compile it with stdenv.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)