All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libinput: Add runtime dependencies for 'libinput measure' command
@ 2024-10-23 14:27 Bhargav Das
  2024-10-23 14:50 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Bhargav Das @ 2024-10-23 14:27 UTC (permalink / raw)
  To: openembedded-core; +Cc: Bhargav Das

From: Bhargav Das <bhargav.das@siemens.com>

When using the 'measure' subcommand such as,

libinput measure touchpad-size 800x480 /dev/input/event0

The following runtime dependencies are required.
* python3i,
* python3-libevdev,
* python3-pyudev

Signed-off-by: Bhargav Das <bhargav.das@siemens.com>
---
 meta/recipes-graphics/wayland/libinput_1.26.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/wayland/libinput_1.26.1.bb b/meta/recipes-graphics/wayland/libinput_1.26.1.bb
index 487270505a..74fbbdb000 100644
--- a/meta/recipes-graphics/wayland/libinput_1.26.1.bb
+++ b/meta/recipes-graphics/wayland/libinput_1.26.1.bb
@@ -46,4 +46,6 @@ RPROVIDES:${PN} = "libinput"
 RREPLACES:${PN} = "libinput"
 RCONFLICTS:${PN} = "libinput"
 
+RDEPENDS:${PN} = "python3 python3-libevdev python3-pyudev"
+
 FILES:${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite"
-- 
2.34.1



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

* Re: [OE-core] [PATCH] libinput: Add runtime dependencies for 'libinput measure' command
  2024-10-23 14:27 [PATCH] libinput: Add runtime dependencies for 'libinput measure' command Bhargav Das
@ 2024-10-23 14:50 ` Alexander Kanavin
  2024-10-23 16:01   ` Bhargav Das
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2024-10-23 14:50 UTC (permalink / raw)
  To: bhargav_das; +Cc: openembedded-core, Bhargav Das

On Wed, 23 Oct 2024 at 16:31, Bhargav Das via lists.openembedded.org
<bhargav_das=mentor.com@lists.openembedded.org> wrote:
> +RDEPENDS:${PN} = "python3 python3-libevdev python3-pyudev"

This will add python dependency to a very core package, and in
embedded context we cannot do that.

Rather, the real issue is that libinput component is incorrectly
packaged: library and items in /usr/libexec go to libinput, executable
in /usr/bin using those items goes to libinput-bin. Instead, libexec
items should be moved to libinput-bin, and then that package should
gain the python dependency.

Alex


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

* Re: [PATCH] libinput: Add runtime dependencies for 'libinput measure' command
  2024-10-23 14:50 ` [OE-core] " Alexander Kanavin
@ 2024-10-23 16:01   ` Bhargav Das
  0 siblings, 0 replies; 3+ messages in thread
From: Bhargav Das @ 2024-10-23 16:01 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 175 bytes --]

Thanks for the explanation and the drawbacks of adding this type of dependencies. I haven't checked libinput-bin at all. I will look at it though but it might take sometime.

[-- Attachment #2: Type: text/html, Size: 186 bytes --]

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

end of thread, other threads:[~2024-10-23 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 14:27 [PATCH] libinput: Add runtime dependencies for 'libinput measure' command Bhargav Das
2024-10-23 14:50 ` [OE-core] " Alexander Kanavin
2024-10-23 16:01   ` Bhargav Das

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.