diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2005-01-06 10:34:52 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2005-01-06 10:34:52 +0000 |
commit | a659e155e1848a3c0a8bd7b0ca395819a23aec09 (patch) | |
tree | 9bb285642003561f5627fc04cd8a5c2944e18211 /sci-mathematics/pari/files | |
parent | Revision bump for CAN-2004-0991. (Manifest recommit) (diff) | |
download | gentoo-2-a659e155e1848a3c0a8bd7b0ca395819a23aec09.tar.gz gentoo-2-a659e155e1848a3c0a8bd7b0ca395819a23aec09.tar.bz2 gentoo-2-a659e155e1848a3c0a8bd7b0ca395819a23aec09.zip |
Fixing segfault on start with gcc 3.4
Diffstat (limited to 'sci-mathematics/pari/files')
-rw-r--r-- | sci-mathematics/pari/files/digest-pari-2.1.5-r2 | 1 | ||||
-rw-r--r-- | sci-mathematics/pari/files/digest-pari-2.1.6 | 1 | ||||
-rw-r--r-- | sci-mathematics/pari/files/wrong_functype.patch | 35 |
3 files changed, 36 insertions, 1 deletions
diff --git a/sci-mathematics/pari/files/digest-pari-2.1.5-r2 b/sci-mathematics/pari/files/digest-pari-2.1.5-r2 deleted file mode 100644 index 2e0d53a28384..000000000000 --- a/sci-mathematics/pari/files/digest-pari-2.1.5-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 194e9d1cc11926e457028c6a7cba15f0 pari-2.1.5.tar.gz 1540679 diff --git a/sci-mathematics/pari/files/digest-pari-2.1.6 b/sci-mathematics/pari/files/digest-pari-2.1.6 new file mode 100644 index 000000000000..270158de59fa --- /dev/null +++ b/sci-mathematics/pari/files/digest-pari-2.1.6 @@ -0,0 +1 @@ +MD5 506a061c8dcdec33d18876f3c551e951 pari-2.1.6.tgz 1541464 diff --git a/sci-mathematics/pari/files/wrong_functype.patch b/sci-mathematics/pari/files/wrong_functype.patch new file mode 100644 index 000000000000..5eb95e622c7a --- /dev/null +++ b/sci-mathematics/pari/files/wrong_functype.patch @@ -0,0 +1,35 @@ +diff -ru src/gp/gp_rl.c src.new/gp/gp_rl.c +--- src/gp/gp_rl.c 2001-04-27 15:55:38.000000000 +0200 ++++ src.new/gp/gp_rl.c 2005-01-06 11:04:45.198086689 +0100 +@@ -79,11 +79,13 @@ + #endif + + #ifdef HAS_RL_COMPLETION_MATCHES +-# define COMPLETION_MATCHES ((CF)rl_completion_matches) ++# define COMPLETION_MATCHES(a,b) \ ++ (completion_matches((char *)(a),(b))) + # define FILE_COMPLETION ((GF)rl_filename_completion_function) + # define USER_COMPLETION ((GF)rl_username_completion_function) + #else +-# define COMPLETION_MATCHES ((CF)completion_matches) ++# define COMPLETION_MATCHES(a,b) \ ++ (completion_matches((char *)(a),(b))) + # define FILE_COMPLETION ((GF)filename_completion_function) + # define USER_COMPLETION ((GF)username_completion_function) + #endif +diff -ru src.old/gp/gp_rl.c src/gp/gp_rl.c +--- src.old/gp/gp_rl.c 2005-01-06 11:07:18.000000000 +0100 ++++ src/gp/gp_rl.c 2005-01-06 11:15:10.509112328 +0100 +@@ -625,10 +625,8 @@ + /* we always want the whole list of completions under emacs */ + if (under_emacs) rl_completion_query_items = 0x8fff; + +-#define Bind(a,b,c) (((void(*)(int,Function*,Keymap)) rl_bind_key_in_map)\ +- ((a), (Function*)(b), (c))) +-#define Defun(a,b,c) (((void(*)(const char*,Function*,int)) rl_add_defun)\ +- ((a), (Function*)(b), (c))) ++#define Bind(a,b,c) (rl_bind_key_in_map((a), (Function*)(b), (c))) ++#define Defun(a,b,c) (rl_add_defun((char*)(a), (Function*)(b), (c))) + + Defun("short-help", rl_short_help, -1); + Defun("long-help", rl_long_help, -1); |