Hi Niels for some reason I didn't receive your initial reply to my bug report.

On Sun Dec 29, 2024 at 2:56 PM CET, Niels Thykier wrote:
I had a look at it and I am leaning towards https://salsa.debian.org/debian/debhelper/-/merge_requests/131 as a possible solution.

The idea here being that you would be able to use:

     override_dh_auto_install:
        $(DH_OVERRIDDEN_COMMAND) -- <extra params>

with $(DH_OVERRIDDEN_COMMAND) preserving the --destdir parameter from the add-on. With the plain `dh_auto_install` (instead of `$(DH_OVERRIDDEN_COMMAND)`) for the case where you need to override the implicit options too.

I like this! I always thought that repeating the overridden dh command was a bit redundant. Still, "DH_OVERRIDDEN_COMMAND" looks a bit long. It's not a big deal at all, but we can find something prettier.

Wouldn't it be possible to do something like:

   override_dh_auto_install:
       dh_overridden -- <extra params>

where dh_overridden is a binary which does the correct thing?

I guess that a make-based solution like the one you proposed is simpler, but since this is probably something that people will start to use extensively in rules files I'd rather have something which looks nice :)

In any case, thanks for working on a fix!

Attachment: signature.asc
Description: PGP signature

Reply via email to