Bug#1142493: dpkg-source: --commit should exclude changes made by dh_autoreconf
Martin-Éric Racine <[email protected]> Fri, 24 Jul 2026 08:42:42 +0300
| Newsgroups | gmane.linux.debian.devel.bugs.general,gmane.linux.debian.devel.dpkg.general |
|---|---|
| Message-ID | <CAPZXPQeSdh093Y8kNK1qkQVZFaVtSJw4yD0WCJnua55sSFs4kQ@mail.gmail.com> |
ti 21.7.2026 klo 13.35 Guillem Jover ([email protected]) kirjoitti: > > Control: reassign -1 dh-autoreconf > On Mon, 2026-07-20 at 19:14:09 +0300, Martin-=C3=89ric Racine wrote: > > Package: dpkg-dev > > Version: 1.23.7 > > Severity: normal > > X-Debbugs-Cc: [email protected] > > > 'dpkg-source --commit' should always exclude changes made by > > dh_autoreconf unless explicitly told to include them. > > The files affected by dh_autoreconf operation are dynamic, and not even > dh_autoreconf knows about them beforehand. It currently tracks the state > of the files before and after execution to be able to check what changed. > > Adding support for this in dpkg-source would imply having to use > internal files and implementation details from dh_autoreconf, which > seems wrong. A simpler approach would be to tell dh_autoreconf to restore dynamic files before dpkg-source commits other changes to a patch. Martin-=C3=89ric