kbd: avoid vlock conflict with busybox

Message ID 20191207072208.2773273-1-raj.khem@gmail.com
State New
Headers show
Series
  • kbd: avoid vlock conflict with busybox
Related show

Commit Message

Khem Raj Dec. 7, 2019, 7:22 a.m.
busybox as well as vlock utility from meta-oe provides vlock utility
which can conflict when with kbd if pam is a enabled distro_feature

Fixes image build errors

update-alternatives: Error: not linking <rootfs>/usr/bin/vlock to /bin/busybox.suid since <rootfs>/usr/bin/vlock exists and is not a link

ERROR: yoe-qt5-wayland-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-core/kbd/kbd_2.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.24.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Ross Burton Dec. 9, 2019, 1:16 p.m. | #1
On 07/12/2019 07:22, Khem Raj wrote:
> busybox as well as vlock utility from meta-oe provides vlock utility

> which can conflict when with kbd if pam is a enabled distro_feature

> 

> Fixes image build errors

> 

> update-alternatives: Error: not linking <rootfs>/usr/bin/vlock to /bin/busybox.suid since <rootfs>/usr/bin/vlock exists and is not a link


WARNING: kbd-2.2.0-r0 do_package: kbd: alternative target 
(/usr/bin/vlock or /usr/bin/vlock.kbd) does not exist, skipping...

vlock doesn't exist is PAM isn't enabled.

Ross
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Richard Leitner Dec. 12, 2019, 11 a.m. | #2
On 07/12/2019 08:22, Khem Raj wrote:
> busybox as well as vlock utility from meta-oe provides vlock utility

> which can conflict when with kbd if pam is a enabled distro_feature

> 

> Fixes image build errors

> 

> update-alternatives: Error: not linking <rootfs>/usr/bin/vlock to /bin/busybox.suid since <rootfs>/usr/bin/vlock exists and is not a link

> 

> ERROR: yoe-qt5-wayland-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,

> then please place them into pkg_postinst_ontarget_${PN} ().

> Deferring to first boot via 'exit 1' is no longer supported.

> 

> Signed-off-by: Khem Raj <raj.khem@gmail.com>


Tested-by: Richard Leitner <richard.leitner@skidata.com>

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-core/kbd/kbd_2.2.0.bb b/meta/recipes-core/kbd/kbd_2.2.0.bb
index 9556302ab5..4853db8a78 100644
--- a/meta/recipes-core/kbd/kbd_2.2.0.bb
+++ b/meta/recipes-core/kbd/kbd_2.2.0.bb
@@ -61,7 +61,7 @@  RDEPENDS_${PN}-ptest = "make"
 
 inherit update-alternatives
 
-ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey"
+ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey vlock"
 ALTERNATIVE_PRIORITY = "100"
 
 BBCLASSEXTEND = "native"