Skip to content

ecryptfs: enable building without python2 support#84515

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
doronbehar:improve-ecryptfs
May 26, 2020
Merged

ecryptfs: enable building without python2 support#84515
Mic92 merged 1 commit intoNixOS:masterfrom
doronbehar:improve-ecryptfs

Conversation

@doronbehar
Copy link
Copy Markdown
Contributor

Motivation for this change

Since Python2 is EOL I think packages which don't absolutely need python2 shouldn't require them. Specifically for ecryptfs, I opened a bug regarding Python 3 support: https://bugs.launchpad.net/ecryptfs/+bug/1871236

Things done
  • Add a enablePython flag set to false by default that enables building ecryptfs without needing python at all.
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all some binary files (usually in ./result/bin/)
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot requested a review from obadz April 6, 2020 21:32
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Apr 6, 2020
@worldofpeace
Copy link
Copy Markdown
Contributor

@doronbehar We need to check if anything in nixpkgs that (possibly?) depends on ecryptfs doesn't need this feature.

@Mic92
Copy link
Copy Markdown
Member

Mic92 commented Apr 14, 2020

@doronbehar We need to check if anything in nixpkgs that (possibly?) depends on ecryptfs doesn't need this feature.

It is hardly usable to any python package unless toPythonModule is used.

@doronbehar
Copy link
Copy Markdown
Contributor Author

There's also a nixos test: https://github.com/NixOS/nixpkgs/blob/8d6555d423c1407130bc81b8789c632f231c6dd0/nixos/tests/ecryptfs.nix

I think it was successful. Here's the HTML test results: ecryptfs-nixos-test-result.zip

@doronbehar
Copy link
Copy Markdown
Contributor Author

It is hardly usable to any python package unless toPythonModule is used.

Indeed, I just learned that this:

find $(nix-build -E "with import <nixpkgs> {};python3.withPackages (_: [ecryptfs])" -I nixpkgs=$PWD)/lib/ | grep ecryptfs

Doesn't work also without this PR.

@Mic92
Copy link
Copy Markdown
Member

Mic92 commented May 26, 2020

Result of nixpkgs-review pr 84515 1

1 package built:
- ecryptfs

@Mic92 Mic92 merged commit fcea61d into NixOS:master May 26, 2020
@doronbehar doronbehar deleted the improve-ecryptfs branch March 2, 2023 10:38
@Sigmanificient
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants