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 11-11-2013, 12:28 PM   #1
injijagwalaafq
LQ Newbie
 
Registered: Oct 2013
Posts: 28

Rep: Reputation: Disabled
Question Kernel Patching


I'm still working on the folding CD project. I am hoping that patching the 2.6.33 kernel may fix some of the issues I am having.

Ok so the patches dir in the project contains a bunch of .patch files. The Makefile which applies said patches also refers to them as such. kernel.org, distributes patches as .bz2 etc.

My question is: What decompression method to I need to yield the needed .patch file?

Thanks!
 
Old 11-11-2013, 12:43 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
.bz2 files are compressed with bzip, You uncompress with bunzip, or use the "j" parameter if it's a tar.bz2 archive.
 
Old 11-11-2013, 12:46 PM   #3
injijagwalaafq
LQ Newbie
 
Registered: Oct 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
I did that but the resulting decompressed file has no extension. Yes I could arbitrarily add the .patch but knowing my luck that would screw something up.
 
Old 11-11-2013, 12:51 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
Are you saying you have a number of files named something.patch.bz2, but when you run bunzip to decompress them, both extensions disappear? That sounds very odd.
 
Old 11-11-2013, 01:25 PM   #5
injijagwalaafq
LQ Newbie
 
Registered: Oct 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
The files in the patches directory are .patch files.As the link shows. bunzip leaves a file like patch-3.12, no extension.
 
Old 11-11-2013, 02:02 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
I thought you said the extension was .bz2.

Files that end with the .patch extension are text files. No decompression is necessary. You feed them to the patch application while you're in the base source directory, typically using the "-p1" parameter:
Code:
cd /directory/with/source/code
patch -p1 < /directory/with/patch/application-patch-file.patch
 
  


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
Error while patching RTLinux 2.6.9 kernel using kernel linux-2.6.9 krishna_karne Linux - Software 1 11-16-2007 10:36 PM
patching Debian Stock Kernel with prepatch from kernel.org kushalkoolwal Debian 10 08-25-2007 01:05 PM
powerpc: kernel patching... but which kernel source? parent's_basement Ubuntu 2 01-15-2007 01:46 PM
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 0 08-10-2006 03:33 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM

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

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