#1048380 python-cdo: Fails to build source after successful build

#1048380#5
Date:
2023-08-13 19:21:10 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/python-cdo_1.6.0-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.

#1048380#12
Date:
2026-01-24 20:21:20 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-cdo, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1048380@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated python-cdo package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 24 Jan 2026 20:48:37 +0100
Source: python-cdo
Architecture: source
Version: 1.6.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1048380 1125856
Changes:
 python-cdo (1.6.0-5) unstable; urgency=medium
 .
   * Team Upload
   * Add patch to drop pkg_recources (Closes: #1125856)
   * Clean better (Closes: #1048380)
   * Add debian/salsa-ci.yml
   * Rewrite debian/copyright in machine-parsable format
 .
   [ Alastair McKinstry ]
   * Standards-Version: 4.7.3
   * Drop priority: optional
   * Use python3-numpy-dev for tests
   * Use main homepage, not pypi
Checksums-Sha1:
 74f7866725ba3719f83d695c22e5afc52cc2e1bf 2190 python-cdo_1.6.0-5.dsc
 98604b610c4114f4405c6d011e9bb74b33022b3b 6920 python-cdo_1.6.0-5.debian.tar.xz
 1fb34ebb029d0604ec54889a0c4edb791046b5f9 15922 python-cdo_1.6.0-5_source.buildinfo
Checksums-Sha256:
 2a9b4ffc26806d49b60b21c57c885de4250c9cefa60511a3440c51e6681b3ddc 2190 python-cdo_1.6.0-5.dsc
 ec725d126b65d563d23fce6b46adc9b6abac73eebcbc0eac449b208f290b4ebf 6920 python-cdo_1.6.0-5.debian.tar.xz
 660c765ed374e8bb8e67343faab7fb23ac5359894cfd4be7984bf241d74355cd 15922 python-cdo_1.6.0-5_source.buildinfo
Files:
 d03e7980f3c43761d70c2b1ac14f0540 2190 utils optional python-cdo_1.6.0-5.dsc
 3c3926c076a31c74cb8680ec10d1b230 6920 utils optional python-cdo_1.6.0-5.debian.tar.xz
 10cf5bca45992063ed759c2f6e80ae94 15922 utils optional python-cdo_1.6.0-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAml1JH0RHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBo0/BAAqPJtlr2fJtOS1cf+Tg+3JXK83ZCQvJG3
iyyh1dDwTLm5oEzs9eXZMMDQRhXX50WsPTC+viNHCy/iAOBx98WOFTOo58a9kZG9
HAjIMST2Z/IGnorNn4Y3wx2t0ydFCpm8A9FMZEQE1loVOoVnjjexdgMuLa5QivhP
Q910Eda8EuyOVgqDsfj2yDq0eAb31AUTpqinvG0el4qvQOMjMsuHDb6l1CHKgQKj
Du9yHlkjvitAaxhXISHg4RJS0iQ1V9p1UWnyewWIIQIlhCSl4+vEXYa+eyDrS0lz
0pErCWFezFGYSJX1J8FmvlHTUhKerzPVKM5dK4iyyJUJ9Ki0ZR2woHIune6zbjWl
yk65hYfQgHsvjkXbXaOtwBrRsw0Q9P3ySnhSwcnfRlTcasIBoBY4cgsvI5025MYj
IIFZRis4Mdoz88YzhFgCA4Yy2WrgnQ4fyZT6xCJepdU/3j9WArmY/ZnsR7Ub+25N
BwoZzda2ykCzq7UXclrLayw0ovSqDBInZZ/jwoaVcylyUVF42C/T5jiBsCUwq59j
jXIzbmoankyd7On14rSwQ0RdKBUjYLywyEnSpcu1vSgw4wsBlykGRrEQ2TyS3NNo
jCNHqMQT6TyhdeAyIGwSS8NGTuEJTpr3BStmjRtaEWRrvhOWTW0w/+y+nAdGpnSl
PFYIuwTNRqU=
=KyU3
-----END PGP SIGNATURE-----

#1048380#17
Date:
2026-01-25 13:28:32 UTC
From:
To:
reopen 1048380
thanks

Hi. Currently, this is what happens when building source after a
successful build:

dpkg-source: error: cannot represent change to blaP.bla: binary file contents changed
dpkg-source: error: add blaP.bla in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to blaT.bla: binary file contents changed
dpkg-source: error: add blaT.bla in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source


I'm thinking about how all this could be automated. It would be
possible to make a script which takes the output from dpkg-buildpackage
and creates a patch against debian/clean automatically, verifies that
the .deb are still the same, and that it is possible to build source
after binary again.

Would you be willing to do the upload part? (At your own pace).

Thanks.