-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
pythonPackages.dbus-next fails to build #197408
Comments
Just ran into the same problem when updating my system flake. EDIT: bisection in progress, have to do some large builds now:
|
Excerpt from https://gitlab.freedesktop.org/dbus/dbus/-/blob/dbus-1.14.4/NEWS :
which seems to be the change that breaks |
As a workaround, something like this should work: dbus = super.dbus.overrideAttrs (old: rec {
version = "1.14.0";
src = pkgs.fetchurl {
url = "https://dbus.freedesktop.org/releases/dbus/dbus-${version}.tar.xz";
sha256 = "sha256-zNfM43WW4KGVWP1mSNEnKrQ/AR2AyGNa6o/QutWK69Q=";
};
}); |
/nix/store/ymnmr0kr6v2gwwc5rcyv39311gidw9rp-python3.10-dbus-next-0.2.3.drv
failed
Note that the downgrade would undo some security fixes; see PR #195264 |
I see...I'll wait to re-enable qtile then |
Depending on how much value you place on the failing test, something like this worked for me: pypkgs = (python3.override {
packageOverrides = self: super: {
# https://github.com/NixOS/nixpkgs/issues/197408
dbus-next = super.dbus-next.overridePythonAttrs (old: {
checkPhase = builtins.replaceStrings ["not test_peer_interface"] ["not test_peer_interface and not test_tcp_connection_with_forwarding"] old.checkPhase;
});
};
}).pkgs; Modifying the package in a general overlay triggered huge rebuilds for me, so I've just replaced it inside my |
@SFrijters How would you modify the package with a general overlay? Something like this didn't work for me: (self: super: {
python3 = super.python3.override {
packageOverrides = pyself: pysuper: {
dbus-next = pysuper.dbus-next.overridePythonAttrs (old: {
checkPhase = builtins.replaceStrings ["not test_peer_interface"] ["not test_peer_interface and not test_tcp_connection_with_forwarding"] old.checkPhase;
});
};
};
}) |
This global overlay works for me, without annoying rebuilds: self: super: {
python3Packages = super.python3Packages.override {
overrides = pfinal: pprev: {
dbus-next = pprev.dbus-next.overridePythonAttrs (old: {
# temporary fix for https://github.com/NixOS/nixpkgs/issues/197408
checkPhase = builtins.replaceStrings ["not test_peer_interface"] ["not test_peer_interface and not test_tcp_connection_with_forwarding"] old.checkPhase;
});
};
};
} Note, I'm using flake-utils-plus and this is imported in |
I have a similar setup, I have (minus the let bindings I have in my config): nixpkgs.overlays = [
(final: prev: {
python3 = prev.python3.override {
packageOverrides = self: super: {
# https://github.com/NixOS/nixpkgs/issues/197408
dbus-next = super.dbus-next.overridePythonAttrs (old: {
checkPhase = builtins.replaceStrings ["not test_peer_interface"] ["not test_peer_interface and not test_tcp_connection_with_forwarding"] old.checkPhase;
});
};
};
})
...
]; @Panadestein So I don't see the difference between our configs... |
Somehow, the overlay proposed by @arjan-s worked. This reaches about the limits of my Nix knowledge, but maybe |
Fixes NixOS#197408 Co-authored-by: @SFrijters
Fixes #197408 Co-authored-by: @SFrijters (cherry picked from commit 78c370a)
Steps To Reproduce
Try building
qtile-0.22.1
Build log
Details
Metadata
The text was updated successfully, but these errors were encountered: