[debhelper-devel] Bug#894510: debhelper: Because it is listing tmpfiles in systemd's only, conf overriding is not working
Seyeong Kim
seyeong.kim at canonical.com
Sat Mar 31 15:58:21 UTC 2018
Package: debhelper
Version: 9.20160115ubuntu3
Severity: normal
Tags: d-i
In autoscripts/postinst-init-tmpfiles, There is TMPFILE containing conf in systemd pkg only.
Then if there is 00rsyslog.conf from rsyslog pkg. and installing or upgrading systemd
/var/log's permission is 755(which is default) not 775(which is in 00rsyslog.conf)
overriding doesn't work when upgrading.
Please refer to below LP
ubuntu lp bug : https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1748147
removing TMPFILE from autoscripts/postinst-init-tmpfiles solves this issue.
e.g. change like below
systemd-tmpfiles --create #TMPFILES# >/dev/null || true
to
systemd-tmpfiles --create >/dev/null || true
and removing related code from dh_installinit maybe needed
e.g. below kind of part
if (compat(10) && !$dh{NOSCRIPTS}) {
# Include postinst-init-tmpfiles if the package ships any files
# in /usr/lib/tmpfiles.d or /etc/tmpfiles.d
my @tmpfiles;
find({
wanted => sub {
my $name = $File::Find::name;
return unless -f $name;
$name =~ s/^\Q$tmp\E//g;
if ($name =~ m,^/usr/lib/tmpfiles\.d/, ||
$name =~ m,^/etc/tmpfiles\.d/,) {
push @tmpfiles, $name;
}
},
no_chdir => 1,
}, $tmp);
if (@tmpfiles > 0) {
autoscript($package,"postinst", "postinst-init-tmpfiles",
"s,#TMPFILES#," . join(" ", sort @tmpfiles).",g");
}
}
Is there any reason that TMPFILE list is there?
-- System Information:
Debian Release: stretch/sid
APT prefers xenial-updates
APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.4.0-87-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=ko_KR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debhelper depends on:
ii autotools-dev 20150820.1
ii binutils 2.26.1-1ubuntu1~16.04.6
ii dh-strip-nondeterminism 0.015-1
ii dpkg 1.18.4ubuntu1.2
ii dpkg-dev 1.18.4ubuntu1.4
ii file 1:5.25-2ubuntu1
ii libdpkg-perl 1.18.4ubuntu1.4
ii man-db 2.7.5-1
ii perl 5.22.1-9ubuntu0.2
ii po-debconf 1.0.19
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none>
-- no debconf information
More information about the debhelper-devel
mailing list