Michael Biebl wrote:
> the new dh mode is quite nice.
> One thing I'm really missing though is cdbs' simplicity when it comes to
> adding patch support. In cdbs I simply have to add
> 
> include /usr/share/quilt/quilt.make ,
> include /usr/share/cdbs/1/rules/simple-patchsys.mk or
> include /usr/share/cdbs/1/rules/patchsys-quilt.mk
> 
> at the top of the makefile, and everything is done automatically for me.
> 
> Both quilt and dpatch ship makefile snippets:
> /usr/share/quilt/quilt.make
> /usr/share/dpatch/dpatch.make
> 
> with support for the patch/unpatch targets. Maybe they could be utilized
> in debhelper and whenever they are included they get automatically
> hooked up in the right places.

One way to handle this would be to:

- Add dh_quilt_patch, dh_quilt_unpatch commands somewhere.
- Add a Debian::Debhelper::Sequence::quilt perl module (see SEQUENCE
  ADDONS in dh(1)), that adds those commands in appropriate spots
  to the dh sequences.
- Then, users could run:
        dh --with quilt $@

I think I'd prefer to not put the stuff in debhelper, because I don't
use patch systems, and I don't want to deal with keeping up with all the
different ones. Also because it seems likely that people who do use
patch systems will be using source formats that natively support them
soonish.

Putting the commands and sequence module in quilt etc would be one way.
I'd be glad to help someone with whatever problems they might have while
implementing this. It's probably an hour's work..

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to