From 7980d22cb9a78b86e109e3f134681f4e80f96749 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Mar 01 2019 14:37:31 +0000 Subject: fix FTBFS --- diff --git a/pinfo-0.6.9-as-needed.patch b/pinfo-0.6.9-as-needed.patch new file mode 100644 index 0000000..85a80e6 --- /dev/null +++ b/pinfo-0.6.9-as-needed.patch @@ -0,0 +1,22 @@ +--- a/macros/curses.m4 ++++ b/macros/curses.m4 +@@ -257,8 +257,8 @@ + dnl save CFLAGS and LDFLAGS 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 @@ + + dnl restore variables + CFLAGS=$CFLAGS_OLD +- LDFLAGS=$LDFLAGS_OLD ++ LIBS=$LIBS_OLD + + ]) + diff --git a/pinfo.spec b/pinfo.spec index bb337a4..dedb855 100644 --- a/pinfo.spec +++ b/pinfo.spec @@ -11,6 +11,7 @@ Patch3: pinfo-0.6.9-nogroup.patch Patch4: pinfo-0.6.9-mansection.patch Patch5: pinfo-0.6.9-infopath.patch Patch6: pinfo-0.6.10-man.patch +Patch7: pinfo-0.6.9-as-needed.patch BuildRequires: ncurses-devel BuildRequires: automake gettext-devel libtool texinfo