Repository navigation
kitty: work around ld64 hardening issue - #539908
Merged
Merged
Conversation
leiserfg
approved these changes
Jul 9, 2026
2 of 13 tasks
prismatic-koi
added a commit
to prismatic-koi/nixos-config
that referenced
this pull request
Jul 11, 2026
Follow-up to #2385 (choose-gui was the first symptom of this failure class in the m4mac closure; kitty is the next). The m4mac CI build now fails at kitty-0.47.4's `glfw-cocoa.so` link step with the same `Trace/BPT trap: 5` in the cctools ld wrapper that bit choose-gui, from the same underlying ld64 hardening regression that landed with the staging-next merge in #2380 (flake bump d407951 -> 0bb7ec5). Failing run: https://github.com/prismatic-koi/nixos-config/actions/runs/29171272201 Unlike choose-gui, upstream nixpkgs already merged the exact same override for kitty on master on 2026-07-09 as commit d2a7c286bdb34760a36d51b5deb37b5e736e5c60 (PR NixOS/nixpkgs#539908, "kitty: work around ld64 hardening issue"). Our flake follows `nixos-unstable`, though, and that channel has NOT yet advanced past d2a7c286 — the bump we picked up in #2380 stopped at 0bb7ec5, which predates it. So we mirror the upstream fix locally until the channel catches up. Removal condition (block-comment in overlays/default.nix documents both paths): - `nixos-unstable` advances past d2a7c286bdb34760a36d51b5deb37b5e736e5c60 (upstream carries the override; ours is a duplicate), OR - NixOS/nixpkgs#536365 ("ld64: disable hardening again") lands and the whole workaround train unwinds. Whichever comes first — delete the override. Validation (from this Linux worktree, m4mac config): m4mac.pkgs.kitty.drvAttrs.NIX_CFLAGS_LINK -> " -fuse-ld=lld" builtins.length nativeBuildInputs -> 27 (was 26; +lld) choose-gui unchanged (regression check) -> still 27 / " -fuse-ld=lld" Real build validation is post-merge (build-and-cache on push to main). Co-authored-by: prismatic-koi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://hydra.nixos.org/build/336930117/nixlog/1
Copied the fix from 7a83e82.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.