All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbd: avoid vlock conflict with busybox
@ 2019-12-07  7:22 Khem Raj
  2019-12-07  7:32 ` ✗ patchtest: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Khem Raj @ 2019-12-07  7:22 UTC (permalink / raw)
  To: openembedded-core

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

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"
-- 
2.24.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* ✗ patchtest: failure for kbd: avoid vlock conflict with busybox
  2019-12-07  7:22 [PATCH] kbd: avoid vlock conflict with busybox Khem Raj
@ 2019-12-07  7:32 ` Patchwork
  2019-12-09 13:16 ` [PATCH] " Ross Burton
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2019-12-07  7:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

== Series Details ==

Series: kbd: avoid vlock conflict with busybox
Revision: 1
URL   : https://patchwork.openembedded.org/series/21511/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at d40853b10d)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kbd: avoid vlock conflict with busybox
  2019-12-07  7:22 [PATCH] kbd: avoid vlock conflict with busybox Khem Raj
  2019-12-07  7:32 ` ✗ patchtest: failure for " Patchwork
@ 2019-12-09 13:16 ` Ross Burton
  2019-12-12 11:00 ` Richard Leitner
  2019-12-14  3:59 ` [PATCH V2] " Hongxu Jia
  3 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2019-12-09 13:16 UTC (permalink / raw)
  To: openembedded-core

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kbd: avoid vlock conflict with busybox
  2019-12-07  7:22 [PATCH] kbd: avoid vlock conflict with busybox Khem Raj
  2019-12-07  7:32 ` ✗ patchtest: failure for " Patchwork
  2019-12-09 13:16 ` [PATCH] " Ross Burton
@ 2019-12-12 11:00 ` Richard Leitner
  2019-12-14  3:59 ` [PATCH V2] " Hongxu Jia
  3 siblings, 0 replies; 5+ messages in thread
From: Richard Leitner @ 2019-12-12 11:00 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH V2] kbd: avoid vlock conflict with busybox
  2019-12-07  7:22 [PATCH] kbd: avoid vlock conflict with busybox Khem Raj
                   ` (2 preceding siblings ...)
  2019-12-12 11:00 ` Richard Leitner
@ 2019-12-14  3:59 ` Hongxu Jia
  3 siblings, 0 replies; 5+ messages in thread
From: Hongxu Jia @ 2019-12-14  3:59 UTC (permalink / raw)
  To: ross.burton; +Cc: openembedded-core

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>

The vlock doesn't exist if PAM isn't enabled.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/kbd/kbd_2.2.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/kbd/kbd_2.2.0.bb b/meta/recipes-core/kbd/kbd_2.2.0.bb
index 9556302..f252161 100644
--- a/meta/recipes-core/kbd/kbd_2.2.0.bb
+++ b/meta/recipes-core/kbd/kbd_2.2.0.bb
@@ -61,7 +61,8 @@ RDEPENDS_${PN}-ptest = "make"
 
 inherit update-alternatives
 
-ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey"
+ALTERNATIVE_${PN} = "chvt deallocvt fgconsole openvt showkey \
+                     ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'vlock','', d)}"
 ALTERNATIVE_PRIORITY = "100"
 
 BBCLASSEXTEND = "native"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-12-14  3:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-07  7:22 [PATCH] kbd: avoid vlock conflict with busybox Khem Raj
2019-12-07  7:32 ` ✗ patchtest: failure for " Patchwork
2019-12-09 13:16 ` [PATCH] " Ross Burton
2019-12-12 11:00 ` Richard Leitner
2019-12-14  3:59 ` [PATCH V2] " Hongxu Jia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.