]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
logrotate: remove reference to state file in CONFFILES mathieu/master-next
authorAnuj Mittal <anuj.mittal@oss.qualcomm.com>
Fri, 7 Nov 2025 15:53:30 +0000 (21:23 +0530)
committerMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 7 Nov 2025 20:50:21 +0000 (21:50 +0100)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-extended/logrotate/logrotate_3.22.0.bb

index 7995438408291ef3d1a8b10b5d014a8a98edf619..601333ac8b95495c2a264dc85ab2f8a40257b834 100644 (file)
@@ -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