Control: tags -1 wontfix
On Wed, 08 Nov 2017 15:14:15 +0100 Ximin Luo <[email protected]> wrote:
> Package: src:debhelper
> Version: 10.10.5
> Severity: normal
>
> Dear Maintainer,
>
> override rules are not run in parallel:
>
> $ cat debian/rules
> #!/usr/bin/make -f
> %:
> dh $@ --parallel
> override_dh_auto_configure: s1 s2 s3 s4
> s1 s2 s3 s4:
> sleep 4
> .PHONY: s1 s2 s3 s4
>
> [...]
>
> X
>
> [...]
Hi,
This is correct - unfortunately, some early internal design choices in
debhelper does not support running arbitrary dh_* commands in parallel.
A concrete example would be two dh_* commands that both add autoscript
snippets (e.g. postinst); like so:
dh_installinit &
dh_installsystemd &
This sequence is open to a race condition where the two commands may
step on each other's work when they add autoscript snippets.
As mentioned, this is a fundamental design issue and it affects more
operations than the example listed here. Therefore, solving this would
involve a complete redesign of debhelper and the entire debhelper
ecosystem (including third-party dh tools and add-ons). I do not think
this is a good trade-off at the moment and I am tagging it wontfix as I
will not have time to work on it.
That said, debhelper could do with a co-maintainer and I open to
helping an aspiring co-maintainer fix this bug (caveat emptor: it is a
major undertaking).
Thanks,
~Niels