[packages/tftp-hpa] Rel 8; fix gcc 10 build (from FC)
arekm
arekm at pld-linux.org
Mon Jul 25 13:16:28 CEST 2022
commit 47824ed4b3ae3e5cd9e140b4d7b66b43c908acc0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jul 25 13:16:10 2022 +0200
Rel 8; fix gcc 10 build (from FC)
tftp-hpa-5.2-gcc10.patch | 12 ++++++++++++
tftp-hpa.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/tftp-hpa.spec b/tftp-hpa.spec
index 7f33474..204b3eb 100644
--- a/tftp-hpa.spec
+++ b/tftp-hpa.spec
@@ -5,7 +5,7 @@ Summary(pl.UTF-8): Klient TFTP (Trivial File Transfer Protocol)
Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
Name: tftp-hpa
Version: 5.2
-Release: 6
+Release: 8
License: BSD
Group: Applications/Networking
Source0: https://www.kernel.org/pub/software/network/tftp/tftp-hpa/%{name}-%{version}.tar.xz
@@ -23,6 +23,7 @@ Patch5: tftp-0.49-cmd_arg.patch
Patch6: %{name}-0.49-stats.patch
Patch7: %{name}-5.2-pktinfo.patch
Patch8: tftp-enhanced-logging.patch
+Patch9: tftp-hpa-5.2-gcc10.patch
URL: http://freshmeat.net/projects/tftp-hpa/
BuildRequires: readline-devel
BuildRequires: rpmbuild(macros) >= 1.268
@@ -144,6 +145,7 @@ standalone.
%patch6 -p1 -b .stats
%patch7 -p1 -b .pktinfo
%patch8 -p1
+%patch9 -p1
%build
%configure
diff --git a/tftp-hpa-5.2-gcc10.patch b/tftp-hpa-5.2-gcc10.patch
new file mode 100644
index 0000000..0ff4a41
--- /dev/null
+++ b/tftp-hpa-5.2-gcc10.patch
@@ -0,0 +1,12 @@
+diff -up tftp-hpa-5.2/tftp/tftp.c.gcc10 tftp-hpa-5.2/tftp/tftp.c
+--- tftp-hpa-5.2/tftp/tftp.c.gcc10 2020-05-04 00:56:28.787896509 +0200
++++ tftp-hpa-5.2/tftp/tftp.c 2020-05-04 00:58:42.502901005 +0200
+@@ -48,7 +48,7 @@ extern int maxtimeout;
+ #define PKTSIZE SEGSIZE+4
+ char ackbuf[PKTSIZE];
+ int timeout;
+-sigjmp_buf toplevel;
++extern sigjmp_buf toplevel;
+ sigjmp_buf timeoutbuf;
+
+ static void nak(int, const char *);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tftp-hpa.git/commitdiff/47824ed4b3ae3e5cd9e140b4d7b66b43c908acc0
More information about the pld-cvs-commit
mailing list