Skip to content

libpsl: fix static build (fixes nixStatic)#335458

Merged
philiptaron merged 1 commit intoNixOS:masterfrom
Mic92:libpsl
Aug 17, 2024
Merged

libpsl: fix static build (fixes nixStatic)#335458
philiptaron merged 1 commit intoNixOS:masterfrom
Mic92:libpsl

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Aug 17, 2024

We cannot build python statically, so we cannot have it as a runtime dependency

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

We cannot build python statically, so we cannot have it as a runtime
dependency
@Mic92 Mic92 changed the title libpsl: fix static build libpsl: fix static build (fixes nixStatic) Aug 17, 2024
@Mic92 Mic92 requested a review from rhelmot August 17, 2024 20:44
@Mic92 Mic92 mentioned this pull request Aug 17, 2024
13 tasks
@rhelmot
Copy link
Contributor

rhelmot commented Aug 17, 2024

This is probably correct for now, but as mentioned in the other issue we should probably separate the python scripts so that other platforms that can't build python (openbsd was mentioned I think) can build this

@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. labels Aug 17, 2024
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result of nixpkgs-review pr 335458 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • lixStatic
  • lixStatic.dev
2 packages built:
  • nixStatic
  • nixStatic.dev

@philiptaron
Copy link
Contributor

philiptaron commented Aug 17, 2024

Agree with @rhelmot as a follow-on.


# bin/psl-make-dafsa brings a large runtime closure through python3
outputs = [ "bin" "out" "dev" ];
outputs = lib.optional (!stdenv.hostPlatform.isStatic) "bin" ++ [ "out" "dev" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not great as the default output for static is now a different one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but this way avoids rebuilds. Send a PR for the right change, as you see it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants