On Mon, 14 Mar 2016, Santiago Vila wrote:

> sed -i 's|/etc/sysconfig/|/etc/default/|' 
> /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/ctdb/usr/share/doc/ctdb/web/*.html
> sed: can't read 
> /<<BUILDDIR>>/samba-4.3.6+dfsg/debian/ctdb/usr/share/doc/ctdb/web/*.html: No 
> such file or directory

Explanation: When using "dpkg-buildpackage -A", we are creating
architecture-independent packages only, so debian/ctdb does not exist.

But everything in override_dh_installdocs is for ctdb, which is Arch: any,
so the trivial fix is to override dh_installdocs only for architecture
dependent packages.

The attached patch might work, please test it.

Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -104,7 +104,7 @@ override_dh_auto_test:
 override_dh_systemd_start:
        dh_systemd_start -pctdb --no-start --no-restart-on-upgrade
 
-override_dh_installdocs:
+override_dh_installdocs-arch:
        cp ctdb/config/events.d/README ctdb/README.eventscripts
        cp ctdb/config/notify.d.README ctdb/README.notify.d
        dh_installdocs

Reply via email to