From aae39a95702e822e3acc11a642e563725bbfe300 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 2 Oct 2021 21:51:33 +0200 Subject: [PATCH] - 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(+) create mode 100644 pinfo-no-common.patch 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); 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" -- 2.44.0