LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-03-2006, 12:07 PM   #1
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Rep: Reputation: 17
Applying kernel patches


When applying a patch, the patching routine will often detect a previous patch, and asks if you want to assume a reversal with a default of [n]. Here's the question: Is it normal practice to assume 'no' and just proceed?

I just attempted to install the 2.6.15.5 patch (was previously 2.6.15.4), and answering 'yes' or 'no'either way doesn't allow the kernel to compile without failing.

Advice, please.
 
Old 03-03-2006, 12:12 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Perfect title, have a look at this:
/usr/src/linux/Documentation/applying-patches.txt

For you:

Code:
$ cd ~/linux-2.6.15.4                   # change into the kernel source dir
$ patch -p1 -R < ../patch-2.6.15.4      # revert the 2.6.15.4 patch
$ patch -p1 < ../patch-2.6.15.5         # apply the new 2.6.12.5 patch
$ cd ..
$ mv linux-2.6.15.4 linux-2.6.15.5      # rename the kernel source dir
You should never have a to answer such a question for official patches, they are always perfect. It always means you did an error.
In your case, 2.6.15.5 is not incremental from 2.6.15.4, it is to apply on 2.6.15!! Not Logic you would say? Imagine if you want to go from 2.6.15.3 to 2.6.15.5. kernel.org would have to handle a looot of files!
 
Old 03-03-2006, 12:18 PM   #3
Beads
Member
 
Registered: Nov 2004
Location: Washington
Distribution: Mint
Posts: 104

Original Poster
Rep: Reputation: 17
Ohhh!

Ahh! OK, my understanding was that all patches were incremental. Thanks for the clarification! I'll follow your patch instructions, and get it right.

Thanks man.
 
Old 03-03-2006, 12:28 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You're welcome
By the way, if you don't want to think for applying patch, there is a new tool :
ketchup
 
  


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
Applying patches. landfill Linux - Software 7 09-11-2005 05:05 PM
Applying MANY patches to kernel source declassified Linux - General 7 09-03-2005 07:00 AM
applying patches in gnome ?? mlu Linux - Software 0 07-05-2005 05:59 AM
Applying kernel patches questions wrc1944 Linux - General 4 05-19-2003 03:57 PM
Applying Patches to Solaris 8 desbyleo Solaris / OpenSolaris 2 02-06-2003 03:37 PM

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

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