* [PATCH] orbit2_2.14.17.bb: Fix build when DISTRO_FEATURES lacks ipv6.
@ 2010-11-29 5:08 Graham Gower
0 siblings, 0 replies; only message in thread
From: Graham Gower @ 2010-11-29 5:08 UTC (permalink / raw)
To: openembedded-devel
mipsel-oe-linux-uclibc-libtool: link: mipsel-oe-linux-uclibc-gcc -march=mips32 -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -Werror-implicit-function-declaration -Wl,-rpath-link -Wl,/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib -Wl,-O1 -o .libs/test-linc test-linc.o -pthread -L/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib ../src/.libs/liblinc.a /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/libgobject-2.0.so /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/libgthread-2.0.so -lpthread /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/libglib-2.0.so /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/libintl.so /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/lib/libiconv.so -lc -pthread
../src/.libs/liblinc.a(linc-protocols.o): In function `link_set_tmpdir':
linc-protocols.c:(.text+0x844): warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
../src/.libs/liblinc.a(linc-protocols.o): In function `link_protocol_get_sockinfo_ipv4':
linc-protocols.c:(.text+0xeb8): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
test-linc.o: In function `main':
test-linc.c:(.text+0x10e4): warning: gethostbyname is obsolescent, use getnameinfo() instead.
../src/.libs/liblinc.a(linc-protocols.o): In function `link_protocol_get_sockinfo_ipv6':
linc-protocols.c:(.text+0xd94): undefined reference to `in6addr_any'
collect2: ld returned 1 exit status
make[3]: *** [test-linc] Error 1
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/gnome/orbit2-2.14.17/disable-ipv6.patch | 12 ++++++++++++
recipes/gnome/orbit2_2.14.17.bb | 3 +++
2 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 recipes/gnome/orbit2-2.14.17/disable-ipv6.patch
diff --git a/recipes/gnome/orbit2-2.14.17/disable-ipv6.patch b/recipes/gnome/orbit2-2.14.17/disable-ipv6.patch
new file mode 100644
index 0000000..dfe0bc6
--- /dev/null
+++ b/recipes/gnome/orbit2-2.14.17/disable-ipv6.patch
@@ -0,0 +1,12 @@
+--- ORBit2-2.14.17/linc2/src/linc-protocols.c.orig 2010-11-29 15:21:32.000000000 +1030
++++ ORBit2-2.14.17/linc2/src/linc-protocols.c 2010-11-29 15:22:59.000000000 +1030
+@@ -937,6 +937,9 @@
+ static const struct in6_addr in6addr_any = { { { 0 } } };
+ # endif
+ #endif
++#ifdef DISABLE_IPV6
++ const struct in6_addr in6addr_any = { { { 0 } } };
++#endif
+
+ static gboolean
+ link_protocol_get_sockinfo_ipv6 (const LinkProtocolInfo *proto,
diff --git a/recipes/gnome/orbit2_2.14.17.bb b/recipes/gnome/orbit2_2.14.17.bb
index 47f6327..f893997 100644
--- a/recipes/gnome/orbit2_2.14.17.bb
+++ b/recipes/gnome/orbit2_2.14.17.bb
@@ -1,5 +1,8 @@
require orbit2.inc
+SRC_URI += "file://disable-ipv6.patch"
+noipv6 = "${@base_contains('DISTRO_FEATURES', 'ipv6', '', '-DDISABLE_IPV6', d)}"
+EXTRA_OEMAKE_append = " 'CFLAGS=${CFLAGS} ${noipv6}'"
SRC_URI[md5sum] = "10bfb957fa4a8935a0b4afaee7d71df7"
SRC_URI[sha256sum] = "62bfce3f678f9347a19c766944e8aef7b89bc32b25ac23eb3e4c25929ce8974c"
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-29 5:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-29 5:08 [PATCH] orbit2_2.14.17.bb: Fix build when DISTRO_FEATURES lacks ipv6 Graham Gower
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.