From d24b1734a7a8b1069426fbb8ce80328959560ea9 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Fri, 11 May 2018 06:52:52 +0000 Subject: [PATCH] Pass the basename of the tmpfiles to "systemd-tmpfiles --create" Signed-off-by: Niels Thykier Bug: upstream, https://salsa.debian.org/debian/debhelper/commit/d24b1734a7a8b1069426fbb8ce80328959560ea9 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1748147 diff -Nru debhelper-11.2.1ubuntu1/debian/changelog debhelper-11.2.1ubuntu2/debian/changelog --- debhelper-11.2.1ubuntu1/debian/changelog 2018-05-02 05:53:25.000000000 -0700 +++ debhelper-11.2.1ubuntu2/debian/changelog 2018-05-24 22:19:51.000000000 -0700 @@ -1,3 +1,9 @@ +debhelper (11.2.1ubuntu2) cosmic; urgency=medium + + * Support overrides in tmpfiles.d + + -- Seyeong Kim Thu, 24 May 2018 22:19:34 -0700 + debhelper (11.2.1ubuntu1) cosmic; urgency=medium * Merge from Debian unstable. Remaining changes: diff -Nru debhelper-11.2.1ubuntu1/dh_installinit debhelper-11.2.1ubuntu2/dh_installinit --- debhelper-11.2.1ubuntu1/dh_installinit 2018-04-07 04:15:54.000000000 -0700 +++ debhelper-11.2.1ubuntu2/dh_installinit 2018-05-24 22:18:29.000000000 -0700 @@ -326,7 +326,7 @@ $name =~ s/^\Q$tmp\E//g; if ($name =~ m,^/usr/lib/tmpfiles\.d/, || $name =~ m,^/etc/tmpfiles\.d/,) { - push @tmpfiles, $name; + push(@tmpfiles, basename($name)); } }, no_chdir => 1, diff -Nru debhelper-11.2.1ubuntu1/dh_installsystemd debhelper-11.2.1ubuntu2/dh_installsystemd --- debhelper-11.2.1ubuntu1/dh_installsystemd 2018-04-07 04:15:54.000000000 -0700 +++ debhelper-11.2.1ubuntu2/dh_installsystemd 2018-05-24 22:18:29.000000000 -0700 @@ -337,8 +337,7 @@ wanted => sub { my $name = $File::Find::name; return unless -f $name; - $name =~ s/^\Q$tmpdir\E//g; - push(@tmpfiles, $name); + push(@tmpfiles, basename($name)); }, no_chdir => 1, }, @dirs) if @dirs;