Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support
@ 2013-10-08 21:27 Jerzy Grzegorek
  2013-10-08 21:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jerzy Grzegorek @ 2013-10-08 21:27 UTC (permalink / raw)
  To: buildroot

Fixes:
  http://autobuild.buildroot.org/results/609/6099baac4bb469ae18aab6512233db25183eaabd/

Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
---
 package/x11r7/xlib_libpthread-stubs/Config.in |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/x11r7/xlib_libpthread-stubs/Config.in b/package/x11r7/xlib_libpthread-stubs/Config.in
index fb53585..b2df95a 100644
--- a/package/x11r7/xlib_libpthread-stubs/Config.in
+++ b/package/x11r7/xlib_libpthread-stubs/Config.in
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
 	bool "libpthread-stubs"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  This library provides weak aliases for pthread functions not
 	  provided in libc or otherwise available by default.
 
 	  http://xcb.freedesktop.org/
+
+comment "xlib_libpthread-stubs needs a toolchain with thread support"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support
  2013-10-08 21:27 [Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support Jerzy Grzegorek
@ 2013-10-08 21:51 ` Thomas Petazzoni
  2013-10-08 21:59   ` Jerzy Grzegorek
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2013-10-08 21:51 UTC (permalink / raw)
  To: buildroot

Dear Jerzy Grzegorek,

On Tue,  8 Oct 2013 23:27:17 +0200, Jerzy Grzegorek wrote:

>  config BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
>  	bool "libpthread-stubs"
> +	depends on BR2_TOOLCHAIN_HAS_THREADS

No, that doesn't work. When you add a toolchain dependency to one
package, you must propagate it to the reverse dependencies of this
package that are selecting this package.

For example, libdrm and libxcb are both selecting
XLIB_LIBPTHREAD_STUBS, but they do not have the
BR2_TOOLCHAIN_HAS_THREADS, so you should add this dependency to libdrm
and libxcb as well.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support
  2013-10-08 21:51 ` Thomas Petazzoni
@ 2013-10-08 21:59   ` Jerzy Grzegorek
  0 siblings, 0 replies; 3+ messages in thread
From: Jerzy Grzegorek @ 2013-10-08 21:59 UTC (permalink / raw)
  To: buildroot


Hi Thomas,

> Dear Jerzy Grzegorek,
>
> On Tue,  8 Oct 2013 23:27:17 +0200, Jerzy Grzegorek wrote:
>
>>   config BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
>>   	bool "libpthread-stubs"
>> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> No, that doesn't work. When you add a toolchain dependency to one
> package, you must propagate it to the reverse dependencies of this
> package that are selecting this package.
>
> For example, libdrm and libxcb are both selecting
> XLIB_LIBPTHREAD_STUBS, but they do not have the
> BR2_TOOLCHAIN_HAS_THREADS, so you should add this dependency to libdrm
> and libxcb as well.

Thanks for clarification.

Regards,
Jerzy


> Best regards,
>
> Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-08 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 21:27 [Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support Jerzy Grzegorek
2013-10-08 21:51 ` Thomas Petazzoni
2013-10-08 21:59   ` Jerzy Grzegorek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox