Skip to content
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

nodejs_18: fix build with python312 #324362

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open

Conversation

tie
Copy link
Member

@tie tie commented Jul 3, 2024

Description of changes

Fixes Python 3.12 compatibility for Node.js v18.

Split from #262124 (see #262124 (comment)).

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.

@@ -16,6 +16,8 @@ let
buildPackages = buildPackages // { stdenv = ensureCompatibleCC buildPackages; };
python = python311;
};

python312Patches = callPackage ./python312-v18-patches.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

We're currently pinning Python 3.11 already, can we drop this for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Some of the Python 3.12 commits were backported and released upstream (see https://github.com/nodejs/node/blob/v18.20.3/doc/changelogs/CHANGELOG_V18.md#commits-3), I’m not really sure whether we should be using Python 3.11 instead of fully backporting other changes required for Python 3.12 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want any more rebuilds for this staging-next, in the future we'll want to switch to 3.12.

@K900
Copy link
Contributor

K900 commented Jul 3, 2024

I've cherry-picked the node_22 changes to staging-next, node_18 can go to staging proper.

@tie tie marked this pull request as ready for review July 3, 2024 18:14
@ofborg ofborg bot requested review from cillianderoiste, aduh95 and cko July 3, 2024 19:59
@tie tie changed the title nodejs_{18,22}: fix build nodejs_18: fix build with python312 Jul 4, 2024
@aduh95 aduh95 added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 8, 2024
@emilazy
Copy link
Member

emilazy commented Aug 11, 2024

Needs rebasing. Is this still relevant? I see there was an upstream release on July 8; did that include these fixes?

@tie
Copy link
Member Author

tie commented Aug 12, 2024

I’m working on a larger refactor of the Node.js package and I’ll probably include these patches instead of rebasing this PR.

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

Successfully merging this pull request may close these issues.

4 participants