diff --git a/fping-4.2-gcc10-extern.patch b/fping-4.2-gcc10-extern.patch new file mode 100644 index 0000000..4a7032c --- /dev/null +++ b/fping-4.2-gcc10-extern.patch @@ -0,0 +1,12 @@ +diff -up fping-4.2/src/fping.h.extern fping-4.2/src/fping.h +--- fping-4.2/src/fping.h.extern 2019-02-19 16:00:09.000000000 -0500 ++++ fping-4.2/src/fping.h 2020-02-02 00:19:02.613997883 -0500 +@@ -11,7 +11,7 @@ + void crash_and_burn( char *message ); + void errno_crash_and_burn( char *message ); + int in_cksum( unsigned short *p, int n ); +-int random_data_flag; ++extern int random_data_flag; + + /* socket.c */ + int open_ping_socket_ipv4(); diff --git a/fping.changes b/fping.changes index 4795cb9..4dc6270 100644 --- a/fping.changes +++ b/fping.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 8 12:49:08 UTC 2020 - Kristyna Streitova + +- add fping-4.2-gcc10-extern.patch to fix build with GCC10 + ------------------------------------------------------------------- Wed Mar 6 13:09:14 UTC 2019 - lars@linux-schulserver.de diff --git a/fping.spec b/fping.spec index b1e99b7..7233b8f 100644 --- a/fping.spec +++ b/fping.spec @@ -1,7 +1,7 @@ # # spec file for package fping # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,8 +22,9 @@ Release: 0 Summary: A program to ping multiple hosts License: MIT Group: Productivity/Networking/Diagnostic -Url: http://www.fping.org +URL: http://www.fping.org Source: http://fping.org/dist/%{name}-%{version}.tar.bz2 +Patch0: fping-4.2-gcc10-extern.patch %if 0%{?suse_version} >= 1500 Requires(pre): permissions %endif @@ -49,6 +50,7 @@ designed to be easy to parse. %prep %setup -q +%patch0 -p1 %build %configure