Skip to content

glibc: use --enable-static-pie only on supported platforms#129004

Merged
Mic92 merged 1 commit intoNixOS:stagingfrom
misuzu:glibc-static-pie-fix
Jul 2, 2021
Merged

glibc: use --enable-static-pie only on supported platforms#129004
Mic92 merged 1 commit intoNixOS:stagingfrom
misuzu:glibc-static-pie-fix

Conversation

@misuzu
Copy link
Contributor

@misuzu misuzu commented Jul 2, 2021

Motivation for this change

#123989 (comment)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase 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.

glibc fails to build for armv7l without this change.
@cole-h
Copy link
Member

cole-h commented Jul 2, 2021

@ofborg eval

(Sorry, ofborg's certs recently had an issue, meaning that it was unable to
react to PRs. This has been fixed, but all PRs filed in this period will need
ofborg to be manually kicked off.)

@misuzu misuzu marked this pull request as ready for review July 2, 2021 20:01
@misuzu misuzu requested a review from Mic92 July 2, 2021 20:01
@Mic92 Mic92 merged commit 6ff28fc into NixOS:staging Jul 2, 2021
@ofborg ofborg bot added the 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. label Jul 2, 2021
@ofborg ofborg bot requested review from Ma27 and edolstra July 2, 2021 20:54
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 2, 2021
@misuzu misuzu deleted the glibc-static-pie-fix branch July 3, 2021 04:12
@vcunat
Copy link
Member

vcunat commented Mar 28, 2022

If I read the announcement for glibc 2.35 right, we'll be able to simply drop the flag, as it should be auto-enabled where supported. /cc PR #165979

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

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants