@@ -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
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(-)