diff --git a/tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch b/tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch new file mode 100644 index 0000000..e260033 --- /dev/null +++ b/tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch @@ -0,0 +1,60 @@ +From 7fd9ae6ddd1dc726c354f5ed7f8104b1a6e35d93 Mon Sep 17 00:00:00 2001 +From: Kimmo Suominen +Date: Fri, 10 Feb 2017 13:44:34 +0000 +Subject: [PATCH 1/2] Look for tgetent in libtinfo as well (Werner Fink) + +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 2a56740..28bcc16 100755 +--- a/configure ++++ b/configure +@@ -4284,7 +4284,7 @@ return tgetent (); + return 0; + } + _ACEOF +-for ac_lib in '' termlib termcap curses ncurses; do ++for ac_lib in '' termlib tinfo termcap curses ncurses; do + if test -z "$ac_lib"; then + ac_res="none required" + else +diff --git a/configure.ac b/configure.ac +index 0515787..4a964ec 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -315,7 +315,7 @@ esac + dnl Checks for libraries + AC_SEARCH_LIBS(crypt, crypt) + AC_SEARCH_LIBS(getspnam, sec) +-AC_SEARCH_LIBS([tgetent], [termlib termcap curses ncurses], [], [ ++AC_SEARCH_LIBS([tgetent], [termlib tinfo termcap curses ncurses], [], [ + AC_MSG_ERROR([unable to find the tgetent() function]) + ]) + AC_SEARCH_LIBS(gethostbyname, nsl) +-- +2.9.3 + +From a177220dce0f757cbba7a6476e1a44b1b7207925 Mon Sep 17 00:00:00 2001 +From: Kimmo Suominen +Date: Fri, 10 Feb 2017 16:51:05 +0200 +Subject: [PATCH 2/2] Look for tgetent in libtinfo as well (Werner Fink) + +--- + Fixes | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Fixes b/Fixes +index aec768e..7bd907d 100644 +--- a/Fixes ++++ b/Fixes +@@ -1,3 +1,4 @@ ++ 5. Look for tgetent in libtinfo as well (Werner Fink) + 4. Don't play pointer tricks that are undefined in modern c (Brooks Davis) + 3. Fix out of bounds read (Brooks Davis) + 2. Fix type of read in prompt confirmation (eg. rmstar) (David Kaspar) +-- +2.9.3 + diff --git a/tcsh.spec b/tcsh.spec index 929e915..f2df5d4 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -48,6 +48,7 @@ Patch003: tcsh-6.20.00-003-fix-out-of-bounds-read.patch Patch004: tcsh-6.20.00-004-do-not-use-old-pointer-tricks.patch Patch005: tcsh-6.20.00-005-reset-fixes-numbering.patch Patch006: tcsh-6.20.00-006-cleanup-in-readme-files.patch +Patch007: tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch # Downstream patches -- these should be always included when doing rebase: @@ -179,6 +180,7 @@ fi tcsh-6.20.00-004-do-not-use-old-pointer-tricks.patch tcsh-6.20.00-005-reset-fixes-numbering.patch tcsh-6.20.00-006-cleanup-in-readme-files.patch + tcsh-6.20.00-007-look-for-tgetent-in-libtinfo.patch * Sat Feb 11 2017 Fedora Release Engineering - 6.20.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild