Skip to contentSkip to conversation

"libgudev" fails to build with current master

DISCUSSION Mike Looijmans 3 participants 10 messages Sep 24, 2015 – Sep 25, 2015

lore
Share & tools
lore
#0 lore raw

| checking for LIBUDEV... no

| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

#1 lore raw
Quoted 25 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Quoted 3 lines

Please consider the environment before printing this e-mail

Which init system are you using - I guess not systemd

Andreas

#2 lore raw
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 4 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

Let's assume it is not systemd. Could you try attached 0001.. for oe-core and 0002.. foe meta-oe and give feedback. I tested these for systemd distro without new issues.

Andreas

From 384c763f66d5f49b967253e8e5d272822552a524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:04:31 +0200
Subject: [PATCH] udev: add PROVIDES = "libgudev"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

With the last update of systemd libgudev was splitted out of systemd. To make packages depending on libgudev happy, a recipe building libgudev was created in meta-oe and the dependencies were modified from udev to libgudev.

This works fine for distros using systemd as init system, but distros not using build udev which provides libgudev.

---
 meta/recipes-core/udev/udev.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/udev/udev.inc +2 -0
index a00dad5..c378ae3 100644
@@ -15,6 +15,8 @@ LDFLAGS += "-lrt"
 DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux"
 RPROVIDES_${PN} = "hotplug"
 
+PROVIDES = "libgudev"
+
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://0001-Fixing-keyboard_force_release.sh-shell-script-path.patch \
            file://avoid-mouse-autosuspend.patch \
Signature · 1 line
2.1.0

From e83235a777880c343fce9f286f50678b237620dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:17:01 +0200
Subject: [PATCH] libgudev: skip recipe for distros not using systemd as init
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

for those systems udev provides libgudev

---
 meta-oe/recipes-gnome/libgudev/libgudev_230.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-gnome/libgudev/libgudev_230.bb +6 -0
index 39fc1c4..9e457d2 100644
@@ -11,3 +11,9 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 inherit gnomebase
+
+# in non systemd distros udev builds libgudev
+python () {
+    if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+        raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES")
+}
Signature · 1 line
2.1.0
#3 lore raw
Quoted 79 lines · Andreas Müller
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 4 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

Let's assume it is not systemd. Could you try attached 0001.. for oe-core and 0002.. foe meta-oe and give feedback. I tested these for systemd distro without new issues.

Andreas

From 384c763f66d5f49b967253e8e5d272822552a524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:04:31 +0200
Subject: [PATCH] udev: add PROVIDES = "libgudev"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

With the last update of systemd libgudev was splitted out of systemd. To make packages depending on libgudev happy, a recipe building libgudev was created in meta-oe and the dependencies were modified from udev to libgudev.

This works fine for distros using systemd as init system, but distros not using build udev which provides libgudev.

---
 meta/recipes-core/udev/udev.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/udev/udev.inc +2 -0
index a00dad5..c378ae3 100644
@@ -15,6 +15,8 @@ LDFLAGS += "-lrt"
 DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux"
 RPROVIDES_${PN} = "hotplug"
 
+PROVIDES = "libgudev"
+
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://0001-Fixing-keyboard_force_release.sh-shell-script-path.patch \
            file://avoid-mouse-autosuspend.patch \
Signature · 17 lines
2.1.0


From e83235a777880c343fce9f286f50678b237620dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:17:01 +0200
Subject: [PATCH] libgudev: skip recipe for distros not using systemd as init
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

for those systems udev provides libgudev

Signed-off-by: Andreas Müller <[email protected]>
---
 meta-oe/recipes-gnome/libgudev/libgudev_230.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-gnome/libgudev/libgudev_230.bb +0 -0
index 39fc1c4..9e457d2 100644

meta-oe/recipes-gnome/libgudev/libgudev_230.bb LICENSE = "LGPLv2.1" · line 19

Quoted 9 lines
meta-oe/recipes-gnome/libgudev/libgudev_230.bb +6 -0
@@ -11,3 +11,9 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 inherit gnomebase
+
+# in non systemd distros udev builds libgudev
+python () {
+    if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+        raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES")
+}

Cannot we use REQUIRED_DISTRO_FEATURES + inherit distro_features_check for this one?

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 82 lines · Martin Jansa
Quoted 81 lines · Andreas Müller
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 4 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

Let's assume it is not systemd. Could you try attached 0001.. for oe-core and 0002.. foe meta-oe and give feedback. I tested these for systemd distro without new issues.

Andreas

From 384c763f66d5f49b967253e8e5d272822552a524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:04:31 +0200
Subject: [PATCH] udev: add PROVIDES = "libgudev"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

With the last update of systemd libgudev was splitted out of systemd. To make packages depending on libgudev happy, a recipe building libgudev was created in meta-oe and the dependencies were modified from udev to libgudev.

This works fine for distros using systemd as init system, but distros not using build udev which provides libgudev.

---
 meta/recipes-core/udev/udev.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/udev/udev.inc +2 -1
index a00dad5..c378ae3 100644
@@ -15,6 +15,8 @@ LDFLAGS += "-lrt"
 DEPENDS = "glib-2.0 libusb usbutils pciutils glib-2.0-native gperf-native libxslt-native util-linux"
 RPROVIDES_${PN} = "hotplug"
 
+PROVIDES = "libgudev"
+
 SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://0001-Fixing-keyboard_force_release.sh-shell-script-path.patch \
            file://avoid-mouse-autosuspend.patch \
--

2.1.0

From e83235a777880c343fce9f286f50678b237620dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Fri, 25 Sep 2015 01:17:01 +0200
Subject: [PATCH] libgudev: skip recipe for distros not using systemd as init
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

for those systems udev provides libgudev

---
 meta-oe/recipes-gnome/libgudev/libgudev_230.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-gnome/libgudev/libgudev_230.bb +0 -0
index 39fc1c4..9e457d2 100644
@@ -11,3 +11,9 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
Quoted 11 lines

meta-oe/recipes-gnome/libgudev/libgudev_230.bb LICENSE = "LGPLv2.1" · line 19

Quoted 7 lines
meta-oe/recipes-gnome/libgudev/libgudev_230.bb +6 -0
 inherit gnomebase
+
+# in non systemd distros udev builds libgudev
+python () {
+    if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+        raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES")
+}

Cannot we use REQUIRED_DISTRO_FEATURES + inherit distro_features_check for this one?

For some reason I thought REQUIRED_DISTRO_FEATURES would cause an error message - but thinking over this is not true. So yes:
REQUIRED_DISTRO_FEATURES seems the better solution.

Andreas

#5 lore raw
In reply to Andreas Müller
Quoted 14 lines · Andreas Müller
Quoted 12 lines · Andreas Müller
Quoted 11 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Quoted 5 lines
Quoted 2 lines

Which init system are you using - I guess not systemd

Let's assume it is not systemd. Could you try attached 0001.. for oe-core and 0002.. foe meta-oe and give feedback. I tested these for systemd distro without new issues.

Applied both patches, and the errors went away. Have yet to test if it actually produces a working image as there are still a few more issues I need to look into.

M.

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

#6 lore raw
Quoted 18 lines · Mike Looijmans
Quoted 17 lines · Andreas Müller
Quoted 15 lines · Andreas Müller
Quoted 11 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

Quoted 7 lines
Quoted 3 lines

Let's assume it is not systemd. Could you try attached 0001.. for oe-core and 0002.. foe meta-oe and give feedback. I tested these for systemd distro without new issues.

Applied both patches, and the errors went away. Have yet to test if it actually produces a working image as there are still a few more issues I need to look into.

Just finished building, image runs okay on the board.

M.

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

#7 lore raw
In reply to Andreas Müller
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 5 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

sysvinit (busybox).

I don't even use udev. But some packages think they depend on udev components, so it's virtually impossible to not have udev being built.

I wonder how the init system would affect compilation of a package though.

M.

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

#8 lore raw
Quoted 16 lines · Mike Looijmans
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 5 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

Quoted 7 lines

sysvinit (busybox).

I don't even use udev. But some packages think they depend on udev components, so it's virtually impossible to not have udev being built.

I wonder how the init system would affect compilation of a package though.

When you use systemd, you get newer udev version from systemd recipe.

Standalone udev recipe (used together with other init systems) is older version (which includes libgudev), and apparently not good enough for building latest standalone libgudev.

Quoted 28 lines

M.

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

Signature · 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#9 lore raw
Quoted 23 lines · Martin Jansa
Quoted 22 lines · Mike Looijmans
Quoted 8 lines · Andreas Müller
Quoted 7 lines · Mike Looijmans
| checking for LIBUDEV... no
| configure: error: Package requirements (libudev >= 199) were not met:
|
| Requested 'libudev >= 199' but version of libudev is 182
|

...

Quoted 6 lines
Quoted 5 lines

ERROR: Task 5548 (/.../meta-oe/meta-oe/recipes-gnome/libgudev/libgudev_230.bb, do_configure) failed with exit code '1'

Which init system are you using - I guess not systemd

sysvinit (busybox).

I don't even use udev. But some packages think they depend on udev components, so it's virtually impossible to not have udev being built.

Quoted 7 lines
Quoted 1 line

I wonder how the init system would affect compilation of a package though.

When you use systemd, you get newer udev version from systemd recipe.

Standalone udev recipe (used together with other init systems) is older version (which includes libgudev), and apparently not good enough for building latest standalone libgudev.

Basic problem is that I really don't want to have any udev at all in my image, I use mdev for hotplug and other device stuff.

Systemd made things way more complex, since it provides udev, so I can't just check on "udev" being the hotplug provider in recipes.

Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail