You are not logged in.

#1 2009-05-10 22:37:30

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

[SOLVED] vi/vim/gvim rebuild from ABS failed

Hi, tried to rebuild vi from source (to get rid of ruby dependence of vim,gvim by modifing PKGBUILD) and got this message.

        having patch file:7.2.166
    having patch file:7.2.001-100.gz
Number of patches does not match the patchlevel!
Edit the PKGBUILD accordingly!

If I change the PKGBUILD so that

_patchlevel=167

instead of

_patchlevel=65

It gives me the following message

having patch file:7.2.166
having patch file:7.2.001-100.gz
patching file src/pty.c
patching file src/version.c
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.

How should I modify PKGBUILD to actually build it

Last edited by ogronom (2009-05-11 13:21:07)

Offline

#2 2009-05-11 02:53:36

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [SOLVED] vi/vim/gvim rebuild from ABS failed

patchlevel should only be 166, as there isn't a patch 167 yet.
ftp://ftp.vim.org/pub/vim/patches/7.2/

I think the problem might be that the 1-100 file is a collection of individual patches (inclusive from 1 to 100). The patch fetch/apply scriptlet might be trying to apply all those twice. It is a fairly simple shell script (not alot of logic).

on line 21 of get_patches.sh

                  for _line in $(/bin/cat MD5SUMS); do

you could try changing that to

                  for _line in $(/bin/cat MD5SUMS | grep -vF '-'); do

that should work, in conjunction with changing the patchlevel to 166

EDIT: You should also file a bug report about the get_patches script failing if there are patch bundles included in the md5sum file from the vim patch directory, as it appears to be trying to add the patch bundle as well as the individual patches.

Last edited by cactus (2009-05-11 02:56:35)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-05-11 13:19:55

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

Re: [SOLVED] vi/vim/gvim rebuild from ABS failed

Thanks a lot.
Submitted a bugreport

Offline

Board footer

Powered by FluxBB