* [Buildroot] [PATCH] package/hidapi: depends on NPTL threads
@ 2016-08-06 21:01 Romain Naour
2016-08-06 21:58 ` Thomas Petazzoni
2016-08-06 22:00 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2016-08-06 21:01 UTC (permalink / raw)
To: buildroot
hidapi use NPTL threads functions like pthread_barrier_wait() and
pthread_barrier_destroy(). So the dependency on threads support
doesn't come from libusb package but by hidapi itself.
Fixes:
[microblaze]
http://autobuild.buildroot.net/results/f7e/f7e778562aa1a65ba46f3b2f705d13ace8870805
[m68k]
http://autobuild.buildroot.net/results/2ec/2ecd240ccb15de76017942a8960faac6b3f973b4
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/hidapi/Config.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/hidapi/Config.in b/package/hidapi/Config.in
index 5119aac..f6a31ba 100644
--- a/package/hidapi/Config.in
+++ b/package/hidapi/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_HIDAPI
bool "hidapi"
depends on BR2_PACKAGE_HAS_UDEV
- depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
+ depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
select BR2_PACKAGE_LIBUSB
select BR2_PACKAGE_LIBGUDEV
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
@@ -12,5 +12,5 @@ config BR2_PACKAGE_HIDAPI
http://www.signal11.us/oss/hidapi/
-comment "hidapi needs udev /dev management and a toolchain w/ threads"
- depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
+comment "hidapi needs udev /dev management and a toolchain w/ NPTL threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_HAS_UDEV
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/hidapi: depends on NPTL threads
2016-08-06 21:01 [Buildroot] [PATCH] package/hidapi: depends on NPTL threads Romain Naour
@ 2016-08-06 21:58 ` Thomas Petazzoni
2016-08-06 22:00 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-08-06 21:58 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 6 Aug 2016 23:01:23 +0200, Romain Naour wrote:
> Fixes:
> [microblaze]
> http://autobuild.buildroot.net/results/f7e/f7e778562aa1a65ba46f3b2f705d13ace8870805
> [m68k]
> http://autobuild.buildroot.net/results/2ec/2ecd240ccb15de76017942a8960faac6b3f973b4
Those two toolchains are broken: their configuration pretends that
thread support is available, but in fact it is not. This is due to
https://patchwork.ozlabs.org/patch/656252/.
That being said, I indeed don't see an implementation of
pthread_barrier_destroy() in the linuxthreads implementation of uClibc.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/hidapi: depends on NPTL threads
2016-08-06 21:01 [Buildroot] [PATCH] package/hidapi: depends on NPTL threads Romain Naour
2016-08-06 21:58 ` Thomas Petazzoni
@ 2016-08-06 22:00 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-08-06 22:00 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 6 Aug 2016 23:01:23 +0200, Romain Naour wrote:
> hidapi use NPTL threads functions like pthread_barrier_wait() and
> pthread_barrier_destroy(). So the dependency on threads support
> doesn't come from libusb package but by hidapi itself.
>
> Fixes:
> [microblaze]
> http://autobuild.buildroot.net/results/f7e/f7e778562aa1a65ba46f3b2f705d13ace8870805
> [m68k]
> http://autobuild.buildroot.net/results/2ec/2ecd240ccb15de76017942a8960faac6b3f973b4
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> package/hidapi/Config.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-06 22:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-06 21:01 [Buildroot] [PATCH] package/hidapi: depends on NPTL threads Romain Naour
2016-08-06 21:58 ` Thomas Petazzoni
2016-08-06 22:00 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox