!4 解决 gcc 10导致pinfo编译失败问题
From: @tushenmei Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
707c3d1637
12
bugfix-of-gcc-10.patch
Normal file
12
bugfix-of-gcc-10.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Nur pinfo-0.6.10/src/parse_config.h pinfo-0.6.10-new/src/parse_config.h
|
||||
--- pinfo-0.6.10/src/parse_config.h 2006-03-10 03:44:48.000000000 +0800
|
||||
+++ pinfo-0.6.10-new/src/parse_config.h 2021-08-03 15:53:00.000000000 +0800
|
||||
@@ -85,7 +85,7 @@
|
||||
colours;
|
||||
#endif /* NO_COLOR_CURSES */
|
||||
|
||||
-int use_manual;
|
||||
+extern int use_manual;
|
||||
|
||||
int parse_config (void);
|
||||
int parse_line (char *line);
|
||||
@ -1,6 +1,6 @@
|
||||
Name: pinfo
|
||||
Version: 0.6.10
|
||||
Release: 23
|
||||
Release: 24
|
||||
Summary: An user-friendly, console-based viewer for Info documents
|
||||
License: GPLv2
|
||||
URL: http://pinfo.alioth.debian.org
|
||||
@ -11,6 +11,7 @@ Patch0003: pinfo-0.6.9-nogroup.patch
|
||||
Patch0004: pinfo-0.6.9-mansection.patch
|
||||
Patch0005: pinfo-0.6.9-infopath.patch
|
||||
Patch0006: pinfo-0.6.10-man.patch
|
||||
Patch0007: bugfix-of-gcc-10.patch
|
||||
|
||||
BuildRequires: ncurses-devel automake gettext-devel libtool texinfo
|
||||
Requires: xdg-utils
|
||||
@ -33,7 +34,6 @@ Pinfo-help provides man pages and other related help documents for pinfo.
|
||||
%build
|
||||
./autogen.sh
|
||||
%configure --without-readline
|
||||
%make_build CFLAGS+="-fcommon"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@ -52,6 +52,9 @@ Pinfo-help provides man pages and other related help documents for pinfo.
|
||||
%{_mandir}/man1/pinfo.1*
|
||||
|
||||
%changelog
|
||||
* Tue 3 Aug 2021 Shenmei Tu <tushenmei@huawei.com> - 0.6.10-24
|
||||
- bugfix-of-gcc-10.patch
|
||||
|
||||
* Fri 30 July 2021 Shenmei Tu <tushenmei@huawei.com> - 0.6.10-23
|
||||
- bug fix of multiple definition
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user