Reputation: 16802
I need to apply a patch to the vim source code, but I am having trouble finding the source code for version 7.3.285. The source code from the main vim site builds version 7.3.154. When I do a google search for "vim 7.3.285 source" I get mostly .rpm
files and always something about Mandriva. I managed to find a .scr.rpm
file and unpacked it, but then the main vim folder it had was exactly the same as the one on the vim site. My guess is that I have use the patch folder to apply the patch to version 285. So I tried the following:
.src.rpm
file here.src.rpm
file like so rpm2cpio vim-7.3.285-1.src.rpm | cpio -idmv --no-absolute-filenames
vim73
folder somewhat like so for i in 'seq 0 285'; do patch -p0 < ../vim-7.3-patches/7.3.$i; done
patch -p1 -i ../vim-7.3.285-breakindent.patch
configure
, make
and sudo make install
However, and this is where it gets weird, if I issue the command vim
, it claims to be running version 7.3.285
. If however, I issue the command gvim
it claims to be running version 7.3.154
. It was my understanding that you compile vim and gvim gets compiled too. Does anyone have any idea what is going wrong? Is there a 7.3.285 source file I can download instead to test out?
Upvotes: 3
Views: 1188
Reputation: 1
vim 7.3.285-1ubu2204
is a simple RPM package adapted to ubuntu 22.04 and runs
with debbuild , a package described inside README.sdeb. see
e.g. lynx ftp://stokkie.net/pub/linux/yt-dlp/DEB/ubuntu2204/README.sdeb
hubble:root]:(/var/ftp/pub/linux/vim/DEB/1ubu2204)# ll
total 5412
-rw-r--r-- 1 root root 3604 Sep 6 02:10 installed-packages.txt
-rw-r--r-- 1 root root 4189660 Oct 22 2023 vim-base_7.3.285-1ubu2204_amd64.deb
-rw-r--r-- 1 root root 972980 Oct 22 2023 vim-enhanced_7.3.285-1ubu2204_amd64.deb
-rw-r--r-- 1 root root 330772 Oct 22 2023 vim-minimal_7.3.285-1ubu2204_amd64.deb
-rw-r--r-- 1 root root 36982 Oct 22 2023 vim.spec
[hubble:root]:(/var/ftp/pub/linux/vim/DEB/1ubu2204)#
stock@vax-linux:~$ dpkg -l | grep vim
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 51412 package 'metamail':
missing 'Maintainer' field
ii vim-base 7.3.285-1ubu2204 amd64 The base files needed by any version of the VIM editor
ii vim-common 2:8.2.3995-1ubuntu2.17 all Vi IMproved - Common files
ii vim-enhanced 7.3.285-1ubu2204 amd64 A version of the VIM editor which includes recent enhancements
ii vim-minimal 7.3.285-1ubu2204 amd64 A minimal version of the VIM editor
ii vim-tiny 2:8.2.3995-1ubuntu2.17 amd64 Vi IMproved - enhanced vi editor - compact version
stock@vax-linux:~$
root@vax-linux:~# dpkg -s vim-base
Package: vim-base
Status: install ok installed
Priority: optional
Section: Editors
Maintainer: Robert M. Stockmann <[email protected]>
Architecture: amd64
Version: 7.3.285-1ubu2204
Description: The base files needed by any version of the VIM editor
VIM (VIsual editor iMproved) is an updated and improved version of the vi
editor. Vi was the first real screen-based editor for UNIX, and is still
very popular. VIM improves on vi by adding new features: multiple windows,
multi-level undo, block highlighting and more. The vim-base package
contains files which every VIM binary will need in order to run.
root@vax-linux:~#
root@vax-linux:~# dpkg -s vim-enhanced
Package: vim-enhanced
Status: install ok installed
Priority: optional
Section: Editors
Maintainer: Robert M. Stockmann <[email protected]>
Architecture: amd64
Version: 7.3.285-1ubu2204
Provides: vim, vim-color
Depends: vim-base (>= 7.3.285-1ubu2204), perl-base, libtinfo6, libc6
Description: A version of the VIM editor which includes recent enhancements
VIM (VIsual editor iMproved) is an updated and improved version of the vi
editor. Vi was the first real screen-based editor for UNIX, and is still
very popular. VIM improves on vi by adding new features: multiple windows,
multi-level undo, block highlighting and more. The vim-enhanced package
contains a version of VIM with extra, recently introduced features like
Python and Perl interpreters.
.
Install the vim-enhanced package if you'd like to use a version of the VIM
editor which includes recently added enhancements like interpreters for the
Python and Perl scripting languages. You'll also need to install the
vim-base package.
root@vax-linux:~#
root@vax-linux:~# dpkg -s vim-minimal
Package: vim-minimal
Status: install ok installed
Priority: optional
Section: Editors
Maintainer: Robert M. Stockmann <[email protected]>
Architecture: amd64
Version: 7.3.285-1ubu2204
Provides: vim
Depends: libc6, libtinfo6
Description: A minimal version of the VIM editor
VIM (VIsual editor iMproved) is an updated and improved version of the vi
editor. Vi was the first real screen-based editor for UNIX, and is still
very popular. VIM improves on vi by adding new features: multiple windows,
multi-level undo, block highlighting and more. The vim-minimal package
includes a minimal version of VIM, which is installed into /bin/vi for use
when only the root partition is present.
root@vax-linux:~#
%changelog
* Mon Aug 22 2011 Lonyai Gergely <[email protected]> 7.3.285-1mdv2011.0
+ Revision: 696078
- 7.3-285
- 7.3-284
- 7.3-281
- 7.3-280
- 7.3-266
Upvotes: 0
Reputation: 46892
to get the 7.3.285 source clone the mercurial repo and then do hg up v7-3-285
Upvotes: 2