Skip to content

kitty: work around ld64 hardening issue - #539908

Merged
zowoq merged 1 commit into
NixOS:masterfrom
qowoz:kitty
Jul 9, 2026
Merged

zowoq merged 1 commit into
NixOS:masterfrom
qowoz:kitty

Conversation

@zowoq

@zowoq zowoq commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

https://hydra.nixos.org/build/336930117/nixlog/1

Copied the fix from 7a83e82.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Jul 9, 2026
@zowoq
zowoq added this pull request to the merge queue Jul 9, 2026
Merged via the queue into NixOS:master with commit d2a7c28 Jul 9, 2026
28 checks passed
@zowoq
zowoq deleted the kitty branch July 9, 2026 10:43
@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
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 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.

2 participants