Author Topic: Need some help patching (new)  (Read 2873 times)

Jack Bauer

  • Posts: 200
  • Turrets: +6/-10
Need some help patching (new)
« on: October 14, 2009, 05:31:23 pm »
I am trying to do some patching (obviously). I did an svn checkout on a folder in my desktop and I pasted all of my patches in there (i think that that is where I was supposed to put them) so I do
patch -p0 < patchname in this case was...chat_bubble.patch I think and I get this error
Code: [Select]
  1.
      $ patch -p0 < chat_bubble.patch
   2.
      patching file src/game/bg_misc.c
   3.
      Hunk #1 FAILED at 1472.
   4.
      Hunk #2 FAILED at 1511.
   5.
      Hunk #3 FAILED at 1550.
   6.
      Hunk #4 FAILED at 1589.
   7.
      Hunk #5 FAILED at 1669.
   8.
      Hunk #6 FAILED at 1709.
   9.
      Hunk #7 FAILED at 1749.
  10.
      Hunk #8 FAILED at 1789.
  11.
      Hunk #9 FAILED at 1829.
  12.
      Hunk #10 FAILED at 1869.
  13.
      Hunk #11 FAILED at 1909.
  14.
      Hunk #12 FAILED at 1949.
  15.
      Hunk #13 FAILED at 1984.
  16.
      Hunk #14 FAILED at 2272.
  17.
      14 out of 14 hunks FAILED -- saving rejects to file src/game/bg_misc.c.rej
  18.
      patching file src/game/bg_public.h
  19.
      Hunk #1 FAILED at 944.
  20.
      Hunk #2 FAILED at 1194.
  21.
      2 out of 2 hunks FAILED -- saving rejects to file src/game/bg_public.h.rej
  22.
      patching file src/cgame/cg_players.c
  23.
      Hunk #1 FAILED at 1701.
  24.
      Hunk #2 FAILED at 1711.
  25.
      Hunk #3 FAILED at 1746.
  26.
      3 out of 3 hunks FAILED -- saving rejects to file src/cgame/cg_players.c.rej
I also get this sometimes:
Code: [Select]
$ patch -p0 < qvm_version_info.patch
patching file src/game/g_main.c
patch: **** malformed patch at line 16: @@ -245,6 +250,8 @@
or this
Code: [Select]
$ patch -p0 < tjw.suddendeath_modes.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nru tremulous/src/game/bg_misc.c tremulous.temp/src/game/bg_misc.c
|--- tremulous/src/game/bg_misc.c       2007-02-28 18:28:08.000000000 +0100
|+++ tremulous.temp/src/game/bg_misc.c  2007-02-28 18:32:06.000000000 +0100
--------------------------
File to patch:
whats the deal?
Also, I couldnt find an ESD patch at MG is there one somewhere?
EDIT: Foundn and ESD patch but get the first error about hunks failing.
« Last Edit: October 14, 2009, 05:34:51 pm by Jack Bauer »
"Las guns are a woman's weapon. That's why they're called 'Las' guns!"
"In My Opinion", eg "IMO you should have googled it instead of asking"

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Need some help patching (new)
« Reply #1 on: October 14, 2009, 06:38:12 pm »
The failing thing means the source you are trying to patch is too different from what the patch was expecting.
If it's an old patch you probably have to do it by hand.

The malformed one means your patch file is dud.  Maybe it downloaded wrong or has been truncated?

The final ones means you need to use -p1 or -p2 instead of -p0.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.