tags 806027 + patch
thanks

>    debian/rules override_dh_fixperms
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> chmod 600 /<<PKGBUILDDIR>>/debian/fwknop-server/etc/fwknop/access.conf
> chmod: cannot access 
> '/<<PKGBUILDDIR>>/debian/fwknop-server/etc/fwknop/access.conf': No such file 
> or directory

Explanation: We are creating arch-independent packages only, so
debian/fwknop-server/[...] does not exist because fwknop-server is
arch-dependent.

The trivial fix is to override dh_fixperms only when creating
arch-dependent packages.

While we are at it, we can even avoid using --exclude by putting
dh_fixperms first and chmod later.

Patch attached.

Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -57,10 +57,10 @@ override_dh_link:
        dh_link -plibfko2-dev $(LIB_LIBFKODEV)/libfko.so.2.0.0 
$(LIB_LIBFKODEV)/libfko.so
        dh_link --remaining-packages
 
-override_dh_fixperms:
+override_dh_fixperms-arch:
+       dh_fixperms
        chmod 600 $(CURDIR)/debian/fwknop-server/etc/fwknop/access.conf
        chmod 600 $(CURDIR)/debian/fwknop-server/etc/fwknop/fwknopd.conf
-       dh_fixperms --exclude access.conf --exclude fwknopd.conf
 
 override_dh_strip:
        dh_strip --dbg-package=libfko2-dbg

Reply via email to