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

Re: advice on a patch set



martin f krafft <madduck@debian.org> writes:

> I am trying to package the swsusp2 kernel patch, which comes in
> hundred little files. My thought was to simply concat these files
> into one large patch for use with kpatches... however, this does not
> work because some files are created by early patches and later
> modified. Since kpatches first tests the patch with --dry-run, it
> will fail when the later patches do not find a file to patch.
>
> What can I do? Is there a tool that can merge multiple patches into
> a single patch in a "recursive" manner (i.e. to produce the smallest
> patch that has the same result)?

Any reason you can't just make a copy of the unpatched source, apply
all the patches, and then diff -urN the original with the patched
version to create a fresh patch?  Test by applying the newly created
patch with the original to make sure that your patch and the original
patch set produce the same result.

-- 
Jay Berkenbilt <ejb@ql.org>
http://www.ql.org/q/



Reply to: