From 6e8e4fa2878cb02d5661f3199eec8eaa4b8cf742 Mon Sep 17 00:00:00 2001 From: berrux_dev Date: Fri, 20 Nov 2026 14:09:25 +0100 Subject: [PATCH] Skip dpkg-checkbuilddeps in the DEB flow (debuild -d) The generated debian/control declares Build-Depends with qt6-base-dev and qt6-tools-dev, but the build image provides Qt6 via aqtinstall (/opt/Qt), not via apt, so dpkg-checkbuilddeps could never pass and debuild aborted before building any package. The prebuilt image IS the build environment (everything it needs is baked in); skip the check with -d. --- .../rpmbuild/make_rpm_ubuntu26_release2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt6-after/qt6-migrated-legatus/rpmbuild/make_rpm_ubuntu26_release2.py b/qt6-after/qt6-migrated-legatus/rpmbuild/make_rpm_ubuntu26_release2.py index 51528eab4..7287fcf36 100644 --- a/qt6-after/qt6-migrated-legatus/rpmbuild/make_rpm_ubuntu26_release2.py +++ b/qt6-after/qt6-migrated-legatus/rpmbuild/make_rpm_ubuntu26_release2.py @@ -339,7 +339,11 @@ def build_deb(pkg_name, pkg_dir, output_dir, version, build_number, os.chdir(pkg_dir) env = os.environ.copy() env["DEB_BUILD_OPTIONS"] = "parallel=$(nproc)" - run("debuild -us -uc -b", f"debuild failed for {pkg_name}", env=env) + # -d (skip-deps): the prebuilt image provides every build dependency + # (debhelper, cmake, ninja-build via apt; Qt6 via aqtinstall at /opt/Qt, + # not via apt), so dpkg-checkbuilddeps could never pass against the + # declarative Build-Depends list. The image IS the build environment. + run("debuild -d -us -uc -b", f"debuild failed for {pkg_name}", env=env) parent_dir = os.path.dirname(pkg_dir) for f in os.listdir(parent_dir):