Repository navigation
nixpkgs: patch cutter 2.5.0 .ui class name for Qt 6.12 uic (#5269) - #5270
Merged
Merged
Conversation
Qt 6.12 uic rejects the templated class name AddressableItemList<> used in seven cutter 2.5.0 .ui files, failing the build and cascading into the amd toplevel (cutter -> fish-completions -> man-paths -> system-path). Mirror upstream rizinorg/cutter: name the default instantiation AddressableItemListView via a using-alias in AddressableItemList.h and use it in the .ui files, applied as a postPatch overlay in nixos/nixpkgs/default.nix. Verified on amd-6: nix build .#nixosConfigurations.amd.pkgs.cutter -> /nix/store/kp5hzyrq9x0h9yq2fdj3w7rsj7yhq1z2-cutter-2.5.0 (green).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Fixes the sole root build failure of fleet switch attempt 2 (code#5269).
Problem
Qt 6.12's uic rejects the templated class name
AddressableItemList<>used in seven cutter 2.5.0 .ui files:Invalid class name: "AddressableItemList<>". The failure cascades cutter -> fish-completions -> man-paths -> system-path -> amd toplevel, blocking every switch.Fix
An overlay in
nixos/nixpkgs/default.nixwhose postPatch mirrors upstream rizinorg/cutter's own fix:using AddressableItemListView = AddressableItemList<CutterTreeView>;tosrc/widgets/AddressableItemList.hAddressableItemList<>->AddressableItemListViewin the seven .ui files (XrefsDialog, BreakpointWidget, FlagsWidget, GlobalsWidget, ListDockWidget, SearchWidget, StringsWidget)Approach validated before the build: pinned uic (qtbase 6.12.0) fails on the original .ui, passes on the renamed one; the generated code compiles against the alias (plain rename without the alias does not compile -- the generated member declaration needs a complete type name).
Proof (amd-6, laptop)
nix build .#nixosConfigurations.amd.pkgs.cutter->/nix/store/kp5hzyrq9x0h9yq2fdj3w7rsj7yhq1z2-cutter-2.5.0(green; the unpatched drv was 9nr2p5sn...). Cutter stays in the system package set; no version or Qt change.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.