LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2004, 02:42 PM   #1
whoa
LQ Newbie
 
Registered: Feb 2004
Location: austin texas
Distribution: rh, fedora
Posts: 5

Rep: Reputation: 0
how to install an upackaged patch


I have a patch from an archive that patches JCR for jabber. My question is general and not restricted to JCR.

Here are the first few lines of the patch:

diff -ur jcr-0.1.2//jcomp/jcr_elements.c
jcr-0.1.2-compiles//jcomp/jcr_elements.c
--- jcr-0.1.2//jcomp/jcr_elements.c Tue Nov 4 22:42:42 2003
+++ jcr-0.1.2-compiles//jcomp/jcr_elements.c Thu Jan 29 17:56:50 2004
@@ -32,6 +32,8 @@
if (strncasecmp(name, "stream:stream", 13) == 0) {
char *pass =
xmlnode_get_data(xmlnode_get_tag(jcr->config,"secret"));

I know to create a file with the contents of this patch and run the patch command:

patch "source" < newpatchfile

But it is not clear what source file needs to be patched. Is the source jcr_elements.c?

Generally how should I be able to tell what needs to be patched when there is not a readme associated with the patch?

David
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 09:51 AM
how to install a patch anyway? mimithebrain Linux - Newbie 6 05-17-2004 04:29 PM
Can't install.. patch.pl not working either Remote Mandriva 0 01-21-2004 12:27 AM
New to linux - install patch-2.4.22 am38932 Linux - General 4 10-27-2003 03:31 PM
Can't install Patch KptnKrill Linux From Scratch 1 10-04-2003 08:06 PM


All times are GMT -5. The time now is 01:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration