Author Topic: Applying a lot of patches together to make a custom qvm  (Read 3843 times)

durand

  • Posts: 201
  • Turrets: +0/-0
Applying a lot of patches together to make a custom qvm
« on: May 14, 2007, 06:50:27 pm »
Im trying to apply quite a few patches to make a custom qvm. These are the patches im trying to apply:

Code: [Select]

backport901.patch
chat_bubble.patch
death.patch
deconfix.patch
radar.patch
risujin-svn892-teamoverlay.patch
svn909-creditoverflow.patch
patches/svn912.patch
tremulous-svn885-layouts.patch


I think the problem here is that they contradict each other and are for different svn revisions but whatever the case, they dont all seem to patch correctly. A lot of them give a similar error to this:
Code: [Select]
1 out of 1 hunk FAILED -- saving rejects to file src/game/g_cmds.c.rej
or this:
Code: [Select]
6 out of 52 hunks FAILED -- saving rejects to file src/game/g_cmds.c.rej

Im using this command to apply the patches individually
Code: [Select]
patch -p0 < /location/to/some.patch


Is there anything Im doing wrong or will these patches just not work together?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Applying a lot of patches together to make a custom qvm
« Reply #1 on: May 14, 2007, 08:04:49 pm »
Quote from: "durand"

Is there anything Im doing wrong or will these patches just not work together?
most patches that modify the same section of code won't apply cleanly if you apply more than one of them. you need to apply them by hand if you want it working.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Applying a lot of patches together to make a custom qvm
« Reply #2 on: May 14, 2007, 08:10:36 pm »
If you go and read the *.rej file, it will show you which bits in particular failed to get into the code. You'll then most likely need to poke in yourself and find the appropriate context. Note the line numbers, too, although they may be inaccurate by now, of course.
Oh, by the way, are you sure all those patches are appropriate for a game.qvm compilation? Some of them, like risujin's team overlay, sound like you might need a clientside download, too.
benmachine

durand

  • Posts: 201
  • Turrets: +0/-0
Applying a lot of patches together to make a custom qvm
« Reply #3 on: May 14, 2007, 08:11:31 pm »
O_o. I might give that a pass. Its for SexyGhost's server. Do you know any patches that will go well together?

EDIT for benmachine: I thought it would be something like that, seems like a lot of work though. I might try to understand it later.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Applying a lot of patches together to make a custom qvm
« Reply #4 on: May 14, 2007, 08:24:22 pm »
Learn C and apply the failed hunks manually. Patches may break each other even if there's no direct conflict.  Also run patch with -F0 unless you want to risk broken code. Clean fail is better than wrong fuzz match (yes, it HAS happened to me while patching Tremulous).
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

durand

  • Posts: 201
  • Turrets: +0/-0
Applying a lot of patches together to make a custom qvm
« Reply #5 on: May 14, 2007, 08:25:51 pm »
O.o, ill try those tips later. Thanks all of you