patching adventure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,
  i've been trying to patch the kernel to try and get it in top
shape... but i discovered a few difficulties...  my post talks about
unionfs, but i'm really using it as an example.

Every file referenced in this post are the ones found on the
kernel.org site below:
  http://kernel.org/pub/linux/kernel/v2.6/
And unionfs patches are found on this page:
  http://www.filesystems.org/project-unionfs.html

First, i tried with the 2.6.29 series and at the time of trying (and
of writing this) the subminor version was up to 6 (2.6.29.6).
Second, i want to add unionfs support to the vanilla sources, for
kernel 2.6.29.  The available patch for unionfs is 2.5.2 for kernel
2.6.29.4.

Ok, now here's what i thought i had to do:
on top of: linux-2.6.29.tar.bz2
 1) patch with: patch-2.6.29.1.bz2
 2) patch with: patch-2.6.29.2.bz2
 3) patch with: patch-2.6.29.3.bz2
 4) patch with: patch-2.6.29.4.bz2
 5) patch with: unionfs-2.5.2_for_2.6.29.4.diff.gz
 6) patch with: patch-2.6.29.5.bz2
 7) patch with: patch-2.6.29.6.bz2

It made sense to me that they were all differential patches, but it
appears they are cummulative since 2.6.29 (ie to get 2.6.29.6, you
just use the 2.6.29.6 patch straight)... so during my trial, patch
said some stuff is already patched, and the more i go down this list
of patch the longer the 'already patched' messages.

I guess the correct way would have been to 1) just patch with 2.6.29.4
straight, then 2) unionfs then 3) what?
 a) Make patch of the patch-2.6.29.6.bz2 from patch-2.6.29.4.bz2, and
patch with this?  (sounds hacky but fast)
 b) Or should i copy/snapshot the kernel sources when it is 2.6.29.4,
then apply the other kernel patches up to 2.6.29.6, finally make my
own patch from 26.29.4 to 2.6.29.6, then using the 2.6.29.4 patched
source snapshot, patch with unionfs and then my 29.4_to_29.6 patch?
(this one sounds safer but more trouble)
 c) At last, could git be of any help on this?  I'm looking to work
only with stable code...

I'm asking because i feel there must be a "better practice" for this
kind of manipulation... and well, it's a good thing i was just playing
with unionfs and not a few more experimental drivers all at the same
time!

Thanks for reading/helping out!
  Simon

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux