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

Re: how to patch a patch



Mihamina (R12y) Rakotomandimby wrote:

> Hi,
> There is a list of softwares already debian packaged.
> The packager has applied a patch on them.
> I need to modify again the patched part.
> So, I need to "patch the patch".
> I guess in real world I wont patch the patch, but what is the easy way
> to do so?
> I know a bit using dpatch (or is there a replacement for it? I dont
> remember) but then,...
> Thank you for your indications.

It seems the package is using dpatch. If so, do the following:
 - get the source
 - copy it (pkg-vers and pkg-vers.orig)
 - cd into pkg-vers
 - dpatch-edit-patch <patchname>
 - do your thing
 - exit dpatch
 - cd .. ; diff -u pkg-vers{.orig,}/debian/patches/<patchname>.dpatch

Another option is to apply the patch in both directories, do your change in
one of them, and then diff.

-- 

  Felipe Sateler



Reply to: