how to patch a patch

2007-09-10 Thread Mihamina (R12y) Rakotomandimby

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.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to patch a patch

2007-09-10 Thread Matthew Palmer
On Tue, Sep 11, 2007 at 12:25:52AM +0200, Mihamina (R12y) Rakotomandimby wrote:
 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.

Can you tell us which package it is, and exactly what you want to do? 

- Matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to patch a patch

2007-09-10 Thread Nico Golde
Hi,
* Mihamina (R12y) Rakotomandimby [EMAIL PROTECTED] [2007-09-11 02:28]:
 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.

Is the original patch also using dpatch? If yes you can 
simply use dpatch-edit-patch file to get into a dpatch 
environment, edit the files and dpatch will update the patch 
file for you.
Cheers
Nico
-- 
Nico Golde - http://ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
http://people.debian.org/~nion/sponsoring-checklist.html


pgpTfm8cMug0d.pgp
Description: PGP signature


Re: how to patch a patch

2007-09-10 Thread Felipe Sateler
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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to patch a patch

2007-09-10 Thread Ben Finney
Mihamina (R12y) Rakotomandimby [EMAIL PROTECTED] writes:

 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?

Allow the patch to proceed, and then simply apply another subsequent
patch that achieves the result you want.

-- 
 \  I bought a self learning record to learn Spanish. I turned it |
  `\on and went to sleep; the record got stuck. The next day I |
_o__)could only stutter in Spanish.  -- Steven Wright |
Ben Finney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]