File: 40terminfo.patch

package info (click to toggle)
libterm-readline-gnu-perl 1.24-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 556 kB
  • sloc: perl: 1,664; ansic: 112; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: check for -ltinfo
Origin: vendor
Bug_debian: http://bugs.debian.org/644423
Forwarded: no
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2011-10-07

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -65,11 +65,12 @@
     my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux'
 			|| $Config{osname} eq 'cygwin';
     my $TERMCAP_LIB = (! $PREFER_CURSES && &search_lib('-ltermcap'))
-	|| &search_lib('-lncurses')
+	|| &search_lib('-ltinfo')
+	    || &search_lib('-lncurses')
 	    || &search_lib('-lcurses');
 
     unless ($TERMCAP_LIB) {
-	warn "Could not find neither libtermcap.a, libncurses.a, or libcurses.\n";
+	warn "Could not find neither libtinfo, libtermcap.a, libncurses.a, or libcurses.\n";
 	exit $err;
     }