Source: zoneminder Version: 1.32.3-2 User: [email protected] Usertags: origin-ubuntu focal ubuntu-patch Severity: serious Justification: policy violation in behaviour of build target causing FTBFS Tags: patch
Hi,
In Ubuntu this package FTBFS. The reason seems to be that the
build-indep target isn't running when sbuild invokes "debian/rules
build", causing a later dh_install against the zoneminder-doc package to
fail because files produced by that target don't exist.
As far as I understand, the cause is that debhelper's dh sequencer
doesn't itself call the build-indep target when invoked via
"debian/rules build". So when using debhelper, a "build-indep" rule
appears to be wrong, and override_dh_auto_build-indep needs to be used
to override the appropriate behaviour instead.
Here is the patch:
diff -Nru zoneminder-1.32.3/debian/rules zoneminder-1.32.3/debian/rules
--- zoneminder-1.32.3/debian/rules 2018-11-07 23:11:36.000000000 +0000
+++ zoneminder-1.32.3/debian/rules 2020-02-18 15:21:25.000000000 +0000
@@ -34,8 +34,9 @@
dh_clean $(MANPAGES1)
$(RM) -r docs/_build docs/installationguide web/api/app/Plugin/Crud
-build-indep:
+override_dh_auto_build-indep:
$(MAKE) -C docs html
+ dh_auto_build
MANPAGES1 = \
dbuild/scripts/zmupdate.pl.1 \
signature.asc
Description: PGP signature

