浏览代码

fix building against (fixed) GNU readline

Ralf S. Engelschall 16 年之前
父节点
当前提交
c84a6b768d
共有 2 个文件被更改,包括 15 次插入1 次删除
  1. 14 0
      perl-term/perl-term.patch
  2. 1 1
      perl-term/perl-term.spec

+ 14 - 0
perl-term/perl-term.patch

@@ -36,3 +36,17 @@ Index: Term-ReadLine-Gnu-1.19/Gnu/XS.pm
      $_tstrs_init = 1;
      return @s;
  }
+Index: Term-ReadLine-Gnu-1.19/Gnu.xs
+--- Term-ReadLine-Gnu-1.19/Gnu.xs.orig	2009-02-27 13:44:41 +0100
++++ Term-ReadLine-Gnu-1.19/Gnu.xs	2009-03-30 22:15:36 +0200
+@@ -233,6 +233,10 @@
+ static void rl_echo_signal_char(int sig){}
+ #endif /* (RL_VERSION_MAJOR < 6) */
+ 
++#define xmalloc  readline_xmalloc
++#define xrealloc readline_xrealloc
++#define xfree    readline_xfree
++
+ /*
+  * utility/dummy functions
+  */                                                                                

+ 1 - 1
perl-term/perl-term.spec

@@ -52,7 +52,7 @@ Class:        BASE
 Group:        Perl
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20090321
+Release:      20090330
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Term/TermReadKey-%{V_term_readkey}.tar.gz