Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 18th December 2005, 22:23
BjoKa BjoKa is offline
Junior Member
Join Date: Dec 2005
Location: Bayreuth / Germany
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HowTo convert a diff to a debian kernel-patch?


As the topic says, I am looking for an "HowTo" on how to convert an existing patch file to a kernel patch compatible which make-kpkg "--added-patches" option.

I have successfully installed the debian 2.6.8 kernel sources, make-kpkg, the debian "atop" kernel patches and build an kernel-image package using make-kpkg. That local kernel package installs and boots fine.

I've used the prepatched kernel source tree (as left behind from make-kpkg) to put in some local changes (using traditional "make bzImage" and then copy arch/i386/boot/bzImage to /boot because make-kpkg refused to build a new kernel without "clean" in between).

Now I have a "diff -u" file which applies cleanly to a fully debian-patched 2.6.8 kernel, but I failed in makeing make-kpkg recognize this file.

What I tried is to put the patch file in /usr/src/kernel-patches/diffs/mypatch/01patch-2.6.8_mypatch.gz (just like the "atop" files in there) and did a "make-kpkg --added-patches=mypatch". Did not work.

Reading "/usr/share/kernel-package/rules" it seems there should be files in "/usr/sr/kernel-patches/all/{apply,unpatch}" however it is unclear to me what should go in this files (the atop-files looks like a complicated shell-script doing various version-checks etc.).

I know about the "/usr/share/doc/dh-kpatches/" ReadMe, but it is unclear how this is supposed to work, as there seems to be no dh-kpatches script or binary which creates the mentioned "kpatch" files or reads such a hand-edited file to somehow create the needed files under "/usr/src/kernel-patches".

At this point I am lost: How to convert an existing "diff -u" file to something that can be used with "make-kpkg --added-patches"? Any help or pointers to more/better documentation than "dh-kpatches.html" wellcome.

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Kernel 2.6 under Debian Sarge falko Kernel Questions 117 28th September 2009 14:03
Compile Kernel 2.6 under Debian Sarge falko HOWTO-Related Questions 5 17th October 2008 14:58
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42
Debian Sarge RAID5 killfrog Installation/Configuration 2 23rd October 2005 22:43
Install Debian Sarge with Kernel 2.6 root Installation/Configuration 4 10th May 2005 11:51

All times are GMT +2. The time now is 23:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.