Package: debhelper
Version: 7.2.9
Severity: wishlist
Hi,
what I really don't like in debhelper (and this is the reason why I
still prefer cdbs for most of my packages) is, that debhelper does
still need manual modification in order to involve patch management
systems like dpatch or quilt.
For example, if I want to stay with the tiny debian/rules file and add
"include /usr/share/quilt/quilt.make", i still have to manually tell
debian/rules to patch the sources before building them and unpatch
them before cleaning them (in case you have to run the clean rule on
the patched source and unpatch afterwards, it gets even worse). So a
typical tiny debian/rules file with patched sources will look like
this (and this isn't even the most error-proof version):
#!/usr/bin/make -f
include /usr/share/quilt/quilt.make
%:
dh $@
build: $(QUILT_STAMPFN)
clean: unpatch
Why not get rid of the last two lines?
I mean, /usr/bin/dh checks if there are rules called override_dh_* in
debian/rules and act accordingly. In the same way it could check if
there is a rule called patch in debian/rules (which is the case when
quilt.make is included) and then make the build rule depend on it. The
same could be done for the clean rule depending on the unpatch rule
(although I think it is considered safer to first run the clean rule
and unpatch afterwards).
So on my wishlist a minimal debian/rules would like like this:
#!/usr/bin/make -f
include /usr/share/quilt/quilt.make
%:
dh $@
with patching and unpatching managed automatically by debhelper based
on the autodetection of including quilt.make.
Cheers,
Fabian
--
Dipl.-Phys. Fabian Greffrath
Ruhr-Universität Bochum
Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT)
Universitätsstr. 150, IB 3/134
D-44780 Bochum
Telefon: +49 (0)234 / 32-26334
Fax: +49 (0)234 / 32-14227
E-Mail: greffr...@leat.ruhr-uni-bochum.de
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org