Skip to contentSkip to conversation

ketchup 0.8

ANNOUNCE Matt Mackall 2 participants 6 messages Jul 23, 2004 – Jul 24, 2004

lore
Share & tools
lore
#0 lore raw

ketchup is a script that automatically patches between kernel versions, downloading and caching patches as needed, and automatically determining the latest versions of several trees. Available at:

http://selenic.com/ketchup/ketchup-0.8

New in this version by popular demand:

- falls back to .gz files if .bz2 files aren't available
- can find BK snapshots in old/ directories (aka the jgarzik memorial hack)
- option to rename directories to linux-<v> after update
- can read default options from KETCHUP_OPTS

Example usage:

 $ ketchup 2.6-mm
 2.6.3-rc1-mm1 -> 2.6.5-mm4
 Applying 2.6.3-rc1-mm1.bz2 -R
 Applying patch-2.6.3-rc1.bz2 -R
 Applying patch-2.6.3.bz2
 Applying patch-2.6.4.bz2
 Applying patch-2.6.5.bz2
 Downloading 2.6.5-mm4.bz2
 Downloading 2.6.5-mm4.bz2.sign
 Verifying signature...
 gpg: Signature made Sat Apr 10 21:55:36 2004 CDT using DSA key ID 517D0F0E
 gpg: Good signature from "Linux Kernel Archives Verification Key
 <[email protected]>"
 gpg:                 aka "Linux Kernel Archives Verification Key
 <[email protected]>"
 owner.
 gpg: WARNING: This key is not certified with a trusted signature!
 gpg:          There is no indication that the signature belongs to the
 Primary key fingerprint: C75D C40A 11D7 AF88 9981  ED5B C86B A06A 517D 0F0E
 Applying 2.6.5-mm4.bz2

--
Mathematics is the supreme nostalgia of our time.

#1 lore raw
Quoted 6 lines · Matt Mackall

ketchup is a script that automatically patches between kernel versions, downloading and caching patches as needed, and automatically determining the latest versions of several trees. Available at:

http://selenic.com/ketchup/ketchup-0.8

Does not work on Debian unstable:

rlrevell@mindpipe:~/kernel-source$ ketchup-0.8 2.6-mm
Creating cache directory /home/rlrevell/.ketchup
None -> 2.6.8-rc1-mm1
Downloading linux-2.6.7.tar.bz2
--21:14:12--  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2
           => `/home/rlrevell/.ketchup/linux-2.6.7.tar.bz2.partial'
Resolving www.kernel.org... 204.152.189.116
Connecting to www.kernel.org[204.152.189.116]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35,092,228 [application/x-bzip2]

100%[====================================>] 35,092,228 187.32K/s ETA 00:00

21:17:17 (185.54 KB/s) - `/home/rlrevell/.ketchup/linux-2.6.7.tar.bz2.partial' s aved [35092228/35092228]

Traceback (most recent call last):
File "/usr/local/bin/ketchup-0.8", line 551, in ?
transform(a, b)
File "/usr/local/bin/ketchup-0.8", line 475, in transform
a = install_nearest(base(b))
File "/usr/local/bin/ketchup-0.8", line 437, in install_nearest
if not f:
UnboundLocalError: local variable 'f' referenced before assignment

Lee

#2 lore raw
Quoted 9 lines · Lee Revell
Quoted 6 lines · Matt Mackall

ketchup is a script that automatically patches between kernel versions, downloading and caching patches as needed, and automatically determining the latest versions of several trees. Available at:

http://selenic.com/ketchup/ketchup-0.8

Does not work on Debian unstable:

Oops. Should be fixed by:

http://selenic.com/ketchup/ketchup-0.8.1

Signature · 1 line
Mathematics is the supreme nostalgia of our time.
#3 lore raw
Quoted 6 lines · Matt Mackall
Quoted 5 lines · Lee Revell
Quoted 4 lines · Matt Mackall

ketchup is a script that automatically patches between kernel versions, downloading and caching patches as needed, and automatically determining the latest versions of several trees. Available at:

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

http://selenic.com/ketchup/ketchup-0.8

Does not work on Debian unstable:

Oops. Should be fixed by:

http://selenic.com/ketchup/ketchup-0.8.1

Now it seems to work, but I get:

...downloads some stuff...
patching file sound/pci/intel8x0.c
patching file sound/pci/nm256/nm256.c
patching file sound/ppc/pmac.c
ketchup: patch /home/rlrevell/.ketchup/patch-2.6.8-rc1.bz2 failed: 256

Not checking the return value from patch correctly?

Lee

#4 lore raw
Quoted 7 lines · Lee Revell
Quoted 3 lines · Matt Mackall

Oops. Should be fixed by:

http://selenic.com/ketchup/ketchup-0.8.1

Now it seems to work, but I get:

Quoted 7 lines

...downloads some stuff...
patching file sound/pci/intel8x0.c
patching file sound/pci/nm256/nm256.c
patching file sound/ppc/pmac.c
ketchup: patch /home/rlrevell/.ketchup/patch-2.6.8-rc1.bz2 failed: 256

Not checking the return value from patch correctly?

That return code suggests some hunks failed. Can you check for .rej files?

Signature · 1 line
Mathematics is the supreme nostalgia of our time.
#5 lore raw
Quoted 14 lines · Matt Mackall
Quoted 13 lines · Lee Revell
Quoted 3 lines · Matt Mackall

Oops. Should be fixed by:

http://selenic.com/ketchup/ketchup-0.8.1

Now it seems to work, but I get:

...downloads some stuff...
patching file sound/pci/intel8x0.c
patching file sound/pci/nm256/nm256.c
patching file sound/ppc/pmac.c
ketchup: patch /home/rlrevell/.ketchup/patch-2.6.8-rc1.bz2 failed: 256

Quoted 4 lines
Quoted 1 line

Not checking the return value from patch correctly?

That return code suggests some hunks failed. Can you check for .rej files?

There were no .rej files. I ran it again and it said I was up to date. Is it possible that a mirror was not fully synced?

The easy fix would be to have it just try again automatically if it sees this.

Lee