Source: libcamera Version: 0.3.2-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability
libcamera cannot be cross built from source, because it has multiple Build-Depends that are not cross-satisfiable. Rather than solving this, I looked into reducing its Build-Depends and noticed that all of the dependencies tagged <!nodoc> are only used during the Arch:all build. Hence, we can move all of those dependencies to Build-Depends-Indep. In effect, an arch-only build becomes a nodoc build and the nodoc build profile is somewhat useless at that point. I suggest dropping it as its semantics are poorly defined. In any case, this happens to also move python3-sphinx, which was one of the problematic dependencies for cross building. This is not a full solution to cross building, but moves us one step closer in a hopefully uncontroversial way. Helmut
diff --minimal -Nru libcamera-0.3.2/debian/changelog libcamera-0.3.2/debian/changelog --- libcamera-0.3.2/debian/changelog 2024-09-24 21:35:43.000000000 +0200 +++ libcamera-0.3.2/debian/changelog 2024-10-01 23:43:35.000000000 +0200 @@ -1,3 +1,10 @@ +libcamera (0.3.2-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Move documentation Build-Depends to Build-Depends-Indep. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 01 Oct 2024 23:43:35 +0200 + libcamera (0.3.2-1) unstable; urgency=medium * New upstream version 0.3.2 diff --minimal -Nru libcamera-0.3.2/debian/control libcamera-0.3.2/debian/control --- libcamera-0.3.2/debian/control 2024-09-24 21:35:43.000000000 +0200 +++ libcamera-0.3.2/debian/control 2024-10-01 23:43:35.000000000 +0200 @@ -8,9 +8,6 @@ Priority: optional Build-Depends: debhelper-compat (= 13), dh-sequence-python3, - doxygen <!nodoc>, - doxygen-latex [!sh4] <!nodoc> | texlive-latex-extra <!nodoc>, - graphviz <!nodoc>, libdrm-dev <!pkg.libcamera.nosdl>, libdw-dev <!pkg.libcamera.notrace>, libevent-dev, @@ -19,9 +16,6 @@ libgstreamer1.0-dev, libgtest-dev <!nocheck>, libjpeg-dev <!pkg.libcamera.nosdl>, - libjs-jquery <!nodoc>, - libjs-sphinxdoc <!nodoc>, - libjs-underscore <!nodoc>, liblttng-ust-dev [!hurd-any !i386], libpython3-dev <!pkg.libcamera.nopython>, libsdl2-dev <!pkg.libcamera.nosdl>, @@ -34,9 +28,15 @@ python3-jinja2, python3-ply, python3-pybind11 <!pkg.libcamera.nopython>, - python3-sphinx <!nodoc>, python3-yaml, qt6-base-dev [!i386] <!pkg.libcamera.noqt> +Build-Depends-Indep: doxygen <!nodoc>, + doxygen-latex [!sh4] <!nodoc> | texlive-latex-extra <!nodoc>, + graphviz <!nodoc>, + libjs-jquery <!nodoc>, + libjs-sphinxdoc <!nodoc>, + libjs-underscore <!nodoc>, + python3-sphinx <!nodoc>, Standards-Version: 4.7.0 Vcs-Browser: https://salsa.debian.org/multimedia-team/libcamera Vcs-Git: https://salsa.debian.org/multimedia-team/libcamera.git diff --minimal -Nru libcamera-0.3.2/debian/rules libcamera-0.3.2/debian/rules --- libcamera-0.3.2/debian/rules 2024-09-24 21:35:43.000000000 +0200 +++ libcamera-0.3.2/debian/rules 2024-10-01 23:43:35.000000000 +0200 @@ -39,13 +39,15 @@ -dh_auto_test endif -override_dh_install: +override_dh_install-indep: ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) mv debian/tmp/usr/share/doc/libcamera-0.* debian/tmp/usr/share/doc/libcamera-doc endif + dh_install -X/.doctrees/ + +execute_before_dh_install-arch: cp ./obj-${DEB_HOST_GNU_TYPE}/src/apps/ipa-verify/ipa_verify \ debian/tmp/usr/bin/ - dh_install -X/.doctrees/ override_dh_strip: dh_strip -a