diff --git a/0004-Fix-link-order-in-ncurses-autoconf-test.patch b/0004-Fix-link-order-in-ncurses-autoconf-test.patch new file mode 100644 index 0000000..81ec1a1 --- /dev/null +++ b/0004-Fix-link-order-in-ncurses-autoconf-test.patch @@ -0,0 +1,41 @@ +From d2633be28487f7b9adf1cce612ca781b236f2700 Mon Sep 17 00:00:00 2001 +From: "bas@zoetekouw.net" +Date: Tue, 8 Aug 2017 19:25:34 +0200 +Subject: [PATCH] Fix link order in ncurses autoconf test Thanks to Steve + McIntyre for the patch (https://bugs.debian.org/646486) + +--- + macros/curses.m4 | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/macros/curses.m4 b/macros/curses.m4 +index b42fe7c..415eecf 100644 +--- a/macros/curses.m4 ++++ b/macros/curses.m4 +@@ -254,11 +254,11 @@ dnl check if the curses header we found, works + dnl + AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ + +- dnl save CFLAGS and LDFLAGS and set new ones ++ dnl save CFLAGS and LIBS and set new ones + CFLAGS_OLD=$CFLAGS + CFLAGS="$CFLAGS $curses_includes" +- LDFLAGS_OLD=$LDFLAGS +- LDFLAGS="$LDFLAGS $curses_libs" ++ LIBS_OLD=$LIBS ++ LIBS="$LIBS $curses_libs" + + dnl do the compile test + AC_MSG_CHECKING([if curses is usable]) +@@ -288,7 +288,7 @@ AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ + + dnl restore variables + CFLAGS=$CFLAGS_OLD +- LDFLAGS=$LDFLAGS_OLD ++ LIBS=$LIBS_OLD + + ]) + +-- +2.33.0 + diff --git a/pinfo.spec b/pinfo.spec index 419cbee..e2eb5d6 100644 --- a/pinfo.spec +++ b/pinfo.spec @@ -1,6 +1,6 @@ Name: pinfo Version: 0.6.10 -Release: 25 +Release: 26 Summary: An user-friendly, console-based viewer for Info documents License: GPLv2 URL: http://pinfo.alioth.debian.org @@ -14,6 +14,7 @@ Patch0006: pinfo-0.6.10-man.patch Patch0007: 0001-Gracefully-handle-missing-indirect-info-nodes.patch Patch0008: 0002-Fix-infinite-loop-when-regexp-matching-an-empty-stri.patch Patch0009: 0003-Fix-segfautl-by-closing-unopened-file.patch +Patch0010: 0004-Fix-link-order-in-ncurses-autoconf-test.patch BuildRequires: ncurses-devel automake gettext-devel libtool texinfo Requires: xdg-utils @@ -55,6 +56,9 @@ Pinfo-help provides man pages and other related help documents for pinfo. %{_mandir}/man1/pinfo.1* %changelog +* Fri Nov 24 2023 liyuanyuan - 0.6.10-26 +- Fix link order in ncurses autoconf test + * Thu Nov 09 2023 liyuanyuan - 0.6.10-25 - Fix segfautl by closing unopened file