Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(pkgsStatic.perl): Patch Perl to avoid duplicate symbols with musl.
This commit backports a commit introduced on Perl 5.39.2 to allow `pkgs.pkgsStatic.perl` to compile without raising errors about duplicate symbols being defined during the linking process. This fixes NixOS#295608 | Tested on | Status | | --- | --- | | M1 Mac (aarch64-darwin) | Failed due to other issues* | | NixOS VM (x86_64-linux) | Compiled | | Nix (aarch64-linux) | Compiled | **Test method**: ```sh nix repl -I nixpkgs=$PWD nix repl> pkgs = import <nixpkgs> {} nix repl> :b pkgs.perl nix repl> :b pkgs.pkgsStatic.perl ``` Despite the upstream commit being scoped to all environments, we are only applying this patch only on the `pkgsStatic` context to avoid rebuilding all of NixOS packages by changing Perl. It includes an additional build flag [also used upstream](Perl/perl5#22052) for configuring static builds. *MacOS: `pkgsStatic.perl` still fails to compile after this change due to MacOS case-insensitiviness affecting the build recipe under /tmp, as `perl-cross/configure` is copied over `perl/Configure` file, as well as not finding `readelf` for the `configurePhase`. NixOS#113985 (comment) NixOS/nix#1446 NixOS/nix#9318 NixOS/nix#8995
- Loading branch information