Re: patching adventure

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

 



Hi...

On 7/27/09, Simon <turner25@xxxxxxxxx> wrote:
> 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?

After re-reading kernel's README and
Documentation/applying-patches.txt, I think you better do this
sequence:
1. apply patch 2.6.29.6 on top of 2.6.29
2. apply unionfs patch... expect to see some rejects... then try to
fix them. Well, if you're lucky, it's possible that unionfs patch
applies smoothly on 2.6.29.6

Others might have better idea...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
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