--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Fri, 3 May 2024 16:48:49 +1000
+Subject: Fix missing subparser in test harness
+
+Not needed in the build but needed for debugging the test harness...
+---
+ testing/command.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/testing/command.py b/testing/command.py
+index 9ef35ee..c52b09f 100644
+--- a/testing/command.py
++++ b/testing/command.py
+@@ -204,6 +204,7 @@ def main():
+ type=int,
+ help="use build number n (0-based), latest = -1 (default)",
+ )
++ parser_list = subparsers.add_parser("list")
+ args = parser.parse_args()
+
+ if hasattr(args, "buildno"):
+++ /dev/null
-From: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
-Date: Fri, 3 May 2024 16:47:57 +1000
-Subject: disable-qtexampleicons
-
----
- sources/pyside6/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/sources/pyside6/CMakeLists.txt b/sources/pyside6/CMakeLists.txt
-index f45c071..fbb55a6 100644
---- a/sources/pyside6/CMakeLists.txt
-+++ b/sources/pyside6/CMakeLists.txt
-@@ -42,4 +42,4 @@ endif()
-
- add_subdirectory(doc)
-
--add_subdirectory(qtexampleicons)
-+# add_subdirectory(qtexampleicons)
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Fri, 3 May 2024 16:50:13 +1000
+Subject: Add failing tests to blacklist
+
+Tests are still run but will fail. They are run multiple times to see if
+they still fail - it would be better to just skip them.
+
+It is not yet clear whether these failures are important.
+---
+ build_history/blacklist.txt | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
+index adfb0c6..a000e22 100644
+--- a/build_history/blacklist.txt
++++ b/build_history/blacklist.txt
+@@ -82,3 +82,19 @@
+ [QtQml::qqmlincubator_incubateWhile]
+ pypy # gives timeout on macOS if I run video converter while testing
+ # 2022-03-04 PyPy: Currently 28 of 657 tests fail
++
++# Debian packaging failing tests
++[sample::array_numpy]
++ py3
++[sample::nontypetemplate]
++ py3
++[pyside6-android-deploy::test_pyside6_android_deploy]
++ py3
++[QtCore::qinstallmsghandler_test]
++ py3
++[QtCore::loggingcategorymacros_test]
++ py3
++[QtGui::qpainter_test]
++ py3
++[QtCharts::qcharts_numpy_test]
++ py3
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Fri, 3 May 2024 16:48:49 +1000
-Subject: Fix missing subparser in test harness
-
-Not needed in the build but needed for debugging the test harness...
----
- testing/command.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/testing/command.py b/testing/command.py
-index be4ed8a..e0b73d0 100644
---- a/testing/command.py
-+++ b/testing/command.py
-@@ -199,6 +199,7 @@ def main():
- type=int,
- help="use build number n (0-based), latest = -1 (default)",
- )
-+ parser_list = subparsers.add_parser("list")
- args = parser.parse_args()
-
- if hasattr(args, "buildno"):
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Fri, 3 May 2024 16:50:13 +1000
-Subject: Add failing tests to blacklist
-
-Tests are still run but will fail. They are run multiple times to see if
-they still fail - it would be better to just skip them.
-
-It is not yet clear whether these failures are important.
----
- build_history/blacklist.txt | 16 ++++++++++++++++
- 1 file changed, 16 insertions(+)
-
-diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
-index 5f0183f..f805980 100644
---- a/build_history/blacklist.txt
-+++ b/build_history/blacklist.txt
-@@ -91,3 +91,19 @@
- [QtQml::qqmlincubator_incubateWhile]
- pypy # gives timeout on macOS if I run video converter while testing
- # 2022-03-04 PyPy: Currently 28 of 657 tests fail
-+
-+# Debian packaging failing tests
-+[sample::array_numpy]
-+ py3
-+[sample::nontypetemplate]
-+ py3
-+[pyside6-android-deploy::test_pyside6_android_deploy]
-+ py3
-+[QtCore::qinstallmsghandler_test]
-+ py3
-+[QtCore::loggingcategorymacros_test]
-+ py3
-+[QtGui::qpainter_test]
-+ py3
-+[QtCharts::qcharts_numpy_test]
-+ py3
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Sun, 16 Feb 2025 01:27:09 +1100
+Subject: Fix numpy header detection
+
+Existing code makes assumptions about site-packages/dist-packages
+and fails to find the headers; numpy has an explicit function for this
+---
+ build_scripts/utils.py | 13 ++-----------
+ 1 file changed, 2 insertions(+), 11 deletions(-)
+
+diff --git a/build_scripts/utils.py b/build_scripts/utils.py
+index 3cb7ade..c37d087 100644
+--- a/build_scripts/utils.py
++++ b/build_scripts/utils.py
+@@ -77,17 +77,8 @@ def update_env_path(newpaths):
+
+
+ def get_numpy_location():
+- for p in sys.path:
+- if 'site-' in p:
+- numpy = Path(p).resolve() / 'numpy'
+- if numpy.is_dir():
+- candidate = numpy / '_core' / 'include' # Version 2
+- if not candidate.is_dir():
+- candidate = numpy / 'core' / 'include' # Version 1
+- if candidate.is_dir():
+- return os.fspath(candidate)
+- log.warning(f"Cannot find numpy include dir under {numpy}")
+- return None
++ import numpy
++ return numpy.get_include()
+
+
+ def platform_cmake_options(as_tuple_list=False):
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Sun, 16 Feb 2025 01:27:09 +1100
-Subject: Fix numpy header detection
-
-Existing code makes assumptions about site-packages/dist-packages
-and fails to find the headers; numpy has an explicit function for this
----
- build_scripts/utils.py | 13 ++-----------
- 1 file changed, 2 insertions(+), 11 deletions(-)
-
-diff --git a/build_scripts/utils.py b/build_scripts/utils.py
-index 29f2545..d5c1063 100644
---- a/build_scripts/utils.py
-+++ b/build_scripts/utils.py
-@@ -77,17 +77,8 @@ def update_env_path(newpaths):
-
-
- def get_numpy_location():
-- for p in sys.path:
-- if 'site-' in p:
-- numpy = Path(p).resolve() / 'numpy'
-- if numpy.is_dir():
-- candidate = numpy / '_core' / 'include' # Version 2
-- if not candidate.is_dir():
-- candidate = numpy / 'core' / 'include' # Version 1
-- if candidate.is_dir():
-- return os.fspath(candidate)
-- log.warning(f"Cannot find numpy include dir under {numpy}")
-- return None
-+ import numpy
-+ return numpy.get_include()
-
-
- def platform_cmake_options(as_tuple_list=False):
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Tue, 10 Sep 2024 06:34:52 +1000
+Subject: Mark arm64 test failures as xfail temporarily
+
+Try to at least get a package built to be able to debug the failure
+---
+ build_history/blacklist.txt | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
+index a000e22..3adc7e9 100644
+--- a/build_history/blacklist.txt
++++ b/build_history/blacklist.txt
+@@ -98,3 +98,11 @@
+ py3
+ [QtCharts::qcharts_numpy_test]
+ py3
++
++# Debian arm64-specific failures - temporarily xfail them
++[QtWidgets::bug_668]
++ py3
++[QtWidgets::bug_728]
++ py3
++[pysidetest::new_inherited_functions_test]
++ py3
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Tue, 10 Sep 2024 06:34:52 +1000
-Subject: Mark arm64 test failures as xfail temporarily
-
-Try to at least get a package built to be able to debug the failure
----
- build_history/blacklist.txt | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
-index f805980..dfee4f9 100644
---- a/build_history/blacklist.txt
-+++ b/build_history/blacklist.txt
-@@ -107,3 +107,11 @@
- py3
- [QtCharts::qcharts_numpy_test]
- py3
-+
-+# Debian arm64-specific failures - temporarily xfail them
-+[QtWidgets::bug_668]
-+ py3
-+[QtWidgets::bug_728]
-+ py3
-+[pysidetest::new_inherited_functions_test]
-+ py3
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Sun, 6 Oct 2024 19:46:11 +1100
+Subject: XFAIL a new test failure with 6.7.2
+
+Tests are substantially changed in new release; library not
+being found in multi-arch paths
+---
+ build_history/blacklist.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
+index 3adc7e9..895bca1 100644
+--- a/build_history/blacklist.txt
++++ b/build_history/blacklist.txt
+@@ -90,6 +90,8 @@
+ py3
+ [pyside6-android-deploy::test_pyside6_android_deploy]
+ py3
++[pyside6-deploy::test_pyside6_deploy]
++ py3
+ [QtCore::qinstallmsghandler_test]
+ py3
+ [QtCore::loggingcategorymacros_test]
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Sun, 6 Oct 2024 19:46:11 +1100
-Subject: XFAIL a new test failure with 6.7.2
-
-Tests are substantially changed in new release; library not
-being found in multi-arch paths
----
- build_history/blacklist.txt | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
-index dfee4f9..43fa65e 100644
---- a/build_history/blacklist.txt
-+++ b/build_history/blacklist.txt
-@@ -99,6 +99,8 @@
- py3
- [pyside6-android-deploy::test_pyside6_android_deploy]
- py3
-+[pyside6-deploy::test_pyside6_deploy]
-+ py3
- [QtCore::qinstallmsghandler_test]
- py3
- [QtCore::loggingcategorymacros_test]
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Mon, 14 Oct 2024 12:39:53 +1100
+Subject: XFAIL smart::smart_pointer
+
+Failure seen on armel
+---
+ build_history/blacklist.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
+index 895bca1..52ebc12 100644
+--- a/build_history/blacklist.txt
++++ b/build_history/blacklist.txt
+@@ -1,5 +1,6 @@
+ [smart::smart_pointer]
+ darwin ci
++ py3
+ [testmodifydocumentation]
+ darwin arm
+ [signals::signal_signature_test]
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Mon, 14 Oct 2024 12:45:22 +1100
+Subject: XFAIL QtQml::qquickitem_grabToImage
+
+Failure seen on mips64el
+---
+ build_history/blacklist.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
+index 52ebc12..59dbef3 100644
+--- a/build_history/blacklist.txt
++++ b/build_history/blacklist.txt
+@@ -109,3 +109,7 @@
+ py3
+ [pysidetest::new_inherited_functions_test]
+ py3
++
++# Debian mips64el-specific failures - temporarily xfail them
++[QtQml::qquickitem_grabToImage]
++ py3
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Mon, 14 Oct 2024 12:39:53 +1100
-Subject: XFAIL smart::smart_pointer
-
-Failure seen on armel
----
- build_history/blacklist.txt | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
-index 43fa65e..9219f1c 100644
---- a/build_history/blacklist.txt
-+++ b/build_history/blacklist.txt
-@@ -1,5 +1,6 @@
- [smart::smart_pointer]
- darwin ci
-+ py3
- [testmodifydocumentation]
- darwin arm
- [signals::signal_signature_test]
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Tue, 18 Feb 2025 00:50:57 +1100
+Subject: Fix python module paths in CMake
+
+---
+ sources/shiboken6/cmake/ShibokenHelpers.cmake | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
+index 0e993fa..63044c3 100644
+--- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
++++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
+@@ -143,13 +143,13 @@ macro(shiboken_internal_set_python_site_packages)
+ if sys.platform == 'win32':
+ lib_path = sysconfig.get_path('purelib')
+ else:
+- lib_path = sysconfig.get_path('purelib', scheme='posix_prefix')
++ lib_path = sysconfig.get_path('purelib', scheme='deb_system')
+
+ # /home/qt/dev/env
+ if sys.platform == 'win32':
+ data_path = sysconfig.get_path('data')
+ else:
+- data_path = sysconfig.get_path('data', scheme='posix_prefix')
++ data_path = sysconfig.get_path('data', scheme='deb_system')
+
+ # /lib/python3.9/site-packages
+ rel_path = lib_path.replace(data_path, '')
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Mon, 14 Oct 2024 12:45:22 +1100
-Subject: XFAIL QtQml::qquickitem_grabToImage
-
-Failure seen on mips64el
----
- build_history/blacklist.txt | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/build_history/blacklist.txt b/build_history/blacklist.txt
-index 9219f1c..b7238fb 100644
---- a/build_history/blacklist.txt
-+++ b/build_history/blacklist.txt
-@@ -118,3 +118,7 @@
- py3
- [pysidetest::new_inherited_functions_test]
- py3
-+
-+# Debian mips64el-specific failures - temporarily xfail them
-+[QtQml::qquickitem_grabToImage]
-+ py3
+++ /dev/null
-From: Stuart Prescott <stuart@debian.org>
-Date: Tue, 18 Feb 2025 00:50:57 +1100
-Subject: Fix python module paths in CMake
-
----
- sources/shiboken6/cmake/ShibokenHelpers.cmake | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/sources/shiboken6/cmake/ShibokenHelpers.cmake b/sources/shiboken6/cmake/ShibokenHelpers.cmake
-index 9c47770..fa61aed 100644
---- a/sources/shiboken6/cmake/ShibokenHelpers.cmake
-+++ b/sources/shiboken6/cmake/ShibokenHelpers.cmake
-@@ -125,13 +125,13 @@ macro(shiboken_internal_set_python_site_packages)
- if sys.platform == 'win32':
- lib_path = sysconfig.get_path('purelib')
- else:
-- lib_path = sysconfig.get_path('purelib', scheme='posix_prefix')
-+ lib_path = sysconfig.get_path('purelib', scheme='deb_system')
-
- # /home/qt/dev/env
- if sys.platform == 'win32':
- data_path = sysconfig.get_path('data')
- else:
-- data_path = sysconfig.get_path('data', scheme='posix_prefix')
-+ data_path = sysconfig.get_path('data', scheme='deb_system')
-
- # /lib/python3.9/site-packages
- rel_path = lib_path.replace(data_path, '')
--- /dev/null
+From: Stuart Prescott <stuart@debian.org>
+Date: Wed, 19 Feb 2025 00:32:42 +1100
+Subject: Remove dependency from shiboken6_generator
+
+Breaks dh_python3 dependency calculation
+---
+ create_wheels.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/create_wheels.py b/create_wheels.py
+index 6f8d881..d68b4cd 100644
+--- a/create_wheels.py
++++ b/create_wheels.py
+@@ -186,7 +186,7 @@ def generate_pyproject_toml(artifacts: Path, setup: SetupData) -> str:
+ _dependencies.append(f"shiboken6=={setup.version[0]}")
+ _dependencies.append(f"PySide6_Essentials=={setup.version[0]}")
+ elif _name == "shiboken6_generator":
+- _dependencies.append(f"shiboken6=={setup.version[0]}")
++ pass
+
+ with open(artifacts / "pyproject.toml.base") as f:
+ content = (
0001-test-with-current-interpreter.patch
-0002-disable-qtexampleicons.patch
-0003-Fix-missing-subparser-in-test-harness.patch
-0004-Add-failing-tests-to-blacklist.patch
-0005-Fix-numpy-header-detection.patch
-0006-Mark-arm64-test-failures-as-xfail-temporarily.patch
-0007-XFAIL-a-new-test-failure-with-6.7.2.patch
-0008-XFAIL-smart-smart_pointer.patch
-0009-XFAIL-QtQml-qquickitem_grabToImage.patch
-0010-Fix-python-module-paths-in-CMake.patch
+0002-Fix-missing-subparser-in-test-harness.patch
+0003-Add-failing-tests-to-blacklist.patch
+0004-Fix-numpy-header-detection.patch
+0005-Mark-arm64-test-failures-as-xfail-temporarily.patch
+0006-XFAIL-a-new-test-failure-with-6.7.2.patch
+0007-XFAIL-smart-smart_pointer.patch
+0008-XFAIL-QtQml-qquickitem_grabToImage.patch
+0009-Fix-python-module-paths-in-CMake.patch
+0010-Remove-dependency-from-shiboken6_generator.patch