All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
@ 2013-02-09 22:27 Gilles Talis
  2013-02-10 10:02 ` Peter Korsgaard
  2013-02-11  8:18 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Gilles Talis @ 2013-02-09 22:27 UTC (permalink / raw)
  To: buildroot

Fixes:
http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
 package/libtirpc/Config.in |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
index 7e891b4..f2a6f83 100644
--- a/package/libtirpc/Config.in
+++ b/package/libtirpc/Config.in
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBTIRPC
 	bool "libtirpc"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  Libtirpc is a port of Sun's Transport-Independent RPC
 	  library to Linux.
 
 	  http://sourceforge.net/projects/libtirpc/
+
+comment "libtirpc requires a toolchain with threads support"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
-- 
1.7.10.4

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
  2013-02-09 22:27 [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support Gilles Talis
@ 2013-02-10 10:02 ` Peter Korsgaard
  2013-02-10 17:54   ` Gilles Talis
  2013-02-11  8:18 ` Thomas Petazzoni
  1 sibling, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2013-02-10 10:02 UTC (permalink / raw)
  To: buildroot

>>>>> "Gilles" == Gilles Talis <gilles.talis@gmail.com> writes:

 Gilles> Fixes:
 Gilles> http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f

 Gilles> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
 Gilles> ---
 Gilles>  package/libtirpc/Config.in |    4 ++++
 Gilles>  1 file changed, 4 insertions(+)

 Gilles> diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
 Gilles> index 7e891b4..f2a6f83 100644
 Gilles> --- a/package/libtirpc/Config.in
 Gilles> +++ b/package/libtirpc/Config.in
 Gilles> @@ -1,7 +1,11 @@
 Gilles>  config BR2_PACKAGE_LIBTIRPC
 Gilles>  	bool "libtirpc"
 Gilles> +	depends on BR2_TOOLCHAIN_HAS_THREADS

Thanks, but you also need to propagate this dependency to libtirpc's
reverse dependencies:

git grep -l 'select BR2_PACKAGE_LIBTIRPC'
package/conntrack-tools/Config.in
package/lmbench/Config.in
package/nfs-utils/Config.in
package/quota/Config.in
package/rpcbind/Config.in

Care to fix that up and resend?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
  2013-02-10 10:02 ` Peter Korsgaard
@ 2013-02-10 17:54   ` Gilles Talis
  0 siblings, 0 replies; 7+ messages in thread
From: Gilles Talis @ 2013-02-10 17:54 UTC (permalink / raw)
  To: buildroot

Good point.
Will fix and resend.
Gilles.

2013/2/10 Peter Korsgaard <jacmet@uclibc.org>

> >>>>> "Gilles" == Gilles Talis <gilles.talis@gmail.com> writes:
>
>  Gilles> Fixes:
>  Gilles>
> http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f
>
>  Gilles> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
>  Gilles> ---
>  Gilles>  package/libtirpc/Config.in |    4 ++++
>  Gilles>  1 file changed, 4 insertions(+)
>
>  Gilles> diff --git a/package/libtirpc/Config.in
> b/package/libtirpc/Config.in
>  Gilles> index 7e891b4..f2a6f83 100644
>  Gilles> --- a/package/libtirpc/Config.in
>  Gilles> +++ b/package/libtirpc/Config.in
>  Gilles> @@ -1,7 +1,11 @@
>  Gilles>  config BR2_PACKAGE_LIBTIRPC
>  Gilles>        bool "libtirpc"
>  Gilles> +      depends on BR2_TOOLCHAIN_HAS_THREADS
>
> Thanks, but you also need to propagate this dependency to libtirpc's
> reverse dependencies:
>
> git grep -l 'select BR2_PACKAGE_LIBTIRPC'
> package/conntrack-tools/Config.in
> package/lmbench/Config.in
> package/nfs-utils/Config.in
> package/quota/Config.in
> package/rpcbind/Config.in
>
> Care to fix that up and resend?
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130210/50a1720c/attachment-0001.html>

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
  2013-02-09 22:27 [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support Gilles Talis
  2013-02-10 10:02 ` Peter Korsgaard
@ 2013-02-11  8:18 ` Thomas Petazzoni
  2013-05-16 19:02   ` Samuel Martin
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-02-11  8:18 UTC (permalink / raw)
  To: buildroot

Dear Gilles Talis,

On Sat,  9 Feb 2013 14:27:14 -0800, Gilles Talis wrote:
> Fixes:
> http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f
> 
> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>

I believe libtirpc pthread usage could be made optional, and that would
probably be an useful contribution upstream, and avoid us from having
to add this toolchain dependency.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
  2013-02-11  8:18 ` Thomas Petazzoni
@ 2013-05-16 19:02   ` Samuel Martin
  2013-08-30  6:41     ` Samuel Martin
  0 siblings, 1 reply; 7+ messages in thread
From: Samuel Martin @ 2013-05-16 19:02 UTC (permalink / raw)
  To: buildroot

Hi Thomas, all,

2013/2/11 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>:
> Dear Gilles Talis,
>
> On Sat,  9 Feb 2013 14:27:14 -0800, Gilles Talis wrote:
>> Fixes:
>> http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f
>>
>> Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
>
> I believe libtirpc pthread usage could be made optional, and that would
> probably be an useful contribution upstream, and avoid us from having
> to add this toolchain dependency.

Some of the recent libtirpc build failures are also caused by this.

Looking at the source, it seems that's a bug the AC_CHECK_LIB call that does not
do anything when pthead is not found; though it unconditionally
include pthread.h
in many source files, and does not use at all the HAVE_LIBPTHREAD symbol.

Regards,

-- 
Samuel

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
  2013-05-16 19:02   ` Samuel Martin
@ 2013-08-30  6:41     ` Samuel Martin
  0 siblings, 0 replies; 7+ messages in thread
From: Samuel Martin @ 2013-08-30  6:41 UTC (permalink / raw)
  To: buildroot

Ping?

This patch should fix the following autobuilder failures:
       arm |                 libtirpc-0.2.2 | NOK |
http://autobuild.buildroot.net/results/446d49bcf2b139ccc495d867d898673969823148/
       arm |                 libtirpc-0.2.2 | NOK |
http://autobuild.buildroot.net/results/4d84dfd309d313c8d0248d33bdee43bc7bbfa187/

Regards,

-- 
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130830/03347403/attachment.html>

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

* [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support
@ 2013-05-16 19:03 Samuel Martin
  0 siblings, 0 replies; 7+ messages in thread
From: Samuel Martin @ 2013-05-16 19:03 UTC (permalink / raw)
  To: buildroot

From: "gilles.talis@gmail.com" <gilles.talis@gmail.com>

Fixes:
http://autobuild.buildroot.org/results/8ba720f47f74df94b8c70ac4befd47c47ce65f2f

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: "Samuel Martin" <s.martin49@gmail.com>
---
 package/conntrack-tools/Config.in | 5 +++--
 package/libtirpc/Config.in        | 4 ++++
 package/lmbench/Config.in         | 4 ++++
 package/nfs-utils/Config.in       | 5 +++--
 package/quota/Config.in           | 5 +++--
 package/rpcbind/Config.in         | 4 ++++
 6 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/package/conntrack-tools/Config.in b/package/conntrack-tools/Config.in
index 50f2000..beac016 100644
--- a/package/conntrack-tools/Config.in
+++ b/package/conntrack-tools/Config.in
@@ -3,6 +3,7 @@ config BR2_PACKAGE_CONNTRACK_TOOLS
 	depends on BR2_INET_IPV6
 	depends on BR2_LARGEFILE
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
 	select BR2_PACKAGE_LIBNETFILTER_CTHELPER
 	select BR2_PACKAGE_LIBNETFILTER_CTTIMEOUT
@@ -16,5 +17,5 @@ config BR2_PACKAGE_CONNTRACK_TOOLS
 
 	  http://www.netfilter.org/projects/conntrack-tools/
 
-comment "conntrack-tools requires a toolchain with IPV6 and LARGEFILE support"
-	depends on !BR2_INET_IPV6 || !BR2_LARGEFILE
+comment "conntrack-tools requires a toolchain with IPV6, LARGEFILE and thread support"
+	depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
index 7e891b4..f2a6f83 100644
--- a/package/libtirpc/Config.in
+++ b/package/libtirpc/Config.in
@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBTIRPC
 	bool "libtirpc"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	  Libtirpc is a port of Sun's Transport-Independent RPC
 	  library to Linux.
 
 	  http://sourceforge.net/projects/libtirpc/
+
+comment "libtirpc requires a toolchain with threads support"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/lmbench/Config.in b/package/lmbench/Config.in
index d710e1f..8492e9c 100644
--- a/package/lmbench/Config.in
+++ b/package/lmbench/Config.in
@@ -1,8 +1,12 @@
 config BR2_PACKAGE_LMBENCH
 	bool "lmbench"
+	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	help
 	  LMbench is a suite of simple, portable,
 	  ANSI/C microbenchmarks for UNIX/POSIX.
 
 	  http://sourceforge.net/projects/lmbench/
+
+comment "lmbench requires a toolchain with thread support"
+	depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in
index fa35f35..4b5d413 100644
--- a/package/nfs-utils/Config.in
+++ b/package/nfs-utils/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_NFS_UTILS
 	bool "nfs-utils"
+	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	depends on BR2_LARGEFILE
 	help
@@ -9,8 +10,8 @@ config BR2_PACKAGE_NFS_UTILS
 
 	  http://sourceforge.net/projects/nfs
 
-comment "nfs-utils requires a toolchain with LARGEFILE support"
-	depends on !BR2_LARGEFILE
+comment "nfs-utils requires a toolchain with LARGEFILE and thread support"
+	depends on !BR2_LARGEFILE || !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
 
 menu "NFS utilities selection"
 	depends on BR2_PACKAGE_NFS_UTILS
diff --git a/package/quota/Config.in b/package/quota/Config.in
index 5127a9a..e086c0c 100644
--- a/package/quota/Config.in
+++ b/package/quota/Config.in
@@ -4,6 +4,7 @@ config BR2_PACKAGE_QUOTA
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_MMU # fork()
 	depends on !(BR2_microblazeel || BR2_microblazebe) # util-linux
+	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_BINARIES
 	select BR2_PACKAGE_UTIL_LINUX_MOUNT
@@ -14,5 +15,5 @@ config BR2_PACKAGE_QUOTA
 
 	  http://sourceforge.net/projects/linuxquota/
 
-comment "quota requires a toolchain with LARGEFILE + WCHAR support"
-	depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
+comment "quota requires a toolchain with LARGEFILE, WCHAR and thread support"
+	depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
diff --git a/package/rpcbind/Config.in b/package/rpcbind/Config.in
index 1bdcd9e..ac18036 100644
--- a/package/rpcbind/Config.in
+++ b/package/rpcbind/Config.in
@@ -2,7 +2,11 @@ config BR2_PACKAGE_RPCBIND
 	bool "rpcbind"
 	# We really need libtirpc and can't work with the native RPC
 	# implementation of toolchains.
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_LIBTIRPC
 	help
 	  The rpcbind utility is a server that converts RPC program numbers
 	  into universal addresses.
+
+comment "rpcbind requires a toolchain with thread support"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
-- 
1.8.2.3

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

end of thread, other threads:[~2013-08-30  6:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09 22:27 [Buildroot] [PATCH 1/1] libtirpc: requires toolchain with threads support Gilles Talis
2013-02-10 10:02 ` Peter Korsgaard
2013-02-10 17:54   ` Gilles Talis
2013-02-11  8:18 ` Thomas Petazzoni
2013-05-16 19:02   ` Samuel Martin
2013-08-30  6:41     ` Samuel Martin
2013-05-16 19:03 Samuel Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.