[packages/lwipv6] - added build fixes, release 2 (rebuild without .la files in vde2)

qboosh qboosh at pld-linux.org
Sun Apr 6 09:14:57 CEST 2025


commit 08d8f295dc4220bf180622c99eb1508ee6285c8f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 6 07:59:52 2025 +0200

    - added build fixes, release 2 (rebuild without .la files in vde2)

 lwipv6-includes.patch | 21 +++++++++++++++++++++
 lwipv6-optflags.patch |  8 ++++++++
 lwipv6.spec           | 12 +++++++++---
 3 files changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/lwipv6.spec b/lwipv6.spec
index dd1f10a..a1eee1a 100644
--- a/lwipv6.spec
+++ b/lwipv6.spec
@@ -1,19 +1,23 @@
-Summary:	LWIPV6a - light weight IP v 6
-Summary(pl.UTF-8):	LWIPV6a - lekkie IP v 6
+Summary:	LWIPV6a - light weight IPv6
+Summary(pl.UTF-8):	LWIPV6a - lekkie IPv6
 Name:		lwipv6
 Version:	1.5a
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Libraries
 Source0:	https://downloads.sourceforge.net/view-os/%{name}-%{version}.tar.bz2
 # Source0-md5:	d07cbd23feebe0eb749470fe49dd90cb
 Patch0:		%{name}-link.patch
+Patch1:		%{name}-includes.patch
+Patch2:		%{name}-optflags.patch
 URL:		http://wiki.v2.cs.unibo.it/wiki/index.php%3Ftitle=LWIPV6.html
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
 BuildRequires:	libpcap-devel
 BuildRequires:	libtool
 BuildRequires:	vde2-devel >= 2
+# dlopened
+Suggests:	vde2-libs%{?_isa}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -51,6 +55,8 @@ Statyczna biblioteka LWIPV6.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__libtoolize}
diff --git a/lwipv6-includes.patch b/lwipv6-includes.patch
new file mode 100644
index 0000000..f3f4380
--- /dev/null
+++ b/lwipv6-includes.patch
@@ -0,0 +1,21 @@
+--- lwipv6-1.5a/lwip-v6/src/api/sockets.c.orig	2011-12-13 10:25:28.000000000 +0100
++++ lwipv6-1.5a/lwip-v6/src/api/sockets.c	2025-03-31 19:43:06.513449361 +0200
+@@ -53,6 +53,7 @@
+  */
+ 
+ #include <linux/limits.h>
++#include <linux/sockios.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/select.h>
+--- lwipv6-1.5a/lwip-v6/src/core/netif.c.orig	2011-12-13 10:25:28.000000000 +0100
++++ lwipv6-1.5a/lwip-v6/src/core/netif.c	2025-03-31 19:49:39.670334612 +0200
+@@ -56,6 +56,8 @@
+  *
+  */
+ 
++#include <unistd.h>
++
+ #include "lwip/opt.h"
+ 
+ #include "lwip/def.h"
diff --git a/lwipv6-optflags.patch b/lwipv6-optflags.patch
new file mode 100644
index 0000000..b7d2c64
--- /dev/null
+++ b/lwipv6-optflags.patch
@@ -0,0 +1,8 @@
+--- lwipv6-1.5a/lwip-contrib/ports/unix/proj/lib/Makefile.am.orig	2015-10-06 16:59:43.019316338 +0200
++++ lwipv6-1.5a/lwip-contrib/ports/unix/proj/lib/Makefile.am	2025-03-31 19:51:28.784561661 +0200
+@@ -246,5 +246,3 @@ liblwip_la_LIBADD = -ldl
+ # liblwip_la_LIBADD = sharedlib.lo unixlib.lo
+ 
+ include_HEADERS = $(LWIPARCH)/include/lwipv6.h
+-
+-CFLAGS = -g3 -ggdb3
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lwipv6.git/commitdiff/08d8f295dc4220bf180622c99eb1508ee6285c8f



More information about the pld-cvs-commit mailing list