Package: dpkg
Version: 1.21.9+b1
Severity: wishlist

Hello,

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.

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.

Kind regards,

    Christoph

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.76 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.8-5+b1
ii  libc6        2.36-4
ii  liblzma5     5.2.7-0.1
ii  libselinux1  3.4-1+b2
ii  tar          1.34+dfsg-1
ii  zlib1g       1:1.2.11.dfsg-4.1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt            2.5.4
pn  debsig-verify  <none>

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to