Skip to content

perl540: fix cross compilation#418640

Merged
alyssais merged 1 commit into
NixOS:masterfrom
uninsane:pr-perl540-cross
Jun 22, 2025
Merged

perl540: fix cross compilation#418640
alyssais merged 1 commit into
NixOS:masterfrom
uninsane:pr-perl540-cross

Conversation

@uninsane

Copy link
Copy Markdown
Contributor
  • fixes nix-build -A pkgsCross.aarch64-multiplatform.perl540

cc: @rhelmot as this PR cherry-picks the patch you sent upstream.

tested by deploying a cross system & confirming the xdg-utils binaries (which use perl) still work.

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (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, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@uninsane uninsane requested a review from rhelmot June 21, 2025 06:46
@uninsane uninsane added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jun 21, 2025
@nix-owners nix-owners Bot requested review from marcusramberg, stigtsp and zakame June 21, 2025 06:47
@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 21, 2025
@uninsane uninsane mentioned this pull request Jun 21, 2025
13 tasks
Comment thread pkgs/development/interpreters/perl/interpreter.nix Outdated

@misuzu misuzu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested by building on x86_64-linux

  • pkgsCross.riscv64.perl

@github-actions github-actions Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 21, 2025
Comment thread pkgs/development/interpreters/perl/interpreter.nix Outdated
@misuzu

This comment was marked as outdated.

@uninsane

Copy link
Copy Markdown
Contributor Author

@alyssais I've vendored the patch now. thanks for teaching me about the forge gc pitfalls.

@github-actions github-actions Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jun 21, 2025
@alyssais

Copy link
Copy Markdown
Member

@ofborg build pkgsCross.riscv64.perl540

@alyssais alyssais dismissed their stale review June 22, 2025 06:55

Patch is now vendored.

@alyssais alyssais merged commit a2e1f82 into NixOS:master Jun 22, 2025
27 of 31 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 6, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 6, 2025
Comment on lines +329 to +333
patches = [
# fixes build failure due to missing d_fdopendir/HAS_FDOPENDIR configure option
# https://github.com/arsv/perl-cross/pull/159
./cross-fdopendir.patch
];

@Artturin Artturin Aug 17, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This overrides the patches above

++ lib.optional (crossCompiling && (lib.versionAtLeast version "5.40.0")) ./cross540.patch
, which breaks, for example, ModuleBuild.
:P

Making a PR

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

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants