diff --git a/bugfix-of-gcc-10.patch b/bugfix-of-gcc-10.patch new file mode 100644 index 0000000..b573833 --- /dev/null +++ b/bugfix-of-gcc-10.patch @@ -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); diff --git a/pinfo.spec b/pinfo.spec index 47ee8ca..3f1f0ce 100644 --- a/pinfo.spec +++ b/pinfo.spec @@ -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 - 0.6.10-24 +- bugfix-of-gcc-10.patch + * Fri 30 July 2021 Shenmei Tu - 0.6.10-23 - bug fix of multiple definition