[packages/iproute2] - rel 3; gcc 4.8 build fix

arekm arekm at pld-linux.org
Thu May 30 22:46:17 CEST 2013


commit 13317c224b19bc8fd479dc179ce09efb51811c5d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 30 22:46:13 2013 +0200

    - rel 3; gcc 4.8 build fix

 iproute2-build.patch | 11 +++++++++++
 iproute2.spec        |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/iproute2.spec b/iproute2.spec
index 153ded5..a9f18e6 100644
--- a/iproute2.spec
+++ b/iproute2.spec
@@ -16,7 +16,7 @@ Summary(pl.UTF-8):	Narzędzie do konfigurowania sieci
 Summary(pt_BR.UTF-8):	Ferramentas para roteamento avançado e configuração de interfaces de rede
 Name:		iproute2
 Version:	3.9.0
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Networking/Admin
 Source0:	http://kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
diff --git a/iproute2-build.patch b/iproute2-build.patch
index 36452cf..37ba1db 100644
--- a/iproute2-build.patch
+++ b/iproute2-build.patch
@@ -9,3 +9,14 @@
  
  			NEXT_ARG();
  			if (get_float(&sp, *argv))
+--- iproute2-3.9.0/misc/lnstat.c~	2013-04-30 16:47:54.000000000 +0200
++++ iproute2-3.9.0/misc/lnstat.c	2013-05-30 22:45:08.501795069 +0200
+@@ -166,7 +166,7 @@
+ 
+ 	for (i = 0; i < HDR_LINES; i++) {
+ 		th.hdr[i] = malloc(HDR_LINE_LENGTH);
+-		memset(th.hdr[i], 0, sizeof(th.hdr[i]));
++		memset(th.hdr[i], 0, HDR_LINE_LENGTH);
+ 	}
+ 
+ 	for (i = 0; i < fps->num; i++) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iproute2.git/commitdiff/13317c224b19bc8fd479dc179ce09efb51811c5d



More information about the pld-cvs-commit mailing list