#1046748 hplip: Fails to build source after successful build

Package:
src:hplip
Source:
src:hplip
Submitter:
Lucas Nussbaum
Date:
2025-08-17 18:03:04 UTC
Severity:
normal
Tags:
#1046748#5
Date:
2023-08-13 19:20:47 UTC
From:
To:
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.

#1046748#10
Date:
2025-04-14 09:25:11 UTC
From:
To:
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,

#1046748#17
Date:
2025-04-15 00:09:47 UTC
From:
To:
Safer version of patch attached. Should work better with multiple
"debian/rules clean" invocations.