Jump to content
  • 0

Patch a .diff file on Centos 5.9 32 bit


Yuka

Question


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Hello,

 

I'd like to patch this diff: http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/

on my root which runs on Centos 5.9 32bit.

 

Can someone help me out? I already tried this: http://rathena.org/wiki/Diff

It tells me that the command "patch" was not found.

 

Thanks.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

cd /root/rAthena/
yum install patch
patch -p1 < battleground_17102.diff
So this is what I need to do, right?

Do I need to shut the server down for this?

 

Thanks!

u need to shut it down when u recompile it
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

yum install patch

that wiki said -p0, if ur .diff file has a/ and b/ before the file name --- map/clif.c, use -p1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

yum install patch

that wiki said -p0, if ur .diff file has a/ and b/ before the file name --- map/clif.c, use -p1

 

cd /root/rAthena/
yum install patch
patch -p1 < battleground_17102.diff

So this is what I need to do, right?

Do I need to shut the server down for this?

 

Thanks!

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  100
  • Topics Per Day:  0.03
  • Content Count:  333
  • Reputation:   7
  • Joined:  03/01/14
  • Last Seen:  

Okay, I've made it.

But the patch seem to be broken. :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...