From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] orbit2_2.14.17.bb: Fix build when DISTRO_FEATURES lacks ipv6.
Date: Mon, 29 Nov 2010 15:38:45 +1030 [thread overview]
Message-ID: <4CF3355D.8080906@gmail.com> (raw)
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
reply other threads:[~2010-11-29 5:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF3355D.8080906@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.