Intermittent patch VIM compilation

On Ubuntu 12.04, the exact only way to get a breaking patch working in VIM seems to compile VIM itself after fixing it. Here is what I did:

Install pbuilder and create a local environment

sudo apt-get install pbuilder debootstrap sudo pbuilder create --debootstrapopts --variant=buildd 

Get sources

 sudo apt-get source vim 

Patch them with the fix received from the official repo

 cd vim-7.3.429 patch -p1 < vim-breakindent.patch sudo pbuilder build vim_7.3.429-2ubuntu2.1.dsc 

Pbuilder correctly generates deb packages, but after installing them there is no breakindent option:

 :set bri E518: Unknown option: bri 

Where is the mistake? Thanks you

+1
vim compilation
Jun 12 2018-12-12T00:
source share
2 answers

pbuilder still uses unmodified .dsc , .orig.tar.gz and .debian.tar.gz to build the package. Applying a patch to a local copy does not help.

You should probably add the patch to debian/patches/ and debian/patches/series , bump the local version number in debian/changelog ( debchange might help) and re-create the original archive (something like dpkg-buildpackage -S ).

+1
Jun 12 '12 at 14:35
source share

Update: It worked after several steps.

  • After apt-get source :

     cd vim-7.3.429 sudo chmod u=rw,g=r,o=r ../vim-breakindent.patch sudo cp ../vim-breakindent.patch debian/patches/debian/. 
  • added one new entry in debian/changelog , oblique version from vim_7.3.429-2ubuntu2.1 to vim_7.3.429-2ubuntu2.2

  • added debian/vim-breakindent.patch at the end of debian/patches/series
  • create a new source package:

     sudo pdebuild 
  • compile the new .dsc :

     sudo pbuilder build vim_7.3.429-2ubuntu2.2.dsc 
  • install new debs:

     sudo dpkg -i /var/cache/pbuilder/result/*.deb 
+1
Jun 16 2018-12-12T00:
source share



All Articles