Hi! On Fri, 2026-01-30 at 11:55:01 +0100, Santiago Vila wrote: > Package: dpkg-dev > Version: 1.23.5 > Severity: wishlist
> When dpkg-source reports the extra files that it found, sometimes > it does not report everything which is wrong. > > This often lead maintainers (this happened to me, so including myself!) > to implement an incomplete fix. Then the bug has to be reported again > or reopened, which seems like a suboptimal way to handle all this. > > I'm going to use the same package as before as an example: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1045695 > > The initial report suggests that the po/*.gmo files need to be removed, > but after doing so, file "po/stamp-po" still needs to be removed > (but it was not reported the first time). > > This can be reproduced easily in trixie, by building the source > after the binary build, then adding po/*.gmo to debian/clean > as a quick fix, then trying to build the source again. > > Note: I have no idea of easy/difficult this would be to implement. Ok, I though this would be infeasible, but after checking a bit, it looked pretty trivial. The new output will be something like this: ,--- $ dpkg-buildpackage --no-sign […] dpkg-source -b . dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building yp-tools using existing ./yp-tools_4.2.3.orig.tar.gz dpkg-source: info: using patch list from debian/patches/series dpkg-source: warning: ignoring deletion of file mkinstalldirs, use --include-removal to override dpkg-source: warning: ignoring deletion of file INSTALL, use --include-removal to override […] dpkg-source: warning: ignoring deletion of file m4/uintmax_t.m4, use --include-removal to override dpkg-source: error: cannot represent change to po/de.gmo: binary file contents changed dpkg-source: error: add po/de.gmo in debian/source/include-binaries if you want to store the modified binary in the debian tarball dpkg-source: error: cannot represent change to po/sv.gmo: binary file contents changed dpkg-source: error: add po/sv.gmo in debian/source/include-binaries if you want to store the modified binary in the debian tarball dpkg-source: info: local changes detected, the modified files are: po/stamp-po dpkg-source: error: unrepresentable changes to source dpkg-buildpackage: error: dpkg-source -b . subprocess failed with exit status 1 `--- But I'm unsure, whether the info after the errors and then the final error might be confusing, and might be worth some rewording somewhere. Thanks, Guillem

