LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-19-2008, 04:54 AM   #1
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Rep: Reputation: 15
Applying Software Patches.


Hello,

I downloaded the source for phpwiki and noticed that a patch file was available in the download area claiming to fix various issues.

I am aware of the 'patch' command in Linux, however this patch file offers no instructions so I am unsure how to actually apply it. I have both the source and patch in a directory and can access them.

Searches on the net seem to bring up guides on Kernel patching which is not what I am looking for.

The code directory is called:-
phpwiki-1.3.14

The patch is called:-
phpwiki-1.3.13p1-1.3.14.patch

Can anyone advise me on how to apply this?

Many Thanks,


Max.
 
Old 06-19-2008, 04:58 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
patch -p0 < phpwiki-1.3.13p1-1.3.14.patch

You may have to change directories into the phpwiki directory. You may have to change the -p0 (which strips of leading path components from the directories indicated in the patch file), depending upon how the patch was made. It might be -p1, or -p2, but is usually just -p0.

MrC
 
Old 06-19-2008, 07:16 AM   #3
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks,

I tried running patch < phpwiki-1.3.13p1-1.3.14.patch

and I got the following :-

Code:
patching file TODO
Reversed (or previously applied) patch detected!  Assume -R? [n]
Does this mean that the patch is not needed for this version and perhaps applies to an older version of the code?

Thanks Again,


Max.
 
Old 06-19-2008, 07:28 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
More than probably, if it says the same for all the files.
 
  


Reply

Tags
patches


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying patches to programs Grife Linux - Newbie 6 05-06-2007 10:00 AM
Applying patches. landfill Linux - Software 7 09-11-2005 06:05 PM
Order of applying patches Steve1445 Linux - Newbie 4 01-12-2004 11:10 AM
applying software patches yocompia Slackware 4 07-29-2003 08:36 PM
Applying Patches to Solaris 8 desbyleo Solaris / OpenSolaris 2 02-06-2003 04:37 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration