Samuel Thibault:
> [...]
>> The devil in the detail here is that I suspect that you also want to
>> re-run dh_auto_test and that is on the "wrong" side of that "restart
>> point".
> 
> That may happen, yes, although way less often.
> 
> Could there perhaps be a way to specify at which point we want to make
> -nc restart from?
> 
> Samuel
> 

It occurs to me that this can be done via a custom dh addon using
something like:

"""
mkdir -p /some/where/Debian/Debhelper/Sequence/
cat <<'EOF' > /some/where/Debian/Debhelper/Sequence/skip_commands.pm

my @cmds = qw(
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
);
for my $cmd (@cmds) {
  remove_command($cmd);
}

1;
EOF

PERL5LIB=/some/where DH_EXTRA_ADDONS=skip-commands \
   dpkg-buildpackage .. -nc
"""

Except you have to manually list the commands to skip.


It is not entirely simple, but it should work already today but assumes
you inject the perl library and the two ENV variables smoothly.

You can generate the @cmd list by using:

  dh build --no-act

plus a bit of selective copy/paste.

Thanks,
~Niels

Reply via email to