From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: James Hilliard <james.hilliard1@gmail.com>,
Roy Kollen Svendsen <roykollensvendsen@gmail.com>,
Dylan Bespalko <dylan.bespalko@gmail.com>,
Angelo Compagnucci <angelo.compagnucci@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH v5 1/5] package/python-shiboken6: new package
Date: Mon, 16 Nov 2026 22:36:08 +0100 [thread overview]
Message-ID: <20261116213612.873856-2-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20261116213612.873856-1-angelo.compagnucci@gmail.com>
From: Dylan Bespalko <dylan.bespalko@gmail.com>
There are actually three projects combined in the PySide6 repo:
- Shiboken6 (package/python-shiboken6): A C++/Python Binding Generator
- PySide6 (package/python-pyside6): A C++/Python binding of Qt6
- pyside-tools (Not Included): which contains pyside6-uic/pyside6-rcc
This package builds Shiboken6 from the release tarball:
- The host package builds the binding generator. The generator uses
libclang, from host-clang, to read the C++ headers of the target.
- The target package builds the shiboken6 library and its Python
module. The generated bindings need them at run time.
Qt for Python has the same version as Qt6. So the package is in
package/qt6/ and follows QT6_VERSION, like the other Qt6 modules.
Signed-off-by: Dylan Bespalko <dylan.bespalko@gmail.com>
Co-authored-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
Changes v4 -> v5:
- No change
Changes v3 -> v4:
- Split the patch in three: python-shiboken6, python-pyside6 and the
runtime test
- Bump to 6.11.3. The package moves to package/qt6/ and follows
QT6_VERSION, like the other Qt6 modules
- Download the release tarball from download.qt.io, not the git
repository. It has an upstream hash, and python-pyside6 uses the
same file
- In 6.11 the generator is in sources/shiboken6_generator. The host
package builds it. The target package builds only the library and
the Python module
- Drop the selects of host packages: a host package cannot be
selected. Drop the select of BR2_PACKAGE_QT6_GL_SUPPORTS: it is a
blind option
- Depend on BR2_PACKAGE_LLVM_ARCH_SUPPORTS, for host-clang
- DEVELOPERS: v3 added an entry for Dylan. v4 does not: the packages
are now in package/qt6/, which already has maintainers. Dylan, tell
me if you want to be listed
package/qt6/Config.in | 1 +
package/qt6/python-shiboken6/Config.in | 12 ++++
.../python-shiboken6/python-shiboken6.hash | 9 +++
.../qt6/python-shiboken6/python-shiboken6.mk | 57 +++++++++++++++++++
4 files changed, 79 insertions(+)
create mode 100644 package/qt6/python-shiboken6/Config.in
create mode 100644 package/qt6/python-shiboken6/python-shiboken6.hash
create mode 100644 package/qt6/python-shiboken6/python-shiboken6.mk
diff --git a/package/qt6/Config.in b/package/qt6/Config.in
index f3a540e9f8..42a24f0c0a 100644
--- a/package/qt6/Config.in
+++ b/package/qt6/Config.in
@@ -43,6 +43,7 @@ menuconfig BR2_PACKAGE_QT6
if BR2_PACKAGE_QT6
+source "package/qt6/python-shiboken6/Config.in"
source "package/qt6/qt6base/Config.in"
source "package/qt6/qt6charts/Config.in"
source "package/qt6/qt6coap/Config.in"
diff --git a/package/qt6/python-shiboken6/Config.in b/package/qt6/python-shiboken6/Config.in
new file mode 100644
index 0000000000..6ded490baf
--- /dev/null
+++ b/package/qt6/python-shiboken6/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_SHIBOKEN6
+ bool "python-shiboken6"
+ depends on BR2_PACKAGE_PYTHON3
+ depends on BR2_PACKAGE_QT6
+ depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # host-clang
+ select BR2_PACKAGE_PYTHON3_ZLIB # embedded signature support
+ help
+ Shiboken6 generates the Python bindings of PySide6. This
+ package installs its library and its Python module, which
+ the bindings need at run time.
+
+ https://doc.qt.io/qtforpython-6/shiboken6/index.html
diff --git a/package/qt6/python-shiboken6/python-shiboken6.hash b/package/qt6/python-shiboken6/python-shiboken6.hash
new file mode 100644
index 0000000000..739dc15ea9
--- /dev/null
+++ b/package/qt6/python-shiboken6/python-shiboken6.hash
@@ -0,0 +1,9 @@
+# From https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-6.11.3-src/pyside-setup-everywhere-src-6.11.3.tar.xz.sha256
+sha256 050819cb05e14d6689f42b56e4fa9c8ff63be2bb339e0c094c45b990b7cabde1 pyside-setup-everywhere-src-6.11.3.tar.xz
+
+# Hash for license files
+sha256 62803a6fcceef9091a129d7293d2469ea332b35d30f5e1bc4c628a9f35f3d29c LICENSES/BSD-3-Clause.txt
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
+sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt
+sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt
+sha256 40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2 LICENSES/Qt-GPL-exception-1.0.txt
diff --git a/package/qt6/python-shiboken6/python-shiboken6.mk b/package/qt6/python-shiboken6/python-shiboken6.mk
new file mode 100644
index 0000000000..6433678d71
--- /dev/null
+++ b/package/qt6/python-shiboken6/python-shiboken6.mk
@@ -0,0 +1,57 @@
+################################################################################
+#
+# python-shiboken6
+#
+################################################################################
+
+# Qt for Python must have the same version as Qt6
+PYTHON_SHIBOKEN6_VERSION = $(QT6_VERSION)
+PYTHON_SHIBOKEN6_SITE = https://download.qt.io/official_releases/QtForPython/pyside6/PySide6-$(PYTHON_SHIBOKEN6_VERSION)-src
+PYTHON_SHIBOKEN6_SOURCE = pyside-setup-everywhere-src-$(PYTHON_SHIBOKEN6_VERSION).tar.xz
+PYTHON_SHIBOKEN6_LICENSE = \
+ LGPL-3.0 or GPL-2.0 or GPL-3.0 (library, module), \
+ GPL-3.0 with Qt-GPL-exception-1.0 (generator), \
+ BSD-3-Clause (cmake)
+PYTHON_SHIBOKEN6_LICENSE_FILES = \
+ LICENSES/BSD-3-Clause.txt \
+ LICENSES/GPL-2.0-only.txt \
+ LICENSES/GPL-3.0-only.txt \
+ LICENSES/LGPL-3.0-only.txt \
+ LICENSES/Qt-GPL-exception-1.0.txt
+PYTHON_SHIBOKEN6_CPE_ID_VENDOR = qt
+PYTHON_SHIBOKEN6_CPE_ID_PRODUCT = shiboken
+PYTHON_SHIBOKEN6_SUPPORTS_IN_SOURCE_BUILD = NO
+PYTHON_SHIBOKEN6_INSTALL_STAGING = YES
+
+# The target package builds the shiboken6 library and its Python
+# module. The host package builds the binding generator, which the
+# target package and python-pyside6 need at build time.
+PYTHON_SHIBOKEN6_SUBDIR = sources/shiboken6
+HOST_PYTHON_SHIBOKEN6_SUBDIR = sources/shiboken6_generator
+
+PYTHON_SHIBOKEN6_DEPENDENCIES = \
+ host-python-shiboken6 \
+ python3 \
+ qt6base
+
+PYTHON_SHIBOKEN6_CONF_OPTS = \
+ -DBUILD_TESTS=OFF \
+ -DQFP_SHIBOKEN_HOST_PATH=$(HOST_DIR) \
+ -DQFP_PYTHON_HOST_PATH=$(HOST_DIR)/bin/python3
+
+HOST_PYTHON_SHIBOKEN6_DEPENDENCIES = \
+ host-clang \
+ host-llvm \
+ host-python3 \
+ host-qt6base
+
+HOST_PYTHON_SHIBOKEN6_CONF_ENV = \
+ LLVM_INSTALL_DIR=$(HOST_DIR)
+
+# libxslt is only used to extract the documentation
+HOST_PYTHON_SHIBOKEN6_CONF_OPTS = \
+ -DBUILD_TESTS=OFF \
+ -DCMAKE_DISABLE_FIND_PACKAGE_LibXslt=ON
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-11-16 21:36 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 8:03 [Buildroot] [PATCH v3 1/1] added package/python-{shiboken6, pyside6}: new packages Dylan Bespalko
2024-08-14 6:02 ` Dylan Bespalko
2026-11-16 15:56 ` [Buildroot] [PATCH v4 0/3] package/python-pyside6: new package Angelo Compagnucci
2026-11-16 15:56 ` [Buildroot] [PATCH v4 1/3] package/python-shiboken6: " Angelo Compagnucci
2026-11-16 15:56 ` [Buildroot] [PATCH v4 2/3] package/python-pyside6: " Angelo Compagnucci
2026-11-16 15:56 ` [Buildroot] [PATCH v4 3/3] support/testing: add python-pyside6 runtime test Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 0/5] package/python-pyside6: new package Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 1/5] package/python-shiboken6: " Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 2/5] package/python-pyside6: " Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 3/5] support/testing: add python-pyside6 runtime test Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 4/5] package/python-matplotlib: add Qt6 support to the Qt display Angelo Compagnucci
2026-11-16 21:29 ` [Buildroot] [PATCH v4 5/5] support/testing: add python-matplotlib runtime test Angelo Compagnucci
2026-11-16 21:36 ` [Buildroot] [PATCH v5 0/5] package/python-pyside6: new package Angelo Compagnucci
2026-11-16 21:36 ` Angelo Compagnucci [this message]
2026-11-16 21:36 ` [Buildroot] [PATCH v5 2/5] " Angelo Compagnucci
2026-11-16 21:36 ` [Buildroot] [PATCH v5 3/5] support/testing: add python-pyside6 runtime test Angelo Compagnucci
2026-11-16 21:36 ` [Buildroot] [PATCH v5 4/5] package/python-matplotlib: add Qt6 support to the Qt display Angelo Compagnucci
2026-11-16 21:36 ` [Buildroot] [PATCH v5 5/5] support/testing: add python-matplotlib runtime test Angelo Compagnucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261116213612.873856-2-angelo.compagnucci@gmail.com \
--to=angelo.compagnucci@gmail.com \
--cc=buildroot@buildroot.org \
--cc=dylan.bespalko@gmail.com \
--cc=james.hilliard1@gmail.com \
--cc=roykollensvendsen@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox