Skip to contentSkip to conversation

v4l-utils: added missing dependency on udev

PATCH Superseded Athanasios Oikonomou 2 participants 4 messages Sep 9, 2017 – Sep 11, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l-utils: added missing dependency on udev

Upgrading to newer v4l-utils 1.12.3 on commit f84a551f2d419df88b85987855fec866d9e84b4a Is causing issues because libdvbv5 now require libudev in order to work (commit db42484881bf5e6a902de51fe42444ddf286d52a on v4l-utils).

First issue is missing dvb utils dvb-fe-tool, dvb-format-convert, dvbv5-daemon, dvbv5-scan, dvbv5-zap because libdvbv5 requires now libudev.

Another issue was the failure of building dvb-apps (currently removed from master) because the v4l-utils-native is missing dvb-format-convert.

This commit adds the missing udev dependency only on target and brings back the missing dvb utils.

Adding udev on native build is not possible because nothing provides udev-native.

---
 meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb +1 -0
index 42da5cc..dacc406 100644
@@ -7,6 +7,7 @@ PROVIDES = "libv4l media-ctl"
 DEPENDS = "jpeg \
            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11', '', d)}"
 DEPENDS_append_libc-musl = " argp-standalone"
+DEPENDS_append_class-target = " udev"
 
 inherit autotools gettext pkgconfig
 
Signature · 1 line
2.1.4
#1 lore raw

This causes build failure (at least with gold enabled):

../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_cancel'
../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_create'

Quoted 47 lines · Athanasios Oikonomou

Upgrading to newer v4l-utils 1.12.3 on commit f84a551f2d419df88b85987855fec866d9e84b4a
Is causing issues because libdvbv5 now require libudev in order to work (commit db42484881bf5e6a902de51fe42444ddf286d52a on v4l-utils).

First issue is missing dvb utils dvb-fe-tool, dvb-format-convert, dvbv5-daemon, dvbv5-scan, dvbv5-zap
because libdvbv5 requires now libudev.

Another issue was the failure of building dvb-apps (currently removed from master)
because the v4l-utils-native is missing dvb-format-convert.

This commit adds the missing udev dependency only on target and brings back the missing dvb utils.

Adding udev on native build is not possible because nothing provides udev-native.

---
 meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.12.3.bb +0 -0
index 42da5cc..dacc406 100644
@@ -7,6 +7,7 @@ PROVIDES = "libv4l media-ctl"
 DEPENDS = "jpeg \
            ${@bb.utils.contains('DISTRO_FEATURES', 'x11',

'virtual/libx11', '', d)}"
DEPENDS_append_libc-musl = " argp-standalone"
+DEPENDS_append_class-target = " udev"

inherit autotools gettext pkgconfig

--
2.1.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

2017-09-11 16:17 GMT+03:00 Martin Jansa <[email protected]>:

Quoted 6 lines

This causes build failure (at least with gold enabled):

../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_cancel'
../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_create'

Most probably something unexpected with pthread and gold. I guess adding -lpthread should fix that.

In order to test with gold enable just adding ld-is-gold to DISTRO_FEATURES is enough?

Thanks,
Athanasios

#3 lore raw

yes

Quoted 17 lines · Αθανάσιος Οικονόμου

2017-09-11 16:17 GMT+03:00 Martin Jansa <[email protected]>:

Quoted 6 lines

This causes build failure (at least with gold enabled):

../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_cancel'
../../lib/libdvbv5/.libs/libdvbv5.so: error: undefined reference to 'pthread_create'

Most probably something unexpected with pthread and gold. I guess adding -lpthread should fix that.

In order to test with gold enable just adding ld-is-gold to DISTRO_FEATURES is enough?

Thanks,
Athanasios