Skip to contentSkip to conversation

qemu/sparc-ss10: fix networking support

PATCH New Waldemar Brodkorb 2 participants 2 messages Jul 29, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 qemu/sparc-ss10: fix networking support

While updating the default config I recognized that networking is broken. The reason is a uClibc backport patch from master. Adding a fix on top of it.

---
Changes v1 -> v2:
- split patch (suggested by Thomas P.)
- add upstream status (suggested by Thomas P.)

---
 .../uclibc-0061-fix-sparc-networking.patch         | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 package/uclibc/0.9.33.2/uclibc-0061-fix-sparc-networking.patch
package/uclibc/0.9.33.2/uclibc-0061-fix-sparc-networking.patch new file +39 -0
new file mode 100644
index 0000000..1272950
@@ -0,0 +1,39 @@
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+
+Bug introduced by uclibc-0035-socket.h-pull-socket_type.h-from-eglibc.patch
+Sent upstream: http://lists.uclibc.org/pipermail/uclibc/2014-July/048438.html
+
+diff -Nur uClibc-0.9.33.2.orig/libc/inet/socketcalls.c uClibc-0.9.33.2/libc/inet/socketcalls.c
+--- uClibc-0.9.33.2.orig/libc/inet/socketcalls.c	2012-05-15 09:20:09.000000000 +0200
++++ uClibc-0.9.33.2/libc/inet/socketcalls.c	2014-07-28 14:50:52.477479493 +0200
+@@ -34,6 +34,30 @@
+ #define SYS_ACCEPT4     18
+ #endif
+ 
++/* for sparc: __NR_socket and others are defined, but syscalls are not implemen
++/* see http://lists.busybox.net/pipermail/uclibc/2004-March/029424.html */
++#ifdef __sparc__
++#undef __NR_accept
++#undef __NR_accept4
++#undef __NR_bind
++#undef __NR_connect
++#undef __NR_getpeername
++#undef __NR_getsockname
++#undef __NR_getsockopt
++#undef __NR_listen
++#undef __NR_recv
++#undef __NR_recvfrom
++#undef __NR_recvmsg
++#undef __NR_send
++#undef __NR_sendmsg
++#undef __NR_sendto
++#undef __NR_setsockopt
++#undef __NR_shutdown
++#undef __NR_socket
++#undef __NR_socketpair
++#endif
++
++
+ #ifdef __UCLIBC_HAS_THREADS_NATIVE__
+ #include <sysdep-cancel.h>
+ #include <pthreadP.h>
Signature · 1 line
2.0.0
#1 lore raw

PATCH v2 2/2 qemu/sparc-ss10: fix networking support

Dear Waldemar Brodkorb,

Quoted 5 lines · Waldemar Brodkorb

While updating the default config I recognized that networking is broken. The reason is a uClibc backport patch from master. Adding a fix on top of it.

I've applied, but the title of your commit was wrong: a prefix "qemu/sparc-ss10" for a uClibc change doesn't make any sense. So I fixed that and slightly reworded the commit message as well.

See:

http://git.buildroot.net/buildroot/commit/?id=edeee941c8e20fa5aad8edd5448553e89e7e858c

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com