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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI entry for static Perl #22052

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Add CI entry for static Perl #22052

merged 1 commit into from
Mar 7, 2024

Conversation

Leont
Copy link
Contributor

@Leont Leont commented Feb 28, 2024

No description provided.

@tonycoz
Copy link
Contributor

tonycoz commented Mar 6, 2024

The change itself looks fine, if it was inspired by some sort of issue, like the re build/test issues, this could use a mention in the commit message.

@Leont
Copy link
Contributor Author

Leont commented Mar 6, 2024

The change itself looks fine, if it was inspired by some sort of issue, like the re build/test issues, this could use a mention in the commit message.

No it was the other way around, the re build/test issues were discovered when I wrote this patch.

@tonycoz
Copy link
Contributor

tonycoz commented Mar 6, 2024

No it was the other way around, the re build/test issues were discovered when I wrote this patch.

Ok, I though it might have been inspired by #21550

@Leont Leont merged commit 1d2f32c into blead Mar 7, 2024
60 checks passed
bltavares added a commit to bltavares/nixpkgs-upstream that referenced this pull request Mar 28, 2024
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
bltavares added a commit to bltavares/nixpkgs-upstream that referenced this pull request Apr 1, 2024
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
jcaesar pushed a commit to jcaesar/fork2pr-nixpkgs that referenced this pull request May 17, 2024
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
jcaesar pushed a commit to jcaesar/fork2pr-nixpkgs that referenced this pull request May 18, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants