LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2002, 09:19 AM   #1
guerilla fighta
Member
 
Registered: Feb 2002
Distribution: SuSE 8.2
Posts: 62

Rep: Reputation: 15
bz2 kernel patches?? howto apply them...


how do i patch my kernel source's (2.4.18) with the 2.4.19 patch in bz2 format ? i searched linuxquestions and came up with :

zcat patch-2.4.X.gz | patch -p1

(note: im a little unsure whether ive got the above line 100% correct )

i tried this but i couldnt get it to work. id be grateful if someone could help me.

thanks
 
Old 08-21-2002, 09:31 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
in future may i recomend a google search.

but for now:
cd /usr/src/linux
patch -p1 < PATCH-FILE
 
Old 08-21-2002, 04:00 PM   #3
guerilla fighta
Member
 
Registered: Feb 2002
Distribution: SuSE 8.2
Posts: 62

Original Poster
Rep: Reputation: 15
thanx Frustin. i found out what was wrong, and it was just that i didnt have the patch rpm installed. It's an easy mistake to make.

now ive just gotta figure out howto work patch, when i use it nothing seems to work ?! i browsed the man page for patch, but im still a little confused. could someone help me out here ??

thanks,
 
Old 08-27-2002, 02:07 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
you'll have to elaborate i'm afraid. i dont understand what you mean by "nothing seems to work".
 
Old 08-27-2002, 02:20 AM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
i believe when u apply patch
if u don't see any error msg, u r fine,

if something goes wrong, it'll generate errors..

if i remember correct =)
 
Old 08-27-2002, 02:44 AM   #6
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
i concur.

if you do want to see some more infomation put the --verbose switch in.
 
Old 08-27-2002, 02:55 PM   #7
guerilla fighta
Member
 
Registered: Feb 2002
Distribution: SuSE 8.2
Posts: 62

Original Poster
Rep: Reputation: 15
Basically when i do:

patch -p1 < patch-2.4.19

its just like im pressing return. Im not seeing any message's about 'trying to allocate hunks' or anything like that, and im pretty sure that the command i typed (shown above) isnt doing anything.

Thanks for the info on the --verbose switch. I'll try that, and hopefully i should be able to work out what went wrong (if anything did go wrong) fairly quickly.

cheers
 
Old 08-27-2002, 03:38 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
you can also use the "--dry-run" flag to test it, comes in handy once in a while...
 
Old 08-28-2002, 03:08 PM   #9
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
what u can do is,
look at the patch file with an editor
and what file the patch will change..

save the file in a directory
apply the patch
and $diff original-file patched-file
 
Old 08-29-2002, 02:07 AM   #10
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
--dry-run will have the same effect. plus if you dont like it you can uninstall the patch anyway (with the -R option).
 
Old 08-31-2002, 04:55 AM   #11
guerilla fighta
Member
 
Registered: Feb 2002
Distribution: SuSE 8.2
Posts: 62

Original Poster
Rep: Reputation: 15
I tried the --verbose switch, but I'm getting this error message for nearly every file that is compared to its newer version in the 2.4.19 patch :

Hmm... Looks like a unified diff to me...
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 -urN linux-2.4.18/COPYING linux-2.4.19/COPYING
| - - - linux-2.4.18/COPYING Tue Oct 9 15:00:06 2001
| +++ linux-2.4.19/COPYING Fri Aug 2 17:39:42 2002
-----------------------------------------------------------------------------

(BTW, the file 'COPYING' is just an example, due to the fact that its the first file that was compared)

Every time i get this error (and I'm getting it an awful lot ) i have to type in the filename and its path, which is *very* frustrating ).

What's going wrong ? Is it an error on my behalf, or something wrong with patch ??
 
Old 09-02-2002, 02:04 AM   #12
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
where are you running the patch? hopefully in the /usr/src/linux-2.4.18 (or the equivilent directory). that should be the correct -p option.

show us what you are doing exactly i.e. copy command lines and stuff.
 
  


Reply



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 apply patches?? jadukor Slackware 4 12-02-2005 07:37 PM
apply patches and kernel compiliing zamurad77 Linux - General 1 08-17-2004 05:52 AM
RHEL kernel patches - how to apply? Bogdan Red Hat 0 03-18-2004 08:30 AM
Kismet, Howto apply the patches to orinoco_cs drivers greendusk Linux - Software 1 12-30-2003 12:27 AM
how to apply patches NGraphiX Linux - General 1 06-17-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 AM.

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
Open Source Consulting | Domain Registration