#1045203 ruby-jbuilder: Fails to build source after successful build

#1045203#5
Date:
2023-08-13 19:21:24 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/ruby-jbuilder_2.10.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.

#1045203#12
Date:
2026-05-24 10:54:47 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ruby-jbuilder, 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 1045203@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sruthi Chandran <srud@debian.org> (supplier of updated ruby-jbuilder 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, 24 May 2026 13:00:28 +0530
Source: ruby-jbuilder
Architecture: source
Version: 2.14.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Sruthi Chandran <srud@debian.org>
Closes: 1045203
Changes:
 ruby-jbuilder (2.14.1-2) unstable; urgency=medium
 .
   * Team upload
   * Use d/clean to remove unnecessary files created during build (Closes:
     #1045203)
   * Bump Standards-Version to 4.7.4 (no changes needed)
   * Update watch file version
Checksums-Sha1:
 b15e2c075652337112f2440cdcef22ac19cef495 1895 ruby-jbuilder_2.14.1-2.dsc
 1503ad8c233b3139e95d639276b28c5c436c91d1 3676 ruby-jbuilder_2.14.1-2.debian.tar.xz
 d81142c60775b1e080c5c43c17ae2e85fc8b72e0 8826 ruby-jbuilder_2.14.1-2_amd64.buildinfo
Checksums-Sha256:
 add8e46a62876f7c2ee61957d82510258410a10598fbce853a1ab73c1daea3b8 1895 ruby-jbuilder_2.14.1-2.dsc
 0fc38ce586820c89272da71129271fdae5204e9dc8d2b3fad6301653cba85f76 3676 ruby-jbuilder_2.14.1-2.debian.tar.xz
 f10f85eb05dc0e0966a7e4da62c4fa8ca494569242220bad720d706e7d19577d 8826 ruby-jbuilder_2.14.1-2_amd64.buildinfo
Files:
 029f2ae677d020a62f444aaa288147e6 1895 ruby optional ruby-jbuilder_2.14.1-2.dsc
 93b12635e86223698317f99a004c77eb 3676 ruby optional ruby-jbuilder_2.14.1-2.debian.tar.xz
 37ff22d51d5c7ae82c9b4b08c96b8c75 8826 ruby optional ruby-jbuilder_2.14.1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEcd3Fxr6GmkZB13n+x+ob4VdN7V0FAmoS1R4ACgkQx+ob4VdN
7V1w/wwAmto61Of4FRcG369ragI+B4GoX/NyUBlIFr8AZudoyVEeSHMYjvDCYcUg
vMNJFjpkP9XL/ptnPbjohtyd+AENBSFnpzCQw9LqmAnu4X6904F5dghRYl7qo8oE
h7GUsb6n6324SraXHa8FB8U2wVdjzYWXNRF9kV3FijwmBZfqHt5aa2hmwugTvqWG
QV9Mdu7IABMO8e4Fhbeu9qmfoTPpE5HQtVuyxY3AFxe3qiwhwH0cWIMybRmftnnZ
PfKJ4e54qB4VxR+UWJfv18MBHvDYRHDgKmUBbgOPA0YLpXuF9V8J4au9U3MADivO
NkxkpDKbb6H/HJzGseQ0XajAcu0PFHeZX/VHW9a0UOqER+xYEjBTaQ++ycI9E4VS
cBYE+rPsWEwxXZoLSZ+DKPZcy1O/wR89Zm24VXwHrZZaWyinXfyzso/BBZW8lmQm
t9t/237CYPWyeBpKZr+E2CS/b+9ZtQO6sFDz7TzpVxFzDf5tAqsvhGfp6vurPmVu
S3dsHTby
=4sji
-----END PGP SIGNATURE-----

#1045203#17
Date:
2026-05-30 08:41:14 UTC
From:
To:
reopen 1045203
tags 1045203 patch
severity 1045203 normal
thanks

Hello. This was recently closed with this changelog entry:

  * Use d/clean to remove unnecessary files created during build (Closes:
    #1045203)

but I still get this error when trying to build source after successful build:


Package: ruby-jbuilder
Version: 2.14.1-2
[...]
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building ruby-jbuilder using existing ../ruby-jbuilder_2.14.1.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: local changes detected, the modified files are:
 test/tmp/app/controllers/admin/posts_controller.rb
 test/tmp/app/helpers/admin/posts_helper.rb
 test/tmp/app/views/admin/posts/_form.html.erb
 test/tmp/app/views/admin/posts/_post.html.erb
 test/tmp/app/views/admin/posts/_post.json.jbuilder
 test/tmp/app/views/admin/posts/edit.html.erb
 test/tmp/app/views/admin/posts/index.html.erb
 test/tmp/app/views/admin/posts/index.json.jbuilder
 test/tmp/app/views/admin/posts/new.html.erb
 test/tmp/app/views/admin/posts/show.html.erb
 test/tmp/app/views/admin/posts/show.json.jbuilder
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/ruby-jbuilder_2.14.1-2.diff.S4Boq4

For some reason (race condition?), the error I get is different each
time, so you may still get a different result as well.

In either case, I propose that you simply remove the test/tmp
directory entirely, as in the attached patch.

Thanks.