diff mbox series

logrotate: remove reference to state file in CONFFILES

Message ID 20251107155330.1651252-1-anuj.mittal@oss.qualcomm.com
State New
Headers show
Series logrotate: remove reference to state file in CONFFILES | expand

Commit Message

Anuj Mittal Nov. 7, 2025, 3:53 p.m. UTC
Since commit a1f7225884 (logrotate: Do not create logrotate.status file) in
poky, logrotate.status is not installed or packaged. Remove reference to it from
CONFFILES and don't try to create /var/lib which is already taken care of by
base-files.

Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
---
 meta/recipes-extended/logrotate/logrotate_3.22.0.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-extended/logrotate/logrotate_3.22.0.bb b/meta/recipes-extended/logrotate/logrotate_3.22.0.bb
index 7995438408..601333ac8b 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.22.0.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.22.0.bb
@@ -26,7 +26,7 @@  PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"
 PACKAGECONFIG[acl] = ",,acl"
 PACKAGECONFIG[selinux] = ",,libselinux"
 
-CONFFILES:${PN} += "${localstatedir}/lib/logrotate.status \
+CONFFILES:${PN} += "\
                     ${sysconfdir}/logrotate.conf \
                     ${sysconfdir}/logrotate.d/btmp \
                     ${sysconfdir}/logrotate.d/wtmp"
@@ -64,7 +64,6 @@  LOGROTATE_SYSTEMD_TIMER_PERSISTENT ?= "true"
 do_install(){
     oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir}
     mkdir -p ${D}${sysconfdir}/logrotate.d
-    mkdir -p ${D}${localstatedir}/lib
     install -p -m 644 ${S}/examples/logrotate.conf ${D}${sysconfdir}/logrotate.conf
     install -p -m 644 ${S}/examples/btmp ${D}${sysconfdir}/logrotate.d/btmp
     install -p -m 644 ${S}/examples/wtmp ${D}${sysconfdir}/logrotate.d/wtmp