#1045266 sgf2dg: Fails to build source after successful build

Package:
src:sgf2dg
Source:
src:sgf2dg
Submitter:
Lucas Nussbaum
Date:
2026-03-02 13:21:01 UTC
Severity:
normal
Tags:
#1045266#5
Date:
2023-08-13 19:21:27 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/sgf2dg_4.252-1_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.

#1045266#12
Date:
2026-03-01 22:09:11 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sgf2dg, 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 1045266@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vincent Danjean <vdanjean@debian.org> (supplier of updated sgf2dg 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: Sun, 01 Mar 2026 22:41:34 +0100
Source: sgf2dg
Architecture: source
Version: 4.252-2
Distribution: unstable
Urgency: medium
Maintainer: Vincent Danjean <vdanjean@debian.org>
Changed-By: Vincent Danjean <vdanjean@debian.org>
Closes: 1045266 1082214
Changes:
 sgf2dg (4.252-2) unstable; urgency=medium
 .
   [ Andreas Tille ]
   * Maintain package in Debian team on Salsa
   * Fix Homepage
     Closes: #1082214
   * d/watch: version=5
   * Remove debian/README.source since redundant
   * d/copyright:
      - DEP5
      - Review
   * debhelper-compat (= 13)
   * cme fix dpkg-control
   * Fix clean target
     Closes: #1045266
   * Fix some syntax issues to make autopkgtest pass
 .
   [ Vincent Danjean ]
   * Merge previous git history with salsa imported one
   * Add gbp config
   * Add dependency for autopkgtest
   * Doc in pdf instead of dvi
Checksums-Sha1:
 ae799bcb4f790d7f40f95e29ffd6521f351ba63d 1906 sgf2dg_4.252-2.dsc
 e1c66a192c1276a9f1657b7ebfaee5c9ae49001d 7136 sgf2dg_4.252-2.debian.tar.xz
 11b2385fa36b4864028a6b915ea386ba9bf89a59 9758 sgf2dg_4.252-2_source.buildinfo
Checksums-Sha256:
 32716cc9137478ad1fb835fb3c7baa27666e93cbeb270eb01429de2fb5e97ad1 1906 sgf2dg_4.252-2.dsc
 66fcfedcf6da27e273acf06bc29c976aa575724ffe13c6a9da980c899c389d5c 7136 sgf2dg_4.252-2.debian.tar.xz
 190def01607ca8d185ab3472741da6c481abae66819cdf88a80a7f0a79883623 9758 sgf2dg_4.252-2_source.buildinfo
Files:
 597fd1a54bd0f5df7162708c0d4cb034 1906 tex optional sgf2dg_4.252-2.dsc
 f03739a9a36093324721198791357c2f 7136 tex optional sgf2dg_4.252-2.debian.tar.xz
 b1fcdcbe0a67155d1836eac4fda85044 9758 tex optional sgf2dg_4.252-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEE+JeSXDEY4vnrLgRlkfeY37Ht1EFAmmks4sACgkQlkfeY37H
t1GBEg//VFtINjl07iME3ULXMANgXUxsjzGnm//Oxqzq2p2TPxJVXKgOrp0aCRWd
m93PbTVB5ARcxGGYLtNL66svoqZV3wIcTQZ9K5ghidXi7dhwQ47RDcgt4vzJqFfq
+YfB1uj9dxBNPzwQRtl69rBdjGNvyx5T15kX734ZMmFlpunO7Nk/oAc3EFArMHpz
8UXANWN/MEH5AST6HlGNQ3nKNZ1661alTNG/IklKzCl4gj4Gxjn7DSi6RJqTweBb
cKoloCvNRk0poF2DQWaG5GHb1/aOfMNvbbdtLvxHF9nuUGZuAHJmkOgNn0sjX8vD
WzAzz4rZve/YzDwzoY4ac3FUXcBJd9aLbKIOnunlHLsv/QuWuNekBMWmm/VoqlKM
bcFV3xaqqToVJYuurdw2CharLQHwXiSlHwkWJWBlEhq8bRLF+hxj1LPhiwkxmPX9
RwUxFnprez/6AJyaMQnkvPog2KuHXxvClgtKwUd7Ybyv0IPz9cGuhjVYSL3GM3IK
Qp70BeqLjGYIi8brAWcSiBAmOxK3BZpYTs2UaAExzl/RQ3nlvFRF2Zcp+poX4vBy
Kr2MGWVWvOObhrhMreCPPP+qLQOoxGMArFxxPeXVPdKfCCAbftBuyiKQyMJ2G0/z
mI7OzUXcg9gyzw+UuPrMsp35Mt/IvouNfoU8y8/nxy4R/ZiOYYY=
=FJCb
-----END PGP SIGNATURE-----

#1045266#17
Date:
2026-03-02 11:27:25 UTC
From:
To:
tags 1045266 patch
severity 1045266 normal
reopen 1045266
thanks

Hi. When trying to build source after binary build, this is what
happens now:

dpkg-source: error: cannot represent change to gobl.tfm: binary file contents changed
dpkg-source: error: add gobl.tfm in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to goea.tfm: binary file contents changed
dpkg-source: error: add goea.tfm in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to goeb.tfm: binary file contents changed
dpkg-source: error: add goeb.tfm in debian/source/include-binaries if you want to store the modified binary in the debian tarball
[...]


Note that dpkg-source does not report everything which is wrong:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126665

so after an attempt to fix the issue it is usually a good idea to
retest again to be sure.

Anyway, the attached patch works for me, I moved all the cleaning
stuff to debian/clean, where it's easier to update, and also dropped
things that do not need to be cleaned anymore.

Thanks.

#1045266#30
Date:
2026-03-02 11:59:13 UTC
From:
To:
   Hi,

   Thanks for the report.

   Do you have an idea why the commands in debian/rules do not work ?
I put them explicitely for these files. With them, I pass the rebuild test on salsa.

override_dh_auto_clean::
         dh_auto_clean
         $(RM) go*.*pk go*.pfm
         $(RM) manual.log manual.pdf
         $(RM) sgfsplit

If I understand correctly, debian/clean is used by dh_auto_clean, so I do not understand what your proposal is changing (ie move files to remove from debian/rules command in override_dh_auto_clean target to a list in debian/clean)

   Regards,
     Vincent

Le 02/03/2026 à 12:27, Santiago Vila a écrit :

#1045266#35
Date:
2026-03-02 12:09:00 UTC
From:
To:
Le 02/03/2026 à 12:59, Vincent Danjean a écrit :

Found, I had a typo (go*.pfm instead of go*.tfm)

   Regards,
     Vincent

#1045266#40
Date:
2026-03-02 13:18:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sgf2dg, 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 1045266@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vincent Danjean <vdanjean@debian.org> (supplier of updated sgf2dg 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: Mon, 02 Mar 2026 14:01:14 +0100
Source: sgf2dg
Architecture: source
Version: 4.252-3
Distribution: unstable
Urgency: medium
Maintainer: Vincent Danjean <vdanjean@debian.org>
Changed-By: Vincent Danjean <vdanjean@debian.org>
Closes: 1045266
Changes:
 sgf2dg (4.252-3) unstable; urgency=medium
 .
   [ Santiago Vila ]
   * Fix clean target. Closes: #1045266.
 .
   [ Vincent Danjean ]
   * No need of Rules-Requires-Root field with default value
   * Point to specific GPL version in copyright file
   * Add lintian override for false positives
Checksums-Sha1:
 ea66a9560b65c91738d6fc3f4b274e916cd87aa7 1906 sgf2dg_4.252-3.dsc
 fefbab743652de5dca3655e3fe2d1e6e0a1d046c 7304 sgf2dg_4.252-3.debian.tar.xz
 2b372fdd4b94ddfbbb4cff9dc38af7e8b2407529 9758 sgf2dg_4.252-3_source.buildinfo
Checksums-Sha256:
 f4c7e0e380e6bf3f56de00f46732823a60799ac34fa23a431b2324ce46425d41 1906 sgf2dg_4.252-3.dsc
 58cb6d991c4e792f27964888bf4cfde5a88de7b6e128b0af45087a45d7ec3dd5 7304 sgf2dg_4.252-3.debian.tar.xz
 2487e4d9d7e92bd3c62491c60d6deb16eee2d6198927f3b53016e79af5ef47f7 9758 sgf2dg_4.252-3_source.buildinfo
Files:
 5bf839a6f8cd4559b5c66d66b1ab169b 1906 tex optional sgf2dg_4.252-3.dsc
 8e3efff72314bb45faaa7f73e174baf7 7304 tex optional sgf2dg_4.252-3.debian.tar.xz
 bfef98756860e5a42670ad70ea452c28 9758 tex optional sgf2dg_4.252-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEE+JeSXDEY4vnrLgRlkfeY37Ht1EFAmmlii8ACgkQlkfeY37H
t1HKRA/+NNsX+oCcJNi4watfJvmfrnJjuyaacdvkwNZv07l4UvOfHq0NpY2clcAJ
G8tFq9LYzSUw1hvlm1D+d02vjFCDlWucX3UB9UVu4RhlhsMLeY1nPwUQ+n4Db2xc
r3/OIbkZBPr0UAw70O9nfD9KTG8ngAArioRvAuOW3Crd/eCjVVBycYPOKy8sf4IF
XSmjTcKhZPsI0eFBORY5OW/0H58EGfOGzywX5wtccKY1SceXwSiDDtRGciUBvCnx
vMwSjoVQlCD5ZT3Vz/YT3OBry+MqQhBo40Qvx+ProNc5V1rULvP6iUUucTOaUMnZ
p00kfpVaeC9FeteFern87i0oOH4rsLNpRGAnQXsOkgHdtP5QpovaD607Pff31uzO
N0YsVhbpAmG952JjfzFzasHLxSmFzflG5nxI6NEU7MOz8gWATXCi0kSz2Bo1EUOn
b5z+Y5n32L4+EQ/GzXFxQQsq63L6ffEzthgAx/jBrsM87wNcYhNS815udS1CvzbL
VO5JetjTukeF2RgCbV6DqCUxUhyWy+IYVFQrFbVc19zzBW7Hr4Zamhmrni6pS8hR
T8GbQO5ug5B5G/bLKcTm8WAq4cTsqmd1D6hIKAybNPD1RpkUfA/LfQht2oNCi3lR
LSgV4OMHdAbNvSsBliirNfoOBEfi8XoAiozIDsRxjJXSouHEB4U=
=WzeX
-----END PGP SIGNATURE-----