Bug#879643: debhelper: dh_usrlocal tries to chown to root:group which fails because group is not valid

2017-10-23 Thread Paul Gevers
control: notfound -1 10.9.1

I just checked and the current version of cacti in sid/buster was build
with debhelper 10.9.1, which resulted in the correct values.

Paul



signature.asc
Description: OpenPGP digital signature


Bug#879643: debhelper: dh_usrlocal tries to chown to root:group which fails because group is not valid

2017-10-23 Thread Paul Gevers
Package: debhelper
Version: 10.10.2
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

dh_usrlocal adds the following to my maintainerscript for cacti:
# Automatically added by dh_usrlocal/10.10.2
if [ "$1" = configure ]; then
(
while read line; do
set -- $line
dir="$1"; mode="$2"; user="$3"; group="$4"
if [ ! -e "$dir" ]; then
if mkdir "$dir" 2>/dev/null; then
chown "$user":"$group" "$dir"
chmod "$mode" "$dir"
fi
fi
done
) << DATA
/usr/local/share 02775 root group
/usr/local/share/cacti 02775 root group
/usr/local/share/cacti/resource 02775 root group
/usr/local/share/cacti/resource/script_queries 02775 root group
/usr/local/share/cacti/resource/script_server 02775 root group
/usr/local/share/cacti/resource/snmp_queries 02775 root group
/usr/local/share/cacti/scripts 02775 root group
DATA

which is wrong, because group doesn't exist on my system. As a result, the
generated package fails to install (hence the severity). The manual says it
should be saying staff instead. The directories are created by a debian/dirs
file, so they are not created by me with the wrong group during build time
(anyways, also in my build env, that group doesn't exist).

Paul

-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAlnuR+kACgkQnFyZ6wW9
dQpdEQf/WPcOalD1VZanGIqEYl0H+OaB0gzfmJqfbKcKM5ZOEBeMvtEG1GjlDaG4
PaXUKhlW+NGHwrzN44BrXT76KXkS64eaMYn/H8eZX8TQ+RBKvOmpHHoXTJazCPsY
MW51x+lc77BYANsrfk7Bjvsje69WP4S+rxRCL2NJR01rKJXeqnTfSTqClL8b6KQO
X1rwvYx1N1NYd7P6m/LD2PWniiiYBGKmKV8Ij95T99Hxtg3vyJPm4bWjwNTpSq4R
hkEpxJRH4zVqLBzx1bzACKYoag32uDCFR1lGHQ2qIg1ghHvayCYgyDSNNJjbtdp+
9YdKxJ58qdyRUcMGwlSM4kB7vBMoqg==
=UPbC
-END PGP SIGNATURE-