[Rsbackup-maint] Bug#774013: FTBFS: script `postrm' has bad permissions 644

Jonathan Wiltshire jmw at debian.org
Sat Dec 27 11:41:52 UTC 2014

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 \
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsbackup.diff
Type: text/x-diff
Size: 763 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/rsbackup-maint/attachments/20141227/4e78cb9e/attachment.diff>

More information about the Rsbackup-maint mailing list