#1044512 gem: Fails to build source after successful build

Package:
src:gem
Source:
src:gem
Submitter:
Lucas Nussbaum
Date:
2026-01-08 21:36:00 UTC
Severity:
normal
Tags:
#1044512#5
Date:
2023-08-13 16:56:56 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/gem_0.94-8_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.

#1044512#8
Date:
2024-06-17 22:36:13 UTC
From:
To:
Hello,

Bug #1044512 in gem reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/multimedia-team/pd/gem/-/commit/3269d53bb2a199851b42e161ee80b656805f8b1b
------------------------------------------------------------------------
Cleanup build

Closes: #1044512
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1044512

#1044512#17
Date:
2025-12-13 22:55:09 UTC
From:
To:
Hello.

I tried to reproduce this and it looked as fixed in trixie to me,
so I tried debbisect to determine the exact build-dependency which
fixed it.

However, debbisect (which internally uses snapshot.debian.org)
tells me that this issue did not even happen on 2023-08-13, the date
at which the bug was filed.

But there was something strange in the "successful" build log
for such date:


make[1]: Leaving directory '/gem-0.94'
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building gem using existing ./gem_0.94.orig.tar.bz2
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building gem in gem_0.94-8.debian.tar.xz
dpkg-source: info: building gem in gem_0.94-8.dsc
 dpkg-genbuildinfo --build=source -O../gem_0.94-8_source.buildinfo
 dpkg-genchanges --build=source -O../gem_0.94-8_source.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: source-only, diff-only upload (original source NOT included)
I: waiting for background processes to finish...
I: PID 12882 exited with exit code 255
I: PID 12891 exited with exit code 255
I: PID 12900 exited with exit code 255
I: PID 12930 exited with exit code 255
I: PID 12940 exited with exit code 255
I: PID 12949 exited with exit code 255
I: PID 12958 exited with exit code 255
I: PID 13900 exited with exit code 0
I: cleaning package lists and apt cache...
I: removing tempdir /tmp/mmdebstrap.H34O4VSvIW...
I: success in 691.0229 seconds


Could it be the case that the build leaves background processes
running which may or may not make a source build after a binary to
fail, in a randomly fashion?

Thanks.

#1044512#22
Date:
2026-01-07 22:26:15 UTC
From:
To:
Hi.

I still can't reproduce this in my rebuilding framework.

However, if I try to build the package directly from the git repository
(i.e. using dpkg-buildpackage, which may or may not work), then
I get this when trying to build the source package after
a successful binary build:

dh clean
   dh_clean
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/gemglfw3window.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/gemsdlwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/gemglxwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/gemglutwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/Gem.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_hit/pix_hit.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_hit/.libs/pix_hit.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_fiducialtrack/pix_fiducialtrack.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_fiducialtrack/.libs/pix_fiducialtrack.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_mano/pix_mano.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_mano/.libs/pix_mano.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_drum/pix_drum.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/extra/pix_drum/.libs/pix_drum.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/src/.libs/Gem.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/src/Output/.libs/gemglutwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/src/Output/.libs/gemglxwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/src/Output/.libs/gemsdlwindow.pd_linux
dpkg-source: error: unwanted binary file: debian/build/flavor-pd32/src/Output/.libs/gemglfw3window.pd_linux
dpkg-source: error: detected 18 unwanted binary files (add them in debian/source/include-binaries to allow their inclusion).
dpkg-buildpackage: error: dpkg-source -b . subprocess failed with exit status 255


So yes, this matches the commit which was made on 2024 to address the
issue, but paradoxically it's not what Lucas reported initially...

I feel that this bug is miscategorized and I don't know how
could we improve that.

IOhannes: Would you be willing to make an upload with the current
state of the package in salsa? (versioned 1:0.94-9, I guess).

Thanks.

#1044512#27
Date:
2026-01-08 16:13:06 UTC
From:
To:
sure.

gmdasr
IOhannes

#1044512#32
Date:
2026-01-08 21:21:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gem, 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 1044512@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> (supplier of updated gem 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: Thu, 08 Jan 2026 21:33:29 +0100
Source: gem
Architecture: source
Version: 1:0.94-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Changed-By: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Closes: 1035851 1044512
Changes:
 gem (1:0.94-9) unstable; urgency=medium
 .
   * Recommend ttf-bitstream-vera (Closes: #1035851)
   * Cleanup build (Closes: #1044512)
     - Move 'clean' logic to d/clean
   * Switch to dh-sequence-puredata (and use the various substvars)
   * Build for both Pd32 and Pd64
   * Prefer Suggesting "pkgconf" over "pkg-config"
     - both for Build-Dependencies and Suggests
   * (Build-)Depend on the generic libgl(u)-dev rather than mesa-headers
   * Backport patch to completely disable plugins
   * Document how to chose the window backend
   * Lower the priority of the legacy SDL window backend
   * Fix lintian-override for embedded glew-mx
   * Modernize d/watch (still at version 4)
   * Drop obsolete Rules-Requires-Root stanza.
   * Apply 'wrap-and-sort -ast'
   * Bump standards version to 4.7.2
   * Update git repository layout to follow DEP-14
Checksums-Sha1:
 e9b431ca53cf96d0f327ea5e9508a9d355d589b4 4019 gem_0.94-9.dsc
 c7e341f2a70167f8fb77080a5083ad24c3fb957d 35684 gem_0.94-9.debian.tar.xz
 9df2b3637844fd43ff7d45982858efc1abb51355 9860548 gem_0.94-9.git.tar.xz
 4feaf313be5e51f6cadb58a07534687ea9a72c8d 17115 gem_0.94-9_source.buildinfo
Checksums-Sha256:
 4d9c5d1ed5287f20a1eb6f7cbae266327f093d3ef1c3fa1444c0879fa3bed6a0 4019 gem_0.94-9.dsc
 75d188ec8932dbca16b6b05ec1dbca6e88a8e5da655922aef36f66e95791d01f 35684 gem_0.94-9.debian.tar.xz
 737b727727fb0c688c3d3af2e98d3f0f3b96c67fca2dde6f9084e38bbf6aebdd 9860548 gem_0.94-9.git.tar.xz
 306841cc57abec4cd8d1a2b0b122ed560e0e9c57ebc0024c44bef4d825319a43 17115 gem_0.94-9_source.buildinfo
Files:
 e4fc63eab74bf95285837ed7549ef8fb 4019 graphics optional gem_0.94-9.dsc
 90a6bc3be87403f9ca2bdc012c0efff1 35684 graphics optional gem_0.94-9.debian.tar.xz
 604bf87e044256b6540ffde0269110b8 9860548 graphics optional gem_0.94-9.git.tar.xz
 fd0a01ad4db55b2ef0d87fdf87d69d2d 17115 graphics optional gem_0.94-9_source.buildinfo
Git-Tag-Info: tag=d07914601f279bcf08a9688c9a132912792f0f65 fp=7405e745574809734800156db65019c47f7a36f8
Git-Tag-Tagger: IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmlgGmkACgkQYG0ITkaD
wHkswg/+OQjPowl+z0AE4IOKqf3VAe4YNuti+uEzJW73dS3seDUCo48kjSJy1DGq
VSsV46+HXkaxyEMJ06l7Q6NAVSn6sw3sh0yRuZziTgngL+5Vfu7V1VT9mLTJhFe4
aJu5CMUe4lzERsC4sbhPffb186+ypHGwFeNRNnfF58H8uJHYzIS8aJYZEhbXFlcs
5fImZXurwGDTuqZg+c4EU2R+z9dN8FuXnpYLuPNHXpCscfB6+zlXvJ4kMWiH0I3y
88sDXXi1D053mff3WBqggfzc6ACOmhTiv4voA3J7aDHCq1R0yCs1QGKJllHy7Rrz
/mMeXTzOTSUAiCb5iMmQ1jP0I3pMoIW9qNXkJkAKbqmhIAuWp2iWV+0CyPsVWx2c
KQJ0lOJ42QgWivvC+JrUYWpkClBN5xbxlPXat7RpdI2gP563ndLVrgMKLhbpWV+6
FmfaMAIeR0awa+KBG2bf94yrevnoLf5Z3nkvmcJUyXTGK8oydH4bMqgEvm5cTqh9
EKHkk8d788SPDy2BDT380XNM3bg3hzRuqPH5L3Ufcu/VmYHNRlltoGxVld+qmAaj
HfsUWL4DLk7xfjmRFpmbXkKIBL08UbdVLXAE82t5+tknbEVRzCVMXGfaP+pYtLGB
JYJSD3GjTEFbsZOfSo2b6PPaAUfaoi3k99yLZnWFYCdeOvMltDk=
=RIyZ
-----END PGP SIGNATURE-----