Skip to content

various: yet more ld64 hardening workarounds - #538151

Merged
vcunat merged 6 commits into
NixOS:staging-nextfrom
emilazy:push-tqrmnlttvwlv
Jul 4, 2026
Merged

vcunat merged 6 commits into
NixOS:staging-nextfrom
emilazy:push-tqrmnlttvwlv

Conversation

@emilazy

@emilazy emilazy commented Jul 3, 2026

Copy link
Copy Markdown
Member

Things done

@emilazy
emilazy force-pushed the push-tqrmnlttvwlv branch from fb3a0e2 to 7a83e82 Compare July 3, 2026 16:12
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 6.topic: python Python is a high-level, general-purpose programming language. labels Jul 3, 2026
@FliegendeWurst FliegendeWurst added the 6.topic: darwin Running or building packages on Darwin label Jul 3, 2026
@doronbehar

Copy link
Copy Markdown
Contributor

Just to help me understand better the context: What is the change you would have applied on staging?

@vcunat

vcunat commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

Nothing in the individual packages, I think, i.e. these commits will get reverted.

@doronbehar

Copy link
Copy Markdown
Contributor

Nothing in the individual packages, I think, i.e. these commits will get reverted.

I see. Can we spot the changes made in staging that fix the issues in these individual packages? I just want to track that broad fix via https://nixpkgs-tracker.ocfox.me/ so I'll know when to remove them the time comes. (I'm also curios what issue was that exactly and what was its fix).

@emilazy

emilazy commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

I will revert these myself in #536365.

@vcunat

vcunat commented Jul 3, 2026

Copy link
Copy Markdown
Member

@vcunat
vcunat added this pull request to the merge queue Jul 4, 2026
Merged via the queue into NixOS:staging-next with commit 24f2ce1 Jul 4, 2026
28 checks passed
@emilazy
emilazy deleted the push-tqrmnlttvwlv branch July 4, 2026 13:45
@sempiternal-aurora sempiternal-aurora mentioned this pull request Jul 10, 2026
2 of 13 tasks
prismatic-koi added a commit to prismatic-koi/nixos-config that referenced this pull request Jul 11, 2026
The nixpkgs staging-next merge on 2026-06-27 (flake bump d407951 ->
0bb7ec5 in #2380) shipped an ld64 hardening flag that breaks
Objective-C / Cocoa-framework linking on aarch64-darwin. choose-gui
builds via xcbuild and links Cocoa, so it fails at the final Ld step
on m4mac CI.

nixpkgs maintainers shipped ~15 per-package workarounds with the same
shape (add llvmPackages.lld to nativeBuildInputs, set
NIX_CFLAGS_LINK=-fuse-ld=lld); choose-gui did not get one upstream.
Mirror the shape of the pyobjc-framework-Cocoa fix
(NixOS/nixpkgs#538151) here.

REMOVAL CONDITION: NixOS/nixpkgs#536365 ("ld64: disable hardening
again") lands on staging and a subsequent flake bump picks up the
reverted per-package workarounds.

Failing CI run:
https://github.com/prismatic-koi/nixos-config/actions/runs/29170146780

Co-authored-by: prismatic-koi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants