summaryrefslogtreecommitdiff
path: root/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch')
-rw-r--r--community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch b/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch
new file mode 100644
index 000000000..7fee6013c
--- /dev/null
+++ b/community/perl-term-readline-gnu/termcap-bad-ncurses-good.patch
@@ -0,0 +1,18 @@
+--- Term-ReadLine-Gnu-1.20/Makefile.PL 2010-05-02 06:37:55.000000000 -0400
++++ Term-ReadLine-Gnu-1.20-patched/Makefile.PL 2011-07-30 16:16:54.000000000 -0400
+@@ -58,8 +58,13 @@
+ # know why AIX prefers curses.
+ # libtermcap.a on HPUX cannot be used for dynamically linked binary.
+ # Old Cygwin may require setting false (0).
+- my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux'
+- || $Config{osname} eq 'cygwin';
++ # my $PREFER_CURSES = $Config{osname} eq 'aix' || $Config{osname} eq 'hpux'
++ # || $Config{osname} eq 'cygwin';
++
++ # Hack for ArchLinux by Justin Davis <aurperl@juster.us>
++ # Don't use termcap! readline is linked with ncurses so I know it's
++ # available. termcap causes this module to crash for some people.
++ my $PREFER_CURSES = 1;
+ my $TERMCAP_LIB = (! $PREFER_CURSES && &search_lib('-ltermcap'))
+ || &search_lib('-lncurses')
+ || &search_lib('-lcurses');