Hi, This package fails to build a source package after a successful build (dpkg-buildpackage ; dpkg-buildpackage -S). This is probably a clear violation of Debian Policy section 4.9 (clean target), but this is filed as severity:minor for now, because a discussion on debian-devel showed that we might want to revisit the requirement of a working 'clean' target. More information about this class of issues, included common problems and solutions, is available at https://wiki.debian.org/qa.debian.org/FTBFS/SourceAfterBuild Relevant part of the build log: The full build log is available from: http://qa-logs.debian.net/2023/08/13/hplip_3.22.10+dfsg0-2_unstable.log If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.
Control: tags -1 + patch [...] Hi, Seems that some autogenerated or modified stuff is left behind after clean target. I have been playing with this to remove autogenerated stuff. For modified stuff, there are many modified things (in particular for ppd files gunzipping seems not enough), so I tested saving original stuff and restoring it from scratch at override_dh_clean target. I am attaching a patch with the changes I tested in my box. Here, they make package successfully build twice. Hope it helps,
Safer version of patch attached. Should work better with multiple "debian/rules clean" invocations.