LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-06-2006, 09:30 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
Exclamation how to apply a patch?


Hi,

I want to apply a patch to my existing kernel tree on the arch/mips/kernel/process.c --

how do i do it?! :-)

Thanks,
Ashlesha.
 
Old 12-06-2006, 10:00 PM   #2
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
http://linuxheadquarters.com/howto/t...nelpatch.shtml
With patch?...
(`man patch`)

Or are you trying to do something else, and I'm not understanding the question?
If so, you may want to most some more specific information.
 
Old 12-07-2006, 07:36 AM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Assuming that the diff file is in /usr/src and the linux kernel source code is in /usr/src/linux, then you do:

# cd /usr/src/linux
# cat ../patch.diff | patch -p1
 
Old 12-07-2006, 02:11 PM   #4
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
what should the patch be called though- i have the contents of the diff file -- what should i call it?
 
Old 12-07-2006, 03:09 PM   #5
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
hi,
i get the following error:
Quote:
missing header for unified diff at line 3 of patch
patching file arch/mips/kernel/process.c
Hunk #1 succeeded at 24 with fuzz 2 (offset -1 lines).
patch: **** malformed patch at line 62: @@ -320,6 +294,23 @@ static int __init get_frame_info(struct
what does that mean?
Thanks,
Ashlesha.
 
  


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 apply a patch? amwink Programming 2 11-25-2005 08:14 PM
how to apply patch? greythorne Fedora 1 03-09-2005 05:38 AM
Ho Do I Apply The CK Patch? AFI_Flame Linux - Software 1 11-14-2004 11:49 PM
How to apply PATCH? aurelio26 *BSD 3 10-07-2004 02:23 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-21-2004 12:14 AM


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