mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
sudo: add /etc/sudoers to sudo-lib conffiles
When OE-core commit 788c95c3bb8ede0d3d6a8f125743ac47c0b3f00e created the
`sudo-lib` subpackage, /etc/sudoers was moved from `sudo` to `sudo-lib`.
The commit didn't update the `CONFFILES:${PN}` assignment in sudo.inc,
however. So the `sudo` base package continued to advertise conffile
ownership of /etc/sudoers, though it did not contain it.
Move the CONFFILES assignment to the sudo.bb file, since it is
packaging-related. Change the package owner to the `sudo-lib`
subpackage, since it is the rightful file-owner.
(From OE-Core rev: 7d688f0ece8fa7e3118cde0c79bbcc56048a2bb5)
Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
72f997c928
commit
fc2b2c7927
@@ -24,8 +24,6 @@ PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
|
||||
PACKAGECONFIG[pam-wheel] = ",,,pam-plugin-wheel"
|
||||
|
||||
CONFFILES:${PN} = "${sysconfdir}/sudoers"
|
||||
|
||||
EXTRA_OECONF = "--with-editor=${base_bindir}/vi --with-env-editor"
|
||||
|
||||
EXTRA_OECONF:append:libc-musl = " --disable-hardening "
|
||||
|
||||
@@ -48,6 +48,8 @@ do_install:append () {
|
||||
FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*.la \
|
||||
${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la"
|
||||
|
||||
CONFFILES:${PN}-lib = "${sysconfdir}/sudoers"
|
||||
|
||||
SUDO_PACKAGES = "${PN}-sudo\
|
||||
${PN}-lib"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user