All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] Fix problems related to Blackfin lacking AI_ADDRCONFIG
@ 2013-05-28 19:45 Thomas Petazzoni
  2013-05-28 19:45 ` [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used Thomas Petazzoni
  2013-05-28 19:45 ` [Buildroot] [PATCH 2/2] libtirpc: " Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-05-28 19:45 UTC (permalink / raw)
  To: buildroot

Hello,

The Blackfin external toolchains provided by Analog Devices don't have
AI_ADDRCONFIG enabled in their uClibc configuration. But since
Buildroot has it enabled in its default uClibc configuration, our
packages make the assumption that it is available.

This causes some build failures in the autobuilders (and possibly for
users), so this set of two patches prevent the selection of packages
that require AI_ADDRCONFIG when a Blackfin toolchain from ADI is used.

Long term, it would be better if the toolchains from ADI had
AI_ADDRCONFIG enabled in their uClibc configuration.

Best regards,

Thomas

Thomas Petazzoni (2):
  czmq: prevent selection when ADI Blackfin external toolchains are
    used
  libtirpc: prevent selection when ADI Blackfin external toolchains are
    used

 package/czmq/Config.in     |    4 ++++
 package/filemq/Config.in   |    4 ++++
 package/libtirpc/Config.in |    7 +++++++
 package/rpcbind/Config.in  |    4 ++++
 package/zyre/Config.in     |    4 ++++
 5 files changed, 23 insertions(+)

-- 
1.7.9.5

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

* [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used
  2013-05-28 19:45 [Buildroot] [PATCH 0/2] Fix problems related to Blackfin lacking AI_ADDRCONFIG Thomas Petazzoni
@ 2013-05-28 19:45 ` Thomas Petazzoni
  2013-05-29 19:21   ` Peter Korsgaard
  2013-05-28 19:45 ` [Buildroot] [PATCH 2/2] libtirpc: " Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-05-28 19:45 UTC (permalink / raw)
  To: buildroot

czmq fails to build with the Blackfin external toolchains provided by
Analog Devices, because their uClibc configuration doesn't include
AI_ADDRCONFIG. In order to prevent such build failures to happen, we
simply prevent the selection of czmq or one of its reverse
dependencies when such toolchains are used.

This fixes:

  http://autobuild.buildroot.org/results/821/82140fac4c2a2cef3f38f06cada8f17fd7f0078b/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/czmq/Config.in   |    4 ++++
 package/filemq/Config.in |    4 ++++
 package/zyre/Config.in   |    4 ++++
 3 files changed, 12 insertions(+)

diff --git a/package/czmq/Config.in b/package/czmq/Config.in
index 7e4205e..0f16c2e 100644
--- a/package/czmq/Config.in
+++ b/package/czmq/Config.in
@@ -6,6 +6,10 @@ config BR2_PACKAGE_CZMQ
 	depends on BR2_LARGEFILE # util-linux
 	depends on BR2_USE_WCHAR # util-linux
 	depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
+	# uClibc toolchains provided by ADI don't have AI_ADDRCONFIG
+	# support
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && \
+		!BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R1
 	help
 	  High-level C Binding for 0MQ
 
diff --git a/package/filemq/Config.in b/package/filemq/Config.in
index d25f03f..6f9fdb0 100644
--- a/package/filemq/Config.in
+++ b/package/filemq/Config.in
@@ -8,6 +8,10 @@ config BR2_PACKAGE_FILEMQ
 	depends on BR2_LARGEFILE # util-linux
 	depends on BR2_USE_WCHAR # util-linux
 	depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
+	# uClibc toolchains provided by ADI don't have AI_ADDRCONFIG
+	# support, which is needed by czmq
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && \
+		!BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R1
 	help
 	  FileMQ is a publish-subscribe file service based on 0MQ.
 
diff --git a/package/zyre/Config.in b/package/zyre/Config.in
index f181ac8..0ae0eec 100644
--- a/package/zyre/Config.in
+++ b/package/zyre/Config.in
@@ -5,6 +5,10 @@ config BR2_PACKAGE_ZYRE
 	depends on BR2_LARGEFILE # filemq
 	depends on BR2_USE_WCHAR # filemq
 	depends on BR2_TOOLCHAIN_HAS_THREADS # filemq
+	# uClibc toolchains provided by ADI don't have AI_ADDRCONFIG
+	# support, needed by filemq -> czmq
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && \
+		!BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R1
 	select BR2_PACKAGE_FILEMQ
 	help
 	  An open-source framework for proximity-based peer-to-peer
-- 
1.7.9.5

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

* [Buildroot] [PATCH 2/2] libtirpc: prevent selection when ADI Blackfin external toolchains are used
  2013-05-28 19:45 [Buildroot] [PATCH 0/2] Fix problems related to Blackfin lacking AI_ADDRCONFIG Thomas Petazzoni
  2013-05-28 19:45 ` [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used Thomas Petazzoni
@ 2013-05-28 19:45 ` Thomas Petazzoni
  2013-05-29 19:22   ` Peter Korsgaard
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2013-05-28 19:45 UTC (permalink / raw)
  To: buildroot

libtirpc fails to build with the Blackfin external toolchains provided
by Analog Devices, because their uClibc configuration doesn't include
AI_ADDRCONFIG. In order to prevent such build failures to happen, we
simply prevent libtirpc from being selected when such toolchains are
used. This is not a big problem, since they provide native RPC
support.

Also, since they provide native RPC, we don't have to propagate this
new dependency to the reverse dependencies of libtirpc, because they
all use native RPC when available. The exception to this rule is the
rpcbind package, which can only use the libtirpc implementation of
RPCs, and not the native one of C libraries. Therefore, the dependency
is propagated to the rpcbind package.

Fixes:

  http://autobuild.buildroot.org/results/58b/58b16449065c16afce11ba120db56839efb2b1ea/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libtirpc/Config.in |    7 +++++++
 package/rpcbind/Config.in  |    4 ++++
 2 files changed, 11 insertions(+)

diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
index 7e891b4..b9db5aa 100644
--- a/package/libtirpc/Config.in
+++ b/package/libtirpc/Config.in
@@ -1,5 +1,12 @@
 config BR2_PACKAGE_LIBTIRPC
 	bool "libtirpc"
+	# uClibc toolchains provided by ADI don't have AI_ADDRCONFIG
+	# support. Note that since they provide native RPC support, we
+	# don't need to propagate this dependency to reverse
+	# dependencies of libtirpc for which native RPC support can be
+	# used instead of libtirpc.
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && \
+		!BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R1
 	help
 	  Libtirpc is a port of Sun's Transport-Independent RPC
 	  library to Linux.
diff --git a/package/rpcbind/Config.in b/package/rpcbind/Config.in
index 1bdcd9e..cbe53af 100644
--- a/package/rpcbind/Config.in
+++ b/package/rpcbind/Config.in
@@ -3,6 +3,10 @@ config BR2_PACKAGE_RPCBIND
 	# We really need libtirpc and can't work with the native RPC
 	# implementation of toolchains.
 	select BR2_PACKAGE_LIBTIRPC
+	# uClibc toolchains provided by ADI don't have AI_ADDRCONFIG
+	# support, needed for libtirpc
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && \
+		!BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R1
 	help
 	  The rpcbind utility is a server that converts RPC program numbers
 	  into universal addresses.
-- 
1.7.9.5

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

* [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used
  2013-05-28 19:45 ` [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used Thomas Petazzoni
@ 2013-05-29 19:21   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2013-05-29 19:21 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> czmq fails to build with the Blackfin external toolchains provided by
 Thomas> Analog Devices, because their uClibc configuration doesn't include
 Thomas> AI_ADDRCONFIG. In order to prevent such build failures to happen, we
 Thomas> simply prevent the selection of czmq or one of its reverse
 Thomas> dependencies when such toolchains are used.

 Thomas> This fixes:

 Thomas>   http://autobuild.buildroot.org/results/821/82140fac4c2a2cef3f38f06cada8f17fd7f0078b/build-end.log

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/2] libtirpc: prevent selection when ADI Blackfin external toolchains are used
  2013-05-28 19:45 ` [Buildroot] [PATCH 2/2] libtirpc: " Thomas Petazzoni
@ 2013-05-29 19:22   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2013-05-29 19:22 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> libtirpc fails to build with the Blackfin external toolchains provided
 Thomas> by Analog Devices, because their uClibc configuration doesn't include
 Thomas> AI_ADDRCONFIG. In order to prevent such build failures to happen, we
 Thomas> simply prevent libtirpc from being selected when such toolchains are
 Thomas> used. This is not a big problem, since they provide native RPC
 Thomas> support.

 Thomas> Also, since they provide native RPC, we don't have to propagate this
 Thomas> new dependency to the reverse dependencies of libtirpc, because they
 Thomas> all use native RPC when available. The exception to this rule is the
 Thomas> rpcbind package, which can only use the libtirpc implementation of
 Thomas> RPCs, and not the native one of C libraries. Therefore, the dependency
 Thomas> is propagated to the rpcbind package.

 Thomas> Fixes:

 Thomas>   http://autobuild.buildroot.org/results/58b/58b16449065c16afce11ba120db56839efb2b1ea/build-end.log

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2013-05-29 19:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 19:45 [Buildroot] [PATCH 0/2] Fix problems related to Blackfin lacking AI_ADDRCONFIG Thomas Petazzoni
2013-05-28 19:45 ` [Buildroot] [PATCH 1/2] czmq: prevent selection when ADI Blackfin external toolchains are used Thomas Petazzoni
2013-05-29 19:21   ` Peter Korsgaard
2013-05-28 19:45 ` [Buildroot] [PATCH 2/2] libtirpc: " Thomas Petazzoni
2013-05-29 19:22   ` Peter Korsgaard

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.