[packages/lwipv6] - more build fixes

qboosh qboosh at pld-linux.org
Sun Apr 6 10:23:55 CEST 2025


commit 4a0bd52734d91782cee27f679b4ae60228b15bdc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 6 09:15:13 2025 +0200

    - more build fixes

 lwipv6-includes.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 lwipv6-return.patch   | 11 +++++++++++
 lwipv6.spec           |  2 ++
 3 files changed, 61 insertions(+)
---
diff --git a/lwipv6.spec b/lwipv6.spec
index a1eee1a..29fbf9d 100644
--- a/lwipv6.spec
+++ b/lwipv6.spec
@@ -10,6 +10,7 @@ Source0:	https://downloads.sourceforge.net/view-os/%{name}-%{version}.tar.bz2
 Patch0:		%{name}-link.patch
 Patch1:		%{name}-includes.patch
 Patch2:		%{name}-optflags.patch
+Patch3:		%{name}-return.patch
 URL:		http://wiki.v2.cs.unibo.it/wiki/index.php%3Ftitle=LWIPV6.html
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
@@ -57,6 +58,7 @@ Statyczna biblioteka LWIPV6.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__libtoolize}
diff --git a/lwipv6-includes.patch b/lwipv6-includes.patch
index f3f4380..cde3a6f 100644
--- a/lwipv6-includes.patch
+++ b/lwipv6-includes.patch
@@ -19,3 +19,51 @@
  #include "lwip/opt.h"
  
  #include "lwip/def.h"
+--- lwipv6-1.5a/lwip-v6/src/core/tcp.c.orig	2011-12-13 10:25:28.000000000 +0100
++++ lwipv6-1.5a/lwip-v6/src/core/tcp.c	2025-04-06 08:07:14.867128734 +0200
+@@ -73,6 +73,7 @@
+ #include "lwip/def.h"
+ #include "lwip/mem.h"
+ #include "lwip/memp.h"
++#include "lwip/lwslirp.h"
+ 
+ #include "lwip/tcp.h"
+ #if LWIP_TCP
+--- lwipv6-1.5a/lwip-v6/src/api/tcpip.c.orig	2011-12-13 10:25:28.000000000 +0100
++++ lwipv6-1.5a/lwip-v6/src/api/tcpip.c	2025-04-06 08:11:14.798161868 +0200
+@@ -56,6 +56,7 @@
+ 
+ #include "lwip/sys.h"
+ 
++#include "lwip/api_msg.h"
+ #include "lwip/memp.h"
+ #include "lwip/pbuf.h"
+ 
+@@ -160,6 +161,9 @@ init_layers(struct stack *stack)
+ #endif
+ }
+ 
++void
++tcp_shutdown(struct stack *stack);
++
+ static void 
+ shutdown_layers(struct stack *stack)
+ {
+--- lwipv6-1.5a/lwip-v6/src/api/sockets.c.orig	2025-04-06 08:08:06.210683152 +0200
++++ lwipv6-1.5a/lwip-v6/src/api/sockets.c	2025-04-06 08:13:34.278762468 +0200
+@@ -52,6 +52,7 @@
+  *
+  */
+ 
++#define _GNU_SOURCE
+ #include <linux/limits.h>
+ #include <linux/sockios.h>
+ #include <sys/types.h>
+@@ -68,6 +69,7 @@
+ #include "lwip/arch.h"
+ #include "lwip/sys.h"
+ #include "lwip/mem.h"
++#include "netif/etharp.h"
+ 
+ #define LWIP_TIMEVAL_PRIVATE
+ #include "lwip/sockets.h"
diff --git a/lwipv6-return.patch b/lwipv6-return.patch
new file mode 100644
index 0000000..adc66bd
--- /dev/null
+++ b/lwipv6-return.patch
@@ -0,0 +1,11 @@
+--- lwipv6-1.5a/lwip-contrib/ports/unix/netif/vdeif.c.orig	2011-12-13 10:25:28.000000000 +0100
++++ lwipv6-1.5a/lwip-contrib/ports/unix/netif/vdeif.c	2025-04-06 09:11:21.463777210 +0200
+@@ -482,7 +482,7 @@ static ssize_t vdeif_streampkt_input(voi
+ 	p = low_level_stream_input(vdeif, netif->flags, buf, count);
+ 	if (p == NULL) {
+ 		LWIP_DEBUGF(VDEIF_DEBUG, ("vdeif_input: low_level_input returned NULL\n"));
+-		return;
++		return -1;
+ 	}
+ 
+ 	vde_dispatch_input(netif, p);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lwipv6.git/commitdiff/4a0bd52734d91782cee27f679b4ae60228b15bdc



More information about the pld-cvs-commit mailing list