[packages/cpio] fix build with gcc 10

atler atler at pld-linux.org
Thu Nov 19 00:08:11 CET 2020


commit 1e4531a78e4b3109f94bcd6addc621a9cf015752
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 19 00:07:26 2020 +0100

    fix build with gcc 10

 cpio.spec   |  2 ++
 gcc10.patch | 27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
---
diff --git a/cpio.spec b/cpio.spec
index 23f781e..2004874 100644
--- a/cpio.spec
+++ b/cpio.spec
@@ -19,6 +19,7 @@ Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-ma
 Patch0:		%{name}-info.patch
 Patch1:		%{name}-ifdef.patch
 Patch2:		revert-CVE-2015-1197-fix.patch
+Patch3:		gcc10.patch
 URL:		http://www.gnu.org/software/cpio/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.11.1
@@ -106,6 +107,7 @@ cpio копіює файли в або з архіву cpio або tar, який
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__gettextize}
diff --git a/gcc10.patch b/gcc10.patch
new file mode 100644
index 0000000..9c7d7ed
--- /dev/null
+++ b/gcc10.patch
@@ -0,0 +1,27 @@
+From 641d3f489cf6238bb916368d4ba0d9325a235afb Mon Sep 17 00:00:00 2001
+From: Sergey Poznyakoff <gray at gnu.org>
+Date: Mon, 20 Jan 2020 07:45:39 +0200
+Subject: Minor fix * src/global.c: Remove superfluous declaration of
+ program_name
+
+---
+ src/global.c | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/src/global.c b/src/global.c
+index fb3abe9..acf92bc 100644
+--- a/src/global.c
++++ b/src/global.c
+@@ -184,9 +184,6 @@ unsigned int warn_option = 0;
+ /* Extract to standard output? */
+ bool to_stdout_option = false;
+ 
+-/* The name this program was run with.  */
+-char *program_name;
+-
+ /* A pointer to either lstat or stat, depending on whether
+    dereferencing of symlinks is done for input files.  */
+ int (*xstat) ();
+-- 
+cgit v1.2.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cpio.git/commitdiff/1e4531a78e4b3109f94bcd6addc621a9cf015752



More information about the pld-cvs-commit mailing list