Control: reassign -1 dpkg-dev
User: d...@packages.debian.org
Usertags: dpkg-buildpackage

Hi!

On Wed, 2022-11-09 at 16:29:26 +0100, Christoph Biedl wrote:
> Package: dpkg
> Version: 1.21.9+b1
> Severity: wishlist

> in some (admittedly unusual) scenarios, I'd like to hook
> dpkg-buildpackage way earlier then via the "init" hook. More precisely,
> I'd like to run a hook *before* debian/changelog and debian/control are
> inspected.

I'd be interested to know about those scenarios (or abstract descriptions
of them), to be able to understand the required semantics for this, or
whether there are other alternatives?

> Implementing this (I called the hook "preinit") was rather trivial,
> would you consider including this in dpkg? That would take the burden of
> carrying that patch locally from me. There's one thing worth to mention
> in any documentation: The substitutions are not supported there as the
> accordingly variables are not defined yet at that time.

Yeah, I think this seems fine, but as mentioned above I'd like to
understand what are the proposed semantics, so that the code makes
sense, and potential new code can preserve those semantics.

Thanks,
Guillem

Reply via email to