#1045158 mono: Fails to build source after successful build

Package:
src:mono
Source:
src:mono
Submitter:
Lucas Nussbaum
Date:
2026-02-21 19:39:04 UTC
Severity:
normal
Tags:
#1045158#5
Date:
2023-08-13 19:20:59 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/mono_6.8.0.105+dfsg-3.3_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.

#1045158#12
Date:
2025-08-17 18:08:09 UTC
From:
To:
I see you marked a couple bugs reported against src:mono as affecting
forky. Did you actually reproduce them yourself, or did you assume they
would apply to forky as they have not been marked as fixed yet?

If you actually reproduced these bugs, could you give a try to either
the package in sid or, even better, the one in experimental and see if
these packages fix the reported bugs for you?

#1045158#17
Date:
2025-08-17 18:49:22 UTC
From:
To:
This is a mass bug-update of all bugs tagged sid. Post release, they are
updated to include the new testing suite. None of the bugs have been
reproduced.

If they are incorrectly marked as forky, please also check if they
actually should be tagged with sid.

Cheers

#1045158#26
Date:
2025-08-18 20:52:10 UTC
From:
To:
close 1045158 6.12.0.199+ds-3
thanks

A dpkg-buildpackage should now leave the source tree clean,
allowing to run two builds in a row.

#1045158#41
Date:
2026-02-21 19:38:13 UTC
From:
To:
tags 1045158 patch
severity 1045158 normal
thanks

Hi. The attached patch works for me for the current version.

I've tested that it allows building source after binary build, and
also that the produced .deb binaries are exactly the same before and
after applying the patch.

Thanks.