Bug#1086690: lerc FTCBFS: python dependencies not satisfiable

Helmut Grohne helmut at subdivi.de
Sun Nov 3 21:30:19 GMT 2024


Source: lerc
Version: 4.0.0+ds-4
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability

lerc cannot be cross built from source, because its python-related
build dependencies cannot be satisfied. Turns out we don't have to think
much about them, because python3-lerc is an architecture-independent
package and by skipping it in an arch-only build, we can skip the
problem. When doing so, tow minor complications arise. The clean target
cannot be easily split, so cleaning the python module needs to be
conditional to the presence of pybuild. For another, the python3-numpy
dependency still is needed in an arch-only build for testing only. I'm
attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff --minimal -Nru lerc-4.0.0+ds/debian/changelog lerc-4.0.0+ds/debian/changelog
--- lerc-4.0.0+ds/debian/changelog	2023-12-03 17:46:30.000000000 +0100
+++ lerc-4.0.0+ds/debian/changelog	2024-11-03 22:05:08.000000000 +0100
@@ -1,3 +1,10 @@
+lerc (4.0.0+ds-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Demote python dependencies to B-D-I. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 03 Nov 2024 22:05:08 +0100
+
 lerc (4.0.0+ds-4) unstable; urgency=medium
 
   * New d/clean file.
diff --minimal -Nru lerc-4.0.0+ds/debian/control lerc-4.0.0+ds/debian/control
--- lerc-4.0.0+ds/debian/control	2023-12-03 17:46:30.000000000 +0100
+++ lerc-4.0.0+ds/debian/control	2024-11-03 22:05:08.000000000 +0100
@@ -7,14 +7,14 @@
 Build-Depends: architecture-is-little-endian,
                cmake,
                debhelper-compat (= 13),
-               dh-python,
-               dh-sequence-numpy3,
                dh-sequence-pkgkde-symbolshelper,
-               dh-sequence-python3,
+               python3-numpy <!nocheck>,
                pkg-kde-tools,
-               python3-all,
-               python3-numpy,
-               python3-setuptools
+Build-Depends-Indep: dh-sequence-python3,
+                     dh-sequence-numpy3,
+                     python3-all,
+                     python3-numpy,
+                     python3-setuptools,
 Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/debian-gis-team/lerc
 Vcs-Git: https://salsa.debian.org/debian-gis-team/lerc.git
diff --minimal -Nru lerc-4.0.0+ds/debian/rules lerc-4.0.0+ds/debian/rules
--- lerc-4.0.0+ds/debian/rules	2023-12-03 17:46:30.000000000 +0100
+++ lerc-4.0.0+ds/debian/rules	2024-11-03 22:05:08.000000000 +0100
@@ -16,7 +16,7 @@
 override_dh_auto_clean:
 	dh_auto_clean
 	dh_auto_clean --builddirectory build-static
-	dh_auto_clean --buildsystem=pybuild --sourcedirectory=OtherLanguages/Python
+	if command -v pybuild >/dev/null; then dh_auto_clean --buildsystem=pybuild --sourcedirectory=OtherLanguages/Python; fi
 
 override_dh_auto_configure:
 	dh_auto_configure
@@ -32,10 +32,11 @@
 		python3 -c "import lerc; assert lerc.test() == 0"
 endif
 
-override_dh_auto_install:
-	dh_auto_install --buildsystem=pybuild -ppython3-lerc --sourcedirectory=OtherLanguages/Python
+execute_after_dh_auto_install:
 	dh_auto_install --builddirectory build-static
-	dh_auto_install
+
+override_dh_auto_install-indep:
+	dh_auto_install --buildsystem=pybuild -ppython3-lerc --sourcedirectory=OtherLanguages/Python
 
 # Ubuntu wants the build to fail when symbols disappear
 override_dh_makeshlibs:


More information about the Pkg-grass-devel mailing list