LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 03-03-2006, 01:07 PM   #1
Beads
Member
 
Registered: Nov 2004
Location: Alabama
Distribution: Mint
Posts: 103

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, 01:12 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
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, 01:18 PM   #3
Beads
Member
 
Registered: Nov 2004
Location: Alabama
Distribution: Mint
Posts: 103

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, 01:28 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

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


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


All times are GMT -5. The time now is 04:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration