[packages/liboping] - updated to 1.10.0, added upstream GCC 8 fix

hawk hawk at pld-linux.org
Wed Aug 29 14:36:14 CEST 2018


commit 3595a36263571ac6bf453bea6ba4d650f9b591b6
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Wed Aug 29 12:35:45 2018 +0000

    - updated to 1.10.0, added upstream GCC 8 fix

 gcc8.patch    | 17 +++++++++++++++++
 liboping.spec |  8 +++++---
 2 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/liboping.spec b/liboping.spec
index 74dc04e..5668308 100644
--- a/liboping.spec
+++ b/liboping.spec
@@ -2,12 +2,13 @@
 Summary:	Liboping library to generate ICMP echo requests
 Summary(pl.UTF-8):	Biblioteka liboping do generowania żądań ICMP echo
 Name:		liboping
-Version:	1.9.0
-Release:	4
+Version:	1.10.0
+Release:	1
 License:	LGPL v2.1+ (library), GPL v2+ (tool, perl binding)
 Group:		Libraries
 Source0:	http://noping.cc/files/%{name}-%{version}.tar.bz2
-# Source0-md5:	9c9f65bfd297d7e7092c7f219c31f66a
+# Source0-md5:	54e0f5a1aaf9eabf3f412d2fdc9c6831
+Patch0:		gcc8.patch
 URL:		http://noping.cc/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake
@@ -117,6 +118,7 @@ jeden.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/gcc8.patch b/gcc8.patch
new file mode 100644
index 0000000..15423c4
--- /dev/null
+++ b/gcc8.patch
@@ -0,0 +1,17 @@
+diff --git a/src/liboping.c b/src/liboping.c
+index 5253e8c..2470988 100644
+--- a/src/liboping.c
++++ b/src/liboping.c
+@@ -1636,10 +1636,8 @@ int ping_host_add (pingobj_t *obj, const char *host)
+ 		}
+ 		else
+ 		{
+-			char errmsg[PING_ERRMSG_LEN];
+-
+-			snprintf (errmsg, PING_ERRMSG_LEN, "Unknown `ai_family': %i", ai_ptr->ai_family);
+-			errmsg[PING_ERRMSG_LEN - 1] = '\0';
++			char errmsg[64];
++			snprintf (errmsg, sizeof(errmsg), "Unknown `ai_family': %d", ai_ptr->ai_family);
+ 
+ 			dprintf ("%s", errmsg);
+ 			ping_set_error (obj, "getaddrinfo", errmsg);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liboping.git/commitdiff/3595a36263571ac6bf453bea6ba4d650f9b591b6



More information about the pld-cvs-commit mailing list