Message ID | 20250406180920.262141-1-quic_vkraleti@quicinc.com |
---|---|
State | New |
Headers | show |
Series | libinput: split udev rules into a separate package | expand |
On Sun, 6 Apr 2025 at 20:09, Viswanath Kraleti via lists.openembedded.org <quic_vkraleti=quicinc.com@lists.openembedded.org> wrote: > > Packaging udev rules separately would be helpful in case other packages > need only libinput udev rules but don't require the library itself. Can you give examples of such packages? I'm not sure I understand why someone would expect the rules to be present on target, but not the library, if libinput upstream always installs both. Alex
diff --git a/meta/recipes-graphics/wayland/libinput_1.28.1.bb b/meta/recipes-graphics/wayland/libinput_1.28.1.bb index c10422bf9b..42d2c861a9 100644 --- a/meta/recipes-graphics/wayland/libinput_1.28.1.bb +++ b/meta/recipes-graphics/wayland/libinput_1.28.1.bb @@ -46,4 +46,9 @@ RPROVIDES:${PN} = "libinput" RREPLACES:${PN} = "libinput" RCONFLICTS:${PN} = "libinput" +# split udev rules into seperate package +PACKAGE_BEFORE_PN += "${PN}-udevrules" +RDEPENDS:${PN} += "${PN}-udevrules" +FILES:${PN}-udevrules = "${nonarch_base_libdir}/udev/rules.d" + FILES:${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite"
Packaging udev rules separately would be helpful in case other packages need only libinput udev rules but don't require the library itself. Let libinput RDEPENDS on this udev rules package to ensure build consistency. Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com> --- meta/recipes-graphics/wayland/libinput_1.28.1.bb | 5 +++++ 1 file changed, 5 insertions(+)