Skip to content

python3Packages.shiboken6: don't propagate shiboken6-generator - #556150

Merged
K900 merged 1 commit into
NixOS:staging-nextfrom
qweered:shiboken6-drop-generator-propagation
Aug 25, 2026
Merged

K900 merged 1 commit into
NixOS:staging-nextfrom
qweered:shiboken6-drop-generator-propagation

Conversation

@qweered

@qweered qweered commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Measured on a PySide6 application, dropping the propagation removes 17 paths and 1.72 GiB, 813 MiB of which is clang-21.1.8-lib alone.

The generator is now depended on directly by the packages that run it to generate bindings: pyside6 and the KDE python bindings. pyside6-qtads already did this.

freecad needs no change. Its FindShiboken6.cmake only falls back to the generator's include directory when find_package(Shiboken6 CONFIG) fails, which is the pip layout where the headers ship in the generator wheel. nixpkgs' shiboken6 installs Shiboken6Config.cmake and all 41 headers, and exports them through Shiboken6::libshiboken, so the fallback is never reached. freecad never invokes the generator binary either.

Assisted-by: claude-code with claude-opus-5[1m]-high

Things done

nixpkgs-branch-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. llm-assisted Contributions that include code generation with LLMs 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: qt/kde Object-oriented framework for GUI creation labels Aug 24, 2026
@K900

K900 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

shiboken6 literally does not build.

@qweered
qweered marked this pull request as draft August 24, 2026 19:08
@qweered
qweered force-pushed the shiboken6-drop-generator-propagation branch 2 times, most recently from ce95cb4 to 72ca7fc Compare August 24, 2026 19:19
@qweered

qweered commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 556150 --package python3Packages.shiboken6
Commit: 72ca7fcfaf73ebccfc19d448af3597b7309b1e06


x86_64-linux

✅ 1 package built:
  • python3Packages.shiboken6

@qweered

qweered commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

shiboken6 literally does not build.

Sorry, should've opened draft pr at the first place. Fixed, I builded up to qtwebengine with no errors
548 rebuilds seem okay to go straight to master

image

@qweered
qweered marked this pull request as ready for review August 24, 2026 19:44
@K900

K900 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

You really should at least build pyside6 with this, and ideally some of the KDE stuff with Python bindings too (which should be trivial once you have pyside6).

@K900

K900 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Actually, why the hell are you rebuilding qtwebengine anyway.

@qweered

qweered commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Nice, on nixpkgs-review restart i no longer need to build qtwebengine, will do soon

@qweered

qweered commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Actually, why the hell are you rebuilding qtwebengine anyway.

Oh i know why, i catched a weird bug in ncro qweered/hyprnixos@3e5d5eb

@qweered

qweered commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 556150 --package kdePackages.kcoreaddons --package kdePackages.knotifications --package mtkclient --package normcap --package python3Packages.pyside6
Commit: 72ca7fcfaf73ebccfc19d448af3597b7309b1e06


x86_64-linux

✅ 5 packages built:
  • kdePackages.kcoreaddons
  • kdePackages.knotifications
  • mtkclient
  • normcap
  • python3Packages.pyside6

@K900

K900 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

OK, I'm just going to throw this on Big Computer overnight.

Measured on a PySide6 application, dropping the propagation removes 17 paths
and 1.72 GiB, 813 MiB of which is clang-21.1.8-lib alone.

The generator is now depended on directly by the packages that run it to
generate bindings: pyside6 and the KDE python bindings. pyside6-qtads already
did this.

Assisted-by: claude-code with claude-opus-5[1m]-high
@K900
K900 force-pushed the shiboken6-drop-generator-propagation branch from 72ca7fc to 709d338 Compare August 25, 2026 11:12
@nixpkgs-ci
nixpkgs-ci Bot requested a review from Mic92 August 25, 2026 11:18
@K900

K900 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

OK, nixpkgs-review found no issues except Cutter, which is fixed by adding shiboken6-generator. I'm going to merge this into staging-next to save some rebuilds.

@K900
K900 changed the base branch from master to staging-next August 25, 2026 11:36
@nixpkgs-ci nixpkgs-ci Bot closed this Aug 25, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Aug 25, 2026
@K900
K900 added this pull request to the merge queue Aug 25, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review August 25, 2026 11:41

Review dismissed automatically

Merged via the queue into NixOS:staging-next with commit c6936a9 Aug 25, 2026
50 of 51 checks passed
@qweered
qweered deleted the shiboken6-drop-generator-propagation branch August 26, 2026 00:05
mathgeniuszach added a commit to mathgeniuszach/sonic-flake that referenced this pull request Oct 31, 2026
nixpkgs split the shiboken6 generator binary out of shiboken6 into
python3Packages.shiboken6-generator (NixOS/nixpkgs#556150, hook in
#556388); shiboken6 now ships only include/lib. Without the generator
package on nativeBuildInputs every python-bindings package dies at the
type-generator step with 'shiboken6: command not found' (seen in
sonic-frameworks-core-addons 6.27.0). Mirrors nixpkgs
pkgs/kde/lib/mk-kde-derivation.nix lines 119-120.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 6.topic: qt/kde Object-oriented framework for GUI creation 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants