* [Buildroot] [PATCH] libnftnl: exclude for CS PPC toolchains
@ 2014-03-04 1:58 Gustavo Zacarias
2014-03-04 18:38 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-03-04 1:58 UTC (permalink / raw)
To: buildroot
The CS PPC 2011.3 and 2010.9 toolchains have a bad linux/socket.h header
that doesn't define sa_family_t which is used by linux/netlink.h (and
libnftnl).
Patching external toolchain headers wouldn't be too nice and they seem
to be the only CS toolchains affected.
It's definitely NOT a kernel header version issue, the toolchain is
based on 2.6.38 headers and vanilla 2.6.38 has the proper definitions in
place. Fixes:
http://autobuild.buildroot.net/results/1e2/1e2cac84f0faa9b8915a628260ef41765d86e174/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/libnftnl/Config.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/libnftnl/Config.in b/package/libnftnl/Config.in
index 75ca519..ffd9d5b 100644
--- a/package/libnftnl/Config.in
+++ b/package/libnftnl/Config.in
@@ -3,6 +3,8 @@ config BR2_PACKAGE_LIBNFTNL
depends on BR2_INET_IPV6
depends on BR2_LARGEFILE
depends on BR2_TOOLCHAIN_HAS_THREADS
+ # bad headers, no sa_family_t in linux/socket.h
+ depends on !(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103 || BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009)
select BR2_PACKAGE_LIBMNL
help
libnftnl is a userspace library providing a low-level
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] libnftnl: exclude for CS PPC toolchains
2014-03-04 1:58 [Buildroot] [PATCH] libnftnl: exclude for CS PPC toolchains Gustavo Zacarias
@ 2014-03-04 18:38 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-03-04 18:38 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Mon, 3 Mar 2014 22:58:50 -0300, Gustavo Zacarias wrote:
> The CS PPC 2011.3 and 2010.9 toolchains have a bad linux/socket.h header
> that doesn't define sa_family_t which is used by linux/netlink.h (and
> libnftnl).
> Patching external toolchain headers wouldn't be too nice and they seem
> to be the only CS toolchains affected.
> It's definitely NOT a kernel header version issue, the toolchain is
> based on 2.6.38 headers and vanilla 2.6.38 has the proper definitions in
> place. Fixes:
> http://autobuild.buildroot.net/results/1e2/1e2cac84f0faa9b8915a628260ef41765d86e174/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/libnftnl/Config.in | 2 ++
> 1 file changed, 2 insertions(+)
Not nice to have conditions on specific toolchains, but since the
breakage is specific to them, I guess we don't have much choice.
Thanks, patch applied.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-04 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 1:58 [Buildroot] [PATCH] libnftnl: exclude for CS PPC toolchains Gustavo Zacarias
2014-03-04 18:38 ` Thomas Petazzoni
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.