LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 12-20-2007, 07:00 PM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,293

Rep: Reputation: 67
Why many distros have own kernel patch?


Hya,

Why many distros have own kernel patch?

Will these patches be included in official kernel (www.kernel.org ones) in future?

Debian (etch) kernel page reads as follows:
Quote:
Debian's modifications to that source consist of security fixes, bug fixes, and features that have already been (or we believe will be) accepted by the upstream maintainers.
I know that in the past, mandrake system required its own kernel, (generic one did not work ??)

I am simply curious. Also, I do not see much reason to have "own" patch(es).

Happy Penguins!
 
Old 12-20-2007, 08:25 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian Squeeze, Gentoo
Posts: 1,147
Blog Entries: 1

Rep: Reputation: 48
Ultimately, it has to do with the development model that the linux kernel (and many free software projects) use. There are, in a way, two teams that work on the kernel - the kernel devs and the distro (Debian/Red Hat/etc) devs. The reason for this is that the two groups have slightly different goals.

They both want the best possible kernel. However, the kernel devs are constantly developing for the future. They make major design decisions and write most of the code. If they have to break something in the short run in order to fix something for the long run, they will. Patches are accepted to the Linux kernel (compared to distro's kernels) slowly, because they want to be very sure they get it right.

Distro devs, on the other hand, are in the business of packaging the kernel and making it work right _now_. Breakage in the short term is not good for their goals. So each distro generally maintains a set of patches that really are "patches" - temporary fixes to problems. They usually fix the symptoms of a problem, but may not always fix the cause of the problem. If the distro developers managed to fix the cause of the problem, then that patch may likely be accepted into the main kernel. If they just covered up a symptom, then the kernel devs would usually prefer to spend extra time to find the root cause.

Now, of course, it's never that simple and these two groups of developers often overlap. But the basic idea is that distro maintainers have to patch for the short run and kernel developers write for the long run.
 
Old 12-21-2007, 11:38 AM   #3
FraGGod
Member
 
Registered: Jun 2007
Location: Yekaterinburg, RU
Distribution: gentoo
Posts: 59

Rep: Reputation: 15
Quote:
Originally Posted by kaz2100 View Post
Hya,

Why many distros have own kernel patch?

Will these patches be included in official kernel (www.kernel.org ones) in future?

I know that in the past, mandrake system required its own kernel, (generic one did not work ??)

I am simply curious. Also, I do not see much reason to have "own" patch(es).

Happy Penguins!
And source-based distros don't have to be picky about kernel choice - you'll compile software with the core of your choice and your headers at your own risk, so you probably won't get segfaults later just because someone did the job for you with his kernel and dependencies, which differs from yours.
 
Old 12-25-2007, 09:43 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian-woody->(testing) ->lenny->squeeze32/64-> wheezy(32/64)
Posts: 1,293

Original Poster
Rep: Reputation: 67
Hya,

Thanks for reply.

Happy Penguins!
 
Old 12-29-2007, 12:19 PM   #5
jtshaw
Moderator
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 63
Ya... to add a bit to what Patrick said...

Often times you'll find the custom patches in distributions are actually in the development kernel builds, and eventually will be in the a release kernel down the road. The kernel devs don't often, if ever, go backwards. The kernel devs may fix a bug in 2.6.30 that has been around since 2.6.11. The distribution may be running 2.6.18 and wants the bug fix but doesn't want to risk going to 2.6.30 yet. They will often backport the patch to the version they are using and release it for there distribution. RedHat has been known to go particularly far with there back porting of code, implementing entire new features from later kernels into earlier kernels to fit there needs.
 
  


Reply

Tags
kernel, linux, patch


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo patch this patch on 2.6 kernel kushalkoolwal Linux - Kernel 3 08-24-2007 12:01 PM
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM


All times are GMT -5. The time now is 12:51 PM.

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