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.
This commit is contained in:
berrux-dev committed 2026-11-20 14:09:25 +01:00
1 parent 113d4ab5ed
commit 6e8e4fa287
1 file changed
+5 -1
@@ -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):