[packages/pinfo] - added no-common patch (fixes build with -fno-common, gcc 10+ default)

qboosh qboosh at pld-linux.org
Sat Oct 2 21:46:38 CEST 2021


commit aae39a95702e822e3acc11a642e563725bbfe300
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 2 21:51:33 2021 +0200

    - added no-common patch (fixes build with -fno-common, gcc 10+ default)

 pinfo-no-common.patch | 11 +++++++++++
 pinfo.spec            |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/pinfo.spec b/pinfo.spec
index 2b8b466..f9dd1fd 100644
--- a/pinfo.spec
+++ b/pinfo.spec
@@ -20,6 +20,7 @@ Patch2:		%{name}-pl.po-update.patch
 Patch3:		%{name}-info.patch
 Patch4:		%{name}-gettext.patch
 Patch5:		%{name}-color.patch
+Patch6:		%{name}-no-common.patch
 URL:		https://github.com/baszoetekouw/pinfo
 BuildRequires:	autoconf >= 2.57
 BuildRequires:	automake
@@ -64,6 +65,7 @@ Pinfo - це програма перегляду info-файлів та man-ст
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 CPPFLAGS="-I%{_includedir}/ncursesw"
diff --git a/pinfo-no-common.patch b/pinfo-no-common.patch
new file mode 100644
index 0000000..a8d50a3
--- /dev/null
+++ b/pinfo-no-common.patch
@@ -0,0 +1,11 @@
+--- pinfo-0.6.13/src/parse_config.h.orig	2019-02-16 21:23:32.000000000 +0100
++++ pinfo-0.6.13/src/parse_config.h	2021-10-02 21:41:54.698502930 +0200
+@@ -85,7 +85,7 @@ typedef struct colours
+ colours;
+ #endif /* HAVE_CURSES_COLOR */
+ 
+-int use_manual;
++extern int use_manual;
+ 
+ int parse_config (void);
+ int parse_line (char *line);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pinfo.git/commitdiff/aae39a95702e822e3acc11a642e563725bbfe300



More information about the pld-cvs-commit mailing list