Package: libterm-readline-gnu-perl / 1.35-4

40terminfo.patch Patch series | download
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: https://bugs.debian.org/644423
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=123728
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2011-10-07

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -82,11 +82,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;
     }