You are not logged in.

#1 2009-06-30 20:55:31

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved] Custom Vim compilation with patches.

Hello
I want to compile Vim with another than standard PKGBUILD and when I compile it I got error:
Number of patches does not match the patchlevel!
Edit the PKGBUILD accordingly!
My PKGBUILD:

pkgname=vim
_srcver=7.2
_patchlevel=65
pkgver=${_srcver}.${_patchlevel}
pkgrel=1.1
pkgdesc="a highly configurable, improved version of the vi text editor"
arch=(i686 x86_64)
license=('custom:vim')
url="http://www.vim.org"
depends=("vi>=${pkgver}" 'perl' 'acl' 'libxt')
makedepends=('wget' 'sed' 'grep')
backup=(etc/vimrc)
install=${pkgname}.install
# we need the extra-stuff to get all patches applied smoothly
source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2 \
        ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-extra.tar.gz \
        ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-lang.tar.gz \
        fetch_patches.sh)
md5sums=('f0901284b338e448bfd79ccca0041254' '35e04482f07c57221c9a751aaa3b8dac' \
         'd8884786979e0e520c112faf2e176f05' 'a3b03cd44b8ed78a99850d4cbfaafe55')

build()
{
  # pull in patches from vim.org (or the src cache alternatively)
  . ${startdir}/src/fetch_patches.sh
  get_patches || return 1
  cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")
  sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
  # build party
  ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
    --with-compiledby=ArchLinux --with-features=big \
    --disable-gui \
    --with-global-runtime=/usr/share/vim --with-vim-name=vim \
    --enable-multibyte --enable-cscope \
    --enable-perlinterp --disable-pythoninterp --disable-rubyinterp
  make || return 1
  make  VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
  cd ${startdir}/pkg/usr/bin
  rm -f ex view rview xxd vimtutor
  ln -s vitutor vimtutor

   # delete the manpages/symlinks provided by vi package
  find ${startdir}/pkg/usr/share/man -type d -name 'man1' 2> /dev/null | \
   while read mandir; do
    cd ${mandir}
    mv vimdiff.1 vimdiff.org
    rm -f *.1
    ln -s rvi.1.gz rvim.1.gz
    ln -s vi.1.gz vim.1.gz
    ln -s vitutor.1.gz vimtutor.1.gz
    mv vimdiff.org vimdiff.1
  done

  # kill the nobackup parts
  sed -i '/vms/,+4 d' ${startdir}/pkg/usr/share/vim/vimrc_example.vim
  install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \
    ${startdir}/pkg/etc/vimrc
  # clean all settings and controls -  served by vi package
  rm -rf ${startdir}/pkg/usr/share/vim
}

I don't know what to do.
Thanks for help smile

Last edited by SpeedVin (2009-07-01 07:26:06)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-06-30 22:40:19

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [Solved] Custom Vim compilation with patches.

try setting _patchlevel to 218.

Offline

#3 2009-07-01 05:11:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Custom Vim compilation with patches.

SpeedVin, you'll need to check vim's web site whenever you want to build it to find the current patch level is. It's the last three digits in the current version line up to:

http://www.vim.org

Offline

#4 2009-07-01 06:06:38

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] Custom Vim compilation with patches.

Stefan Husmann wrote:

try setting _patchlevel to 218.

Hello I add 218 and he passed all patches but on end I got the same error as before.

skottish wrote:

SpeedVin, you'll need to check vim's web site whenever you want to build it to find the current patch level is. It's the last three digits in the current version line up to:

http://www.vim.org

I was searching but I can't find it sad

Edit:

I set pattchlevel to 0 and the same situation as patchlevel=218.
If I change package version to 7.2.218 it can't find it where I can find it?
Ok i copied PKGBUILD from testing repository and adjust PKGBUILD and it's build i was even not thinking that VIm can be in testing repository smile
Thanks for help smile

Last edited by SpeedVin (2009-07-01 06:48:55)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB