bup: allow disabling web support; disable on aarch64-darwin due to #172397#179924
bup: allow disabling web support; disable on aarch64-darwin due to #172397#179924andrew-d wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
twisted only optionally depends on pyopenssl https://github.com/NixOS/nixpkgs/blob/staging-next/pkgs/development/python-modules/twisted/default.nix#L138 If this is fixed with #179844, then we don't need to do anything here. Can you check that? Edit: I just checked this against staging-next and on linux there is no longer a pyopenssl dependency. So it is very likely that this is the same case on darwin and we don't need this PR at all. |
|
@SuperSandro2000 - It's possible that I'm doing this wrong, but... I'm still seeing the evaluation error on |
|
I was only looking at runtime packages. This means it is somewhere a checkInput only like here https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/twisted/default.nix#L122-L138 I would suggest to rather disable pyopenssl tests on darwin than this workaround here. |
Do you mean removing pyopenssl from the diff --git pkgs/development/python-modules/twisted/default.nix pkgs/development/python-modules/twisted/default.nix
index 59011ef1d64..9db5c7e3372 100644
--- pkgs/development/python-modules/twisted/default.nix
+++ pkgs/development/python-modules/twisted/default.nix
@@ -119,7 +119,7 @@ buildPythonPackage rec {
pyhamcrest
]
++ passthru.optional-dependencies.conch
- ++ passthru.optional-dependencies.tls;
+ ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) passthru.optional-dependencies.tls;
checkPhase = ''
export SOURCE_DATE_EPOCH=315532800I can submit this as another PR, if you like that approach better? |
Description of changes
Adds a new configuration flag that allows disabling web support in
bup. This is enabled by default everywhere except aarch64-darwin, where it's disabled so that we're not affected by #172397. This should also unbreak stuff that depends onbuplikegit-annex, which I also tested along with another package fix that I'll submit shortly.(note that I disabled this here, rather than doing something in
tornadopackage, sincebupwill function just fine withouttornadobeing installed as long as you don't try to runbup web, whereas the dependency on thetornadoside comes fromtornado->twisted-> pyOpenSSL, which is harder to unwind since none of those are optional)Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes