Skip to content

libressl: fix static build - #535370

Merged
sikmir merged 1 commit into
NixOS:stagingfrom
ruuda:libressl-static
Jun 28, 2026
Merged

sikmir merged 1 commit into
NixOS:stagingfrom
ruuda:libressl-static

Conversation

@ruuda

@ruuda ruuda commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

I broke the static build in #515600 when I introduced the check that guards against executable stack. It iterates the .so files in the build output, but for a static build, there are none, so the glob fails. Thanks @hmenke for reporting this. Fix it by skipping the check for static builds.

(Reviewers, if you are approving this PR, could you please also check this LibreSSL version bump?)

Things done

  • Built on platform:
    • x86_64-linux (and I built pkgsStatic.libressl this time, not just pkgs.libressl)
    • aarch64-linux
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.
  • Follows the automation/AI policy. (Zero AI used.)

I broke the static build when I introduced the check that guards against
executable stack. It iterates the .so files in the build output, but for
a static build, there are none, so the glob fails. Fix this by skipping
the check for static builds.
@ruuda
ruuda requested a review from hmenke June 25, 2026 19:26
@nixpkgs-ci
nixpkgs-ci Bot requested review from fpletz and thoughtpolice June 25, 2026 19:35
@nixpkgs-ci nixpkgs-ci 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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Jun 25, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 26, 2026
@sikmir
sikmir added this pull request to the merge queue Jun 28, 2026
Merged via the queue into NixOS:staging with commit 964949b Jun 28, 2026
31 of 33 checks passed
@ruuda
ruuda deleted the libressl-static branch June 29, 2026 08:20
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: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants