LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-14-2004, 08:36 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
Applying patches in linux


Hi,
I recently downloaded a package along with a patch.I can't compile it without the patch.Can someone tell me how do I go about it?The patch I have is not compressed.How do I apply the patch?Please help.
 
Old 08-14-2004, 08:51 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
cat -cd patchname | patch -d directory -p1
 
Old 08-14-2004, 09:07 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Original Poster
Rep: Reputation: 36
Sorry for the bother,but I have the rep-gtk tarball and it's gtk-2.4 patch in text form.According to the reply,do I untar the rep-gtk package and apply the patch with the command you posted or do I need to do something else.Please help.
 
Old 08-14-2004, 09:14 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
untar the package first.
 
Old 08-14-2004, 11:30 AM   #5
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Original Poster
Rep: Reputation: 36
Hi,
I did as wa required,but the compiler throws up this error.What am I missing?

Code:
[root@localhost rep-gtk-0.18]# patch -p1 < rep-gtk-0.18-gtk2.4.diff  (Stripping trailing CRs from patch.)  can't find file to patch at input line 3  Perhaps you used the wrong -p or --strip option?  The text leading up to this was:  --------------------------  |--- rep-gtk-0.18/rep-gtk.h.orig2004-03-26 14:10:18.000000000 -0500  |+++ rep-gtk-0.18/rep-gtk.h2004-03-26 14:11:15.000000000 -0500  --------------------------
I copied the patch file to the extracted rep-gtk directory and executed the commands it.I think the files to be patched are the rep-gtk header file and the gtk-compatibility header file.Is there some way I can get over this problem? Please help.
 
Old 08-15-2004, 12:01 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
you give the pathname of the directory to be patched to patch. the patch doesn't need to be in the directory with the files.
cat -cd /rep-gtk-0.18-gtk2.4.diff | patch -d /rep-gtk-0.18 -p1
if both are in the root directory.
 
Old 08-15-2004, 10:16 AM   #7
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Original Poster
Rep: Reputation: 36
I tried everything.It just doesn't work.The patch is from a very good source,so no chance of it being corrupt.The download was clean too.Has anyone done this before?Please help.
 
Old 08-15-2004, 10:40 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
sorry i gave you the wrong command.
the -cd is for gzip, not for cat. besure to get the full pathname for the patch and directory.

cat /rep-gtk-0.18-gtk2.4.diff | patch -d /rep-gtk-0.18 -p1
 
  


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
Applying patches. landfill Linux - Software 7 09-11-2005 06:05 PM
applying patches in fluxbox corbis_demon Linux - Software 1 08-14-2004 06:31 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 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