Package: logrotate Version: 3.20.1-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu kinetic ubuntu-patch
-- Package-specific info: Contents of /etc/logrotate.d total 84 -rw-r--r-- 1 root root 120 Sep 5 2019 alternatives -rw-r--r-- 1 root root 442 Apr 13 2020 apache2 -rw-r--r-- 1 root root 126 Dec 4 2019 apport -rw-r--r-- 1 root root 173 Apr 9 2020 apt -rw-r--r-- 1 root root 1170 Jan 19 2020 apt-cacher-ng -rw-r--r-- 1 root root 91 Apr 1 2020 bootlog -rw-r--r-- 1 root root 130 Jan 21 2019 btmp -rw-r--r-- 1 root root 181 Feb 17 2020 cups-daemon -rw-r--r-- 1 root root 112 Sep 5 2019 dpkg -rw-r--r-- 1 root root 165 Oct 8 2020 libvirtd -rw-r--r-- 1 root root 149 Oct 8 2020 libvirtd.libxl -rw-r--r-- 1 root root 147 Oct 8 2020 libvirtd.lxc -rw-r--r-- 1 root root 540 Oct 8 2020 libvirtd.qemu -rw-r--r-- 1 root root 94 Feb 8 2019 ppp -rw-r--r-- 1 root root 501 Mar 7 2019 rsyslog -rw-r--r-- 1 root root 677 Nov 28 2019 speech-dispatcher -rw-r--r-- 1 root root 244 Oct 6 2021 ubuntu-advantage-tools -rw-r--r-- 1 root root 178 Jan 21 2020 ufw -rw-r--r-- 1 root root 235 Apr 13 2020 unattended-upgrades -rw-r--r-- 1 root root 297 Jan 5 2020 winbind -rw-r--r-- 1 root root 145 Feb 19 2018 wtmp *** /tmp/tmpmw3qw25y/bug_body In Ubuntu, the attached patch was applied to achieve the following: The sed command in debian/rules was creating an extra "logrotate.confe" backup file by mistake. * debian/rules: fix sed syntax to not end up with a backup file. Thanks for considering the patch. -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.13.0-39-generic (SMP w/8 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru logrotate-3.20.1/debian/rules logrotate-3.20.1/debian/rules --- logrotate-3.20.1/debian/rules 2022-05-25 18:15:57.000000000 -0400 +++ logrotate-3.20.1/debian/rules 2022-05-26 10:33:29.000000000 -0400 @@ -15,6 +15,6 @@ # because that's where Ubuntu had been adding these lines execute_after_dh_install: ifeq ($(shell dpkg-vendor --query vendor),Ubuntu) - sed -ie "6r debian/ubuntu-logrotate.conf" \ + sed -i -e "6r debian/ubuntu-logrotate.conf" \ debian/logrotate/etc/logrotate.conf endif