From: Ricardo Salveti Date: Tue, 21 Jul 2020 03:09:26 +0000 (-0300) Subject: sudo: set with-rundir to /run/sudo X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~10492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ae707afa69d1d0a0496a6dc25a400a9c4404d9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sudo: set with-rundir to /run/sudo Set with-rundir to a known path instead of letting configure decide which is the best folder to store the timestamp files. This is required otherwise it might end up at /sudo, which will cause errors on a ro filesystem. Signed-off-by: Ricardo Salveti Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/sudo/sudo_1.9.1.bb b/meta/recipes-extended/sudo/sudo_1.9.1.bb index aac505af601..d6bc1a9c3a7 100644 --- a/meta/recipes-extended/sudo/sudo_1.9.1.bb +++ b/meta/recipes-extended/sudo/sudo_1.9.1.bb @@ -22,6 +22,7 @@ CACHED_CONFIGUREVARS = " \ EXTRA_OECONF += " \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \ + --with-rundir=/run/sudo \ --with-vardir=/var/lib/sudo \ " @@ -38,7 +39,7 @@ do_install_append () { chmod 0440 ${D}${sysconfdir}/sudoers # Explicitly remove the /sudo directory to avoid QA error - rmdir -p --ignore-fail-on-non-empty ${D}/sudo + rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo } FILES_${PN} += "${nonarch_libdir}/tmpfiles.d"