* [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG
@ 2022-05-16 19:49 Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 2/3] eudev: Cleanup redundant configuration Alex Kiernan
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Alex Kiernan @ 2022-05-16 19:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Alex Kiernan, Alex Kiernan
GObject support was dropped in 252150e181c5 ("src/gudev: remove Gobject
libudev support."), but some gir support appears to still exist.
Fill out PACKAGECONFIG options.
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---
meta/recipes-core/udev/eudev_3.2.11.bb | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
index 841039f6d745..0fd1b6ab2283 100644
--- a/meta/recipes-core/udev/eudev_3.2.11.bb
+++ b/meta/recipes-core/udev/eudev_3.2.11.bb
@@ -5,7 +5,7 @@ LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
LICENSE:libudev = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod util-linux"
+DEPENDS = "gperf-native"
PROVIDES = "udev"
@@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed
UPSTREAM_CHECK_URI = "https://github.com/eudev-project/eudev/releases"
UPSTREAM_CHECK_REGEX = "eudev-(?P<pver>\d+(\.\d+)+)\.tar"
-inherit autotools update-rc.d qemu pkgconfig features_check manpages
+inherit autotools update-rc.d qemu pkgconfig features_check manpages gobject-introspection
CONFLICT_DISTRO_FEATURES = "systemd"
@@ -30,11 +30,14 @@ EXTRA_OECONF = " \
--with-rootprefix= \
"
-PACKAGECONFIG ?= "hwdb \
+PACKAGECONFIG ?= "blkid hwdb kmod \
${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
"
+PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux"
PACKAGECONFIG[hwdb] = "--enable-hwdb,--disable-hwdb"
+PACKAGECONFIG[kmod] = "--enable-kmod,--disable-kmod,kmod"
PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages"
+PACKAGECONFIG[rule-generator] = "--enable-rule-generator,--disable-rule-generator"
PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
do_install:append() {
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [OE-Core][PATCH 2/3] eudev: Cleanup redundant configuration
2022-05-16 19:49 [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG Alex Kiernan
@ 2022-05-16 19:49 ` Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 3/3] eudev: Use PACKAGE_BEFORE_PN/${PN} Alex Kiernan
2022-05-20 8:24 ` [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG richard.purdie
2 siblings, 0 replies; 5+ messages in thread
From: Alex Kiernan @ 2022-05-16 19:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Alex Kiernan, Alex Kiernan
hid2hci moved to bluez4 in 2011. The FILES changes for ${PN} and
${PN}-dev only added existing defaults into the set.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
---
meta/recipes-core/udev/eudev_3.2.11.bb | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
index 0fd1b6ab2283..fc17e119bc68 100644
--- a/meta/recipes-core/udev/eudev_3.2.11.bb
+++ b/meta/recipes-core/udev/eudev_3.2.11.bb
@@ -50,9 +50,6 @@ do_install:append() {
# Use classic network interface naming scheme
touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules
-
- # hid2hci has moved to bluez4. removed in udev as of version 169
- rm -f ${D}${base_libdir}/udev/hid2hci
}
do_install:prepend:class-target () {
@@ -67,11 +64,7 @@ INITSCRIPT_PARAMS = "start 04 S ."
PACKAGES =+ "libudev"
PACKAGES =+ "eudev-hwdb"
-FILES:${PN} += "${libexecdir} ${nonarch_base_libdir}/udev ${bindir}/udevadm"
-FILES:${PN}-dev = "${datadir}/pkgconfig/udev.pc \
- ${includedir}/libudev.h ${libdir}/libudev.so \
- ${includedir}/udev.h ${libdir}/libudev.la \
- ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc"
+FILES:${PN} += "${nonarch_base_libdir}/udev"
FILES:libudev = "${base_libdir}/libudev.so.*"
FILES:eudev-hwdb = "${sysconfdir}/udev/hwdb.d"
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [OE-Core][PATCH 3/3] eudev: Use PACKAGE_BEFORE_PN/${PN}
2022-05-16 19:49 [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 2/3] eudev: Cleanup redundant configuration Alex Kiernan
@ 2022-05-16 19:49 ` Alex Kiernan
2022-05-20 8:24 ` [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG richard.purdie
2 siblings, 0 replies; 5+ messages in thread
From: Alex Kiernan @ 2022-05-16 19:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Alex Kiernan, Alex Kiernan
Use PACKAGE_BEFORE_PN for packages which need to capture files early,
switch to idiomatic ${PN} for additional packages.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
---
meta/recipes-core/udev/eudev_3.2.11.bb | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
index fc17e119bc68..f12cc250fbdf 100644
--- a/meta/recipes-core/udev/eudev_3.2.11.bb
+++ b/meta/recipes-core/udev/eudev_3.2.11.bb
@@ -61,20 +61,19 @@ do_install:prepend:class-target () {
INITSCRIPT_NAME = "udev"
INITSCRIPT_PARAMS = "start 04 S ."
-PACKAGES =+ "libudev"
-PACKAGES =+ "eudev-hwdb"
+PACKAGE_BEFORE_PN = "libudev ${PN}-hwdb"
FILES:${PN} += "${nonarch_base_libdir}/udev"
FILES:libudev = "${base_libdir}/libudev.so.*"
-FILES:eudev-hwdb = "${sysconfdir}/udev/hwdb.d"
+FILES:${PN}-hwdb = "${sysconfdir}/udev/hwdb.d"
-RDEPENDS:eudev-hwdb += "eudev"
+RDEPENDS:${PN}-hwdb += "${PN}"
RPROVIDES:${PN} = "hotplug udev"
-RPROVIDES:eudev-hwdb += "udev-hwdb"
+RPROVIDES:${PN}-hwdb += "udev-hwdb"
PACKAGE_WRITE_DEPS += "qemu-native"
-pkg_postinst:eudev-hwdb () {
+pkg_postinst:${PN}-hwdb () {
if test -n "$D"; then
$INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX}
else
@@ -82,6 +81,6 @@ pkg_postinst:eudev-hwdb () {
fi
}
-pkg_prerm:eudev-hwdb () {
+pkg_prerm:${PN}-hwdb () {
rm -f $D${sysconfdir}/udev/hwdb.bin
}
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG
2022-05-16 19:49 [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 2/3] eudev: Cleanup redundant configuration Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 3/3] eudev: Use PACKAGE_BEFORE_PN/${PN} Alex Kiernan
@ 2022-05-20 8:24 ` richard.purdie
2022-05-20 8:29 ` Alex Kiernan
2 siblings, 1 reply; 5+ messages in thread
From: richard.purdie @ 2022-05-20 8:24 UTC (permalink / raw)
To: Alex Kiernan, openembedded-core; +Cc: Alex Kiernan
On Mon, 2022-05-16 at 20:49 +0100, Alex Kiernan wrote:
> GObject support was dropped in 252150e181c5 ("src/gudev: remove Gobject
> libudev support."), but some gir support appears to still exist.
>
> Fill out PACKAGECONFIG options.
>
> Signed-off-by: Alex Kiernan <alexk@zuma.ai>
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> meta/recipes-core/udev/eudev_3.2.11.bb | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
> index 841039f6d745..0fd1b6ab2283 100644
> --- a/meta/recipes-core/udev/eudev_3.2.11.bb
> +++ b/meta/recipes-core/udev/eudev_3.2.11.bb
> @@ -5,7 +5,7 @@ LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
> LICENSE:libudev = "LGPL-2.1-or-later"
> LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
>
> -DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod util-linux"
> +DEPENDS = "gperf-native"
>
> PROVIDES = "udev"
>
> @@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed
> UPSTREAM_CHECK_URI = "https://github.com/eudev-project/eudev/releases"
> UPSTREAM_CHECK_REGEX = "eudev-(?P<pver>\d+(\.\d+)+)\.tar"
>
> -inherit autotools update-rc.d qemu pkgconfig features_check manpages
> +inherit autotools update-rc.d qemu pkgconfig features_check manpages gobject-introspection
I like most of what this patch does, cleaning up this kind of thing is
great. I am a bit worried about the gobject-introspection inherit
though as this wasn't there before and brings with it a huge dependency
tree. For something as "core" as udev that is rather sad. Do we really
need it? Should we find a way to disable it by default?
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG
2022-05-20 8:24 ` [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG richard.purdie
@ 2022-05-20 8:29 ` Alex Kiernan
0 siblings, 0 replies; 5+ messages in thread
From: Alex Kiernan @ 2022-05-20 8:29 UTC (permalink / raw)
To: Richard Purdie
Cc: Patches and discussions about the oe-core layer, Alex Kiernan
On Fri, May 20, 2022 at 9:24 AM <richard.purdie@linuxfoundation.org> wrote:
>
> On Mon, 2022-05-16 at 20:49 +0100, Alex Kiernan wrote:
> > GObject support was dropped in 252150e181c5 ("src/gudev: remove Gobject
> > libudev support."), but some gir support appears to still exist.
> >
> > Fill out PACKAGECONFIG options.
> >
> > Signed-off-by: Alex Kiernan <alexk@zuma.ai>
> > Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> > ---
> > meta/recipes-core/udev/eudev_3.2.11.bb | 9 ++++++---
> > 1 file changed, 6 insertions(+), 3 deletions(-)
> >
> > diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
> > index 841039f6d745..0fd1b6ab2283 100644
> > --- a/meta/recipes-core/udev/eudev_3.2.11.bb
> > +++ b/meta/recipes-core/udev/eudev_3.2.11.bb
> > @@ -5,7 +5,7 @@ LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
> > LICENSE:libudev = "LGPL-2.1-or-later"
> > LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> >
> > -DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod util-linux"
> > +DEPENDS = "gperf-native"
> >
> > PROVIDES = "udev"
> >
> > @@ -19,7 +19,7 @@ SRC_URI[sha256sum] = "19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed
> > UPSTREAM_CHECK_URI = "https://github.com/eudev-project/eudev/releases"
> > UPSTREAM_CHECK_REGEX = "eudev-(?P<pver>\d+(\.\d+)+)\.tar"
> >
> > -inherit autotools update-rc.d qemu pkgconfig features_check manpages
> > +inherit autotools update-rc.d qemu pkgconfig features_check manpages gobject-introspection
>
> I like most of what this patch does, cleaning up this kind of thing is
> great. I am a bit worried about the gobject-introspection inherit
> though as this wasn't there before and brings with it a huge dependency
> tree. For something as "core" as udev that is rather sad. Do we really
> need it? Should we find a way to disable it by default?
>
Let me dig some more... basically swapping in g-i-r made the intent of
the previous glib inherits more obvious but I have a strong suspicion
there's no actual code left in eudev which will drive it and it just
wasn't removed from configure.ac as part of removing GObject.
I'll try an upstream patch to completely expunge it and see where we end up.
--
Alex Kiernan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-05-20 8:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 19:49 [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 2/3] eudev: Cleanup redundant configuration Alex Kiernan
2022-05-16 19:49 ` [OE-Core][PATCH 3/3] eudev: Use PACKAGE_BEFORE_PN/${PN} Alex Kiernan
2022-05-20 8:24 ` [OE-Core][PATCH 1/3] eudev: Convert dependencies to PACKAGECONFIG richard.purdie
2022-05-20 8:29 ` Alex Kiernan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox