On Wed, 30 Sep 2020 19:25:12 +0200 Niels Thykier <[email protected]> wrote:
> Hi,
>
> You have hit an intentional design choice from debhelper - one that I am
> admittedly have been considering to change for exactly this the problem
> you are running into.
>
> What happens is that debhelper special-cases "single-binary packages"
> (namely dh_auto_install defaults to "--destdir=debian/<package>" rather
> than --destdir=debian/tmp" in this case). In compat 13, the dh_missing
> warning becomes an error preventing you from accidentally uploading the
> two empty packages - but it is still an unpleasant experience.
>
> If you need a second /empty/ binary, then you can override
> dh_auto_install and set dh_auto_install --destdir=debian/<package> for now.
>
> I am leaving this open until I figure out what to do about this corner case.
>
> Thanks,
> ~Niels
>
>

Thanks for your fast reply.
Your suggested workaround worked perfectly.

For those coming to this page, the new rules file is attached.

#!/usr/bin/make -f
export DH_VERBOSE = 1

%:
        dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_install:
        # Set destination directory when co-building a transition package
        dh_auto_install --destdir=debian/debhello

Reply via email to