Package: rsbackup Version: 1.1-3 Severity: serious Tags: patch Justification: FTBFS regression
rsbackup fails to build from source on all architectures, which is a regression. Tail of the log from amd64: cd debian/rsbackup && \ find -name DEBIAN -prune -o -type f -print \ | sed 's/^\.\///' \ | xargs md5sum > DEBIAN/md5sums dpkg-gencontrol -isp -prsbackup -Pdebian/rsbackup \ -Tdebian/substvars.rsbackup dpkg-gencontrol: warning: -isp is deprecated; it is without effect dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe chown -R root:root debian/rsbackup chmod -R g-ws debian/rsbackup dpkg --build debian/rsbackup .. dpkg-deb: error: maintainer script `postrm' has bad permissions 644 (must be >=0555 and <=0775) debian/rules:39: recipe for target 'binary-rsbackup' failed make: *** [binary-rsbackup] Error 2 debian/rsbackup.postrm was introduced to fix #773181, but sure enough it has mode 0644. debian/rules just calls `cp' to install the file, hence the error. The attached patch replaces `cp' with `install' so that it's not so fragile in future regardless of source file mode. -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
--- debian/rules.orig 2014-12-27 11:35:56.756080121 +0000 +++ debian/rules 2014-12-27 11:34:54.720105281 +0000 @@ -47,8 +47,8 @@ mkdir -p debian/${PACKAGE}/var/log/backup mkdir -p debian/${PACKAGE}/usr/share/doc-base cp debian/${PACKAGE}.conffiles debian/${PACKAGE}/DEBIAN/conffiles - cp debian/${PACKAGE}.postinst debian/${PACKAGE}/DEBIAN/postinst - cp debian/${PACKAGE}.postrm debian/${PACKAGE}/DEBIAN/postrm + install debian/${PACKAGE}.postinst debian/${PACKAGE}/DEBIAN/postinst + install debian/${PACKAGE}.postrm debian/${PACKAGE}/DEBIAN/postrm cp tools/rsbackup.hourly debian/${PACKAGE}/etc/cron.hourly/rsbackup cp tools/rsbackup.daily debian/${PACKAGE}/etc/cron.daily/rsbackup cp tools/rsbackup.weekly debian/${PACKAGE}/etc/cron.weekly/rsbackup