Package: vim
Version: 2:7.4.052-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

I'm not a vim user but I'm am very interested in porting the world to
Python 3.  To that end, I see that the current version of upstream vim
supports Python 3, but building that is not currently enabled in the
Debian package.  With the attached patch, I am able to build a vim
that appears to support both Python 2 and Python 3 dynamically.  I
haven't actually tested it in real vim session since I don't really
know how that works. ;)  I'll try to enlist other vim/python users to
review.

- -- Package-specific info:

- --- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.52-1
ii  libc6        2.17-96
ii  libgpm2      1.20.4-6.1
ii  libselinux1  2.2.1-1
ii  libtinfo5    5.9+20130608-1
ii  vim-common   2:7.4.052-1
ii  vim-runtime  2:7.4.052-1

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags        <none>
pn  vim-doc      <none>
pn  vim-scripts  <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBCAAGBQJSipuzAAoJEBJutWOnSwa/TPkP/iuTwcjLZBG6QmcRKf2BeQTp
xc+uRXhm2xUPMwMyE29OTGyPUKZFUNJtK3/93qAICMFVqsaAlpXBPOCy0TBWikNh
92A2RDQcqSa8GM2wPGohIJEseXSEB0NGjvpnihbBzYIKnupIk0iGjJFwnGo/C6gl
rseVk/CIE4QsATQqhW6bUzUhZpXTSgeh+Wb+aspjgzZif7ttkeeaGnlSOwt1efNl
Rg5ONSJLMOv3g4kvBApQgJgnEYt3+86R9MgriKKCUUGJDMHQTumTfWJB+LSViqYe
TLq9LEwADqcW/mYwcbuKOs6SL4trapqJqYjYkQiR1paVM0EC8oqaBNsy8bmCHIXQ
xgqRPATukWmlavMr2MpVpuFcbvGv0gHOh3qUePUS3TmA/nQI0uh3WpflZb26Io3Q
uSMlK1I3tXGaPTiRYwJjS24ptV0y1XjCrZQvBwW4HO4SwzajSJOH5emJ2Ce0nYCl
FVwyZG+LnKhxm0nH7kVLiOH/+XBdPSd/YuTAV4UoLSGBD3VDbhVpiVKnTOzSyk0z
mOg6DxYGKRDqeGziHG4BxlJUU+MH88U+wwI08YK7i3z/7pLnmzZ52BBnGPbh0oci
/9Y8Kr+isVeGu5FmDe38qe01kodkSTohaZR9fSWgiLIDfD+U/kK+J6KEJZBHiSbL
dN+G6XDmJ17Nav/GKsLC
=D38s
-----END PGP SIGNATURE-----
diff -Nru vim-7.4.052/debian/changelog vim-7.4.052/debian/changelog
--- vim-7.4.052/debian/changelog	2013-10-09 00:06:44.000000000 -0400
+++ vim-7.4.052/debian/changelog	2013-11-18 16:25:30.000000000 -0500
@@ -1,3 +1,9 @@
+vim (2:7.4.052-2) UNRELEASED; urgency=low
+
+  * Enable Python 3 support.
+
+ -- Barry Warsaw <ba...@debian.org>  Mon, 18 Nov 2013 16:24:56 -0500
+
 vim (2:7.4.052-1) unstable; urgency=low
 
   * Merge upstream tag v7-4-052
diff -Nru vim-7.4.052/debian/control vim-7.4.052/debian/control
--- vim-7.4.052/debian/control	2013-09-17 21:59:37.000000000 -0400
+++ vim-7.4.052/debian/control	2013-11-18 16:20:11.000000000 -0500
@@ -14,7 +14,7 @@
  libgtk2.0-dev, libxaw7-dev, libxt-dev, libxpm-dev, libgnomeui-dev,
 # B-D for language interpreters
 # Update d/rules when ruby version changes
- libperl-dev, tcl-dev, python-dev, ruby, ruby-dev, lua5.1,
+ libperl-dev, tcl-dev, python-dev, python3-dev, ruby, ruby-dev, lua5.1,
  liblua5.1-dev
 # ruby1.8{,-dev} Provides: ruby{,-dev} which can cause breakage on buildds if
 # ruby/ruby1.8-dev or ruby1.8/ruby-dev pairs get installed due to a mismatch in
diff -Nru vim-7.4.052/debian/patches/python3-test87.patch vim-7.4.052/debian/patches/python3-test87.patch
--- vim-7.4.052/debian/patches/python3-test87.patch	1969-12-31 19:00:00.000000000 -0500
+++ vim-7.4.052/debian/patches/python3-test87.patch	2013-11-18 16:53:21.000000000 -0500
@@ -0,0 +1,11 @@
+--- a/src/testdir/test87.ok
++++ b/src/testdir/test87.ok
+@@ -423,7 +423,7 @@
+ function('Put')
+ b'testdir'
+ test87.in
+-b'src'
++b'vim-nox'
+ testdir/test87.in
+ b'testdir'
+ test87.in
diff -Nru vim-7.4.052/debian/patches/series vim-7.4.052/debian/patches/series
--- vim-7.4.052/debian/patches/series	2013-10-08 23:37:24.000000000 -0400
+++ vim-7.4.052/debian/patches/series	2013-11-18 16:52:05.000000000 -0500
@@ -5,3 +5,4 @@
 debian/vim-tiny.patch
 debian/disabled-modelines.patch
 debian/extra-tex-detection.patch
+python3-test87.patch
diff -Nru vim-7.4.052/debian/rules vim-7.4.052/debian/rules
--- vim-7.4.052/debian/rules	2013-08-10 21:03:25.000000000 -0400
+++ vim-7.4.052/debian/rules	2013-11-18 16:24:43.000000000 -0500
@@ -96,9 +96,9 @@
 NOINTERPFLAGS+=--disable-mzschemeinterp
 NOINTERPFLAGS+=--disable-perlinterp
 ifeq ($(DEB_VENDOR),Ubuntu)
-	NOINTERPFLAGS+=--enable-pythoninterp --with-python-config-dir=$(shell python-config --configdir)
+	NOINTERPFLAGS+=--enable-pythoninterp --with-python-config-dir=$(shell python-config --configdir) --enable-python3interp --with-python3-config-dir=$(shell python3-config --configdir)
 else
-	NOINTERPFLAGS+=--disable-pythoninterp
+	NOINTERPFLAGS+=--disable-pythoninterp --disable-python3interp
 endif
 NOINTERPFLAGS+=--disable-python3interp
 NOINTERPFLAGS+=--disable-rubyinterp
@@ -108,7 +108,7 @@
 ALLINTERPFLAGS+=--disable-mzschemeinterp
 ALLINTERPFLAGS+=--enable-perlinterp
 ALLINTERPFLAGS+=--enable-pythoninterp --with-python-config-dir=$(shell python-config --configdir)
-ALLINTERPFLAGS+=--disable-python3interp
+ALLINTERPFLAGS+=--enable-python3interp --with-python3-config-dir=$(shell python3-config --configdir)
 ALLINTERPFLAGS+=--enable-rubyinterp
 ALLINTERPFLAGS+=--enable-tclinterp
 

Reply via email to