[arch-commits] Commit in python/trunk (ChangeLog PKGBUILD python-2.6-readline.patch)
Allan McRae
allan at archlinux.org
Mon Jul 20 02:27:23 UTC 2009
Date: Sunday, July 19, 2009 @ 22:27:23
Author: allan
Revision: 46740
upgpkg: python 2.6.2-5
fix for readline6.0 (FS#15548)
Added:
python/trunk/python-2.6-readline.patch
Modified:
python/trunk/ChangeLog
python/trunk/PKGBUILD
---------------------------+
ChangeLog | 5 +++++
PKGBUILD | 5 ++++-
python-2.6-readline.patch | 23 +++++++++++++++++++++++
3 files changed, 32 insertions(+), 1 deletion(-)
Modified: ChangeLog
===================================================================
--- ChangeLog 2009-07-20 01:28:09 UTC (rev 46739)
+++ ChangeLog 2009-07-20 02:27:23 UTC (rev 46740)
@@ -1,3 +1,8 @@
+2009-07-20 Allan McRae <allan at archlinux.org>
+ * python 2.6.2-5
+ * add patch to fix readline completion support
+ with readline 6.0
+
2009-07-13 Allan McRae <allan at archlinux.org>
* python 2.6.2-4
* use our CFLAGS (FS#15336)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-07-20 01:28:09 UTC (rev 46739)
+++ PKGBUILD 2009-07-20 02:27:23 UTC (rev 46740)
@@ -4,7 +4,7 @@
pkgname=python
pkgver=2.6.2
-pkgrel=4
+pkgrel=5
_pybasever=2.6
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
@@ -19,12 +19,14 @@
python-2.6-internal-expat.patch
python-2.6-gdbm.patch
python-2.6-smtplib.patch
+ python-2.6-readline.patch
modulator-launcher
pynche-launcher)
md5sums=('245db9f1e0f09ab7e0faaa0cf7301011'
'993800dbcc0c4f199c1ceee998a06e71'
'13fab4bb2cacbc433e62d7191a17f71e'
'c38d58521acfb6eec0c3d3c5ad38410a'
+ '1f0aed8b96d4531f40fd3e24a80157a5'
'b4a531570415280dc406c8d5c1fa8d83'
'9f731b9033db285132a3524fb36409e7')
@@ -34,6 +36,7 @@
patch -Np0 -i ${srcdir}/python-2.6-internal-expat.patch
patch -Np1 -i ${srcdir}/python-2.6-gdbm.patch
patch -Np0 -i ${srcdir}/python-2.6-smtplib.patch
+ patch -Np0 -i ${srcdir}/python-2.6-readline.patch
export OPT="${CFLAGS}"
./configure --prefix=/usr --enable-shared --with-threads --enable-unicode
Added: python-2.6-readline.patch
===================================================================
--- python-2.6-readline.patch (rev 0)
+++ python-2.6-readline.patch 2009-07-20 02:27:23 UTC (rev 46740)
@@ -0,0 +1,23 @@
+--- Modules/readline.c 2008-11-04 12:43:31.000000000 -0800
++++ Modules/readline.c 2009-04-22 15:50:49.000000000 -0700
+@@ -759,6 +759,10 @@
+ static char **
+ flex_complete(char *text, int start, int end)
+ {
++#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
++ rl_completion_append_character ='\0';
++ rl_completion_suppress_append = 0;
++#endif
+ Py_XDECREF(begidx);
+ Py_XDECREF(endidx);
+ begidx = PyInt_FromLong((long) start);
+@@ -799,11 +803,8 @@
+ rl_completer_word_break_characters =
+ strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
+ /* All nonalphanums except '.' */
+-#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
+- rl_completion_append_character ='\0';
+-#endif
+
+ begidx = PyInt_FromLong(0L);
+ endidx = PyInt_FromLong(0L);
More information about the arch-commits
mailing list