user [email protected]
usertags 831804 + binary-indep
tags 831804 + patch
thanks
Thanks for the report, adding it to my private (but not secret)
collection of binary-indep bugs:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=binary-indep;[email protected]
On Tue, 19 Jul 2016, Carsten Leonhardt wrote:
> Package: src:apcupsd
> Version: 3.14.14-0.1
> Severity: serious
>
> buildlog excerpt:
>
> dh_fixperms
> chmod 0755 debian/apcupsd/etc/apcupsd/killpower
> chmod: cannot access 'debian/apcupsd/etc/apcupsd/killpower': No such
> file or directory
> debian/rules:46: recipe for target 'override_dh_fixperms' failed
> make[1]: *** [override_dh_fixperms] Error 1
> make[1]: Leaving directory '/«PKGBUILDDIR»'
> debian/rules:11: recipe for target 'binary-indep' failed
Explanation: When creating only arch-independent packages with
"dpkg-buildpackage -A", debian/apcupsd/[...] does not exist
because apcupsd is arch-dependent.
The attached patch overrides dh_fixperms only for the arch-dependent
packages, and it should fix the bug, but beware because I have
not actually tested it.
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -42,7 +42,7 @@ override_dh_installchangelogs:
override_dh_compress:
dh_compress -Xusr/share/doc/apcupsd/doc
-override_dh_fixperms:
+override_dh_fixperms-arch:
dh_fixperms
chmod 0755 debian/apcupsd/etc/apcupsd/killpower
chmod 0755 debian/apcupsd/etc/apcupsd/ups-monitor