[DRE-maint] Bug#1046434: ruby-mocha: Fails to build source after successful build

Lucas Nussbaum lucas at debian.org
Sun Aug 13 20:21:24 BST 2023


Source: ruby-mocha
Version: 1.16.1-1
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian-qa at lists.debian.org
Usertags: qa-doublebuild

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:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S
> ----------------------------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package ruby-mocha
> dpkg-buildpackage: info: source version 1.16.1-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Lucas Nussbaum <lucas at debian.org>
>  dpkg-source --before-build .
>  debian/rules clean
> dh clean --buildsystem=ruby --with ruby
>    dh_auto_clean -O--buildsystem=ruby
> 	dh_ruby --clean
>    dh_autoreconf_clean -O--buildsystem=ruby
>    debian/rules override_dh_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> rm -rf doc/ .yardoc/
> dh_clean
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building ruby-mocha using existing ./ruby-mocha_1.16.1.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: local changes detected, the modified files are:
>  ruby-mocha-1.16.1/docs/Mocha.html
>  ruby-mocha-1.16.1/docs/Mocha/API.html
>  ruby-mocha-1.16.1/docs/Mocha/ClassMethods.html
>  ruby-mocha-1.16.1/docs/Mocha/Configuration.html
>  ruby-mocha-1.16.1/docs/Mocha/Expectation.html
>  ruby-mocha-1.16.1/docs/Mocha/ExpectationError.html
>  ruby-mocha-1.16.1/docs/Mocha/ExpectationErrorFactory.html
>  ruby-mocha-1.16.1/docs/Mocha/Hooks.html
>  ruby-mocha-1.16.1/docs/Mocha/Integration.html
>  ruby-mocha-1.16.1/docs/Mocha/Integration/MiniTest.html
>  ruby-mocha-1.16.1/docs/Mocha/Integration/MiniTest/Adapter.html
>  ruby-mocha-1.16.1/docs/Mocha/Integration/TestUnit.html
>  ruby-mocha-1.16.1/docs/Mocha/Integration/TestUnit/Adapter.html
>  ruby-mocha-1.16.1/docs/Mocha/Mock.html
>  ruby-mocha-1.16.1/docs/Mocha/ObjectMethods.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/AllOf.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/AnyOf.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/AnyParameters.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Anything.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Base.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Equals.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/EquivalentUri.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/HasEntries.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/HasEntry.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/HasKey.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/HasKeys.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/HasValue.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Includes.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/InstanceOf.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/IsA.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/KindOf.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Not.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/Optionally.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/RegexpMatches.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/RespondsWith.html
>  ruby-mocha-1.16.1/docs/Mocha/ParameterMatchers/YamlEquivalent.html
>  ruby-mocha-1.16.1/docs/Mocha/Sequence.html
>  ruby-mocha-1.16.1/docs/Mocha/StateMachine.html
>  ruby-mocha-1.16.1/docs/Mocha/StateMachine/State.html
>  ruby-mocha-1.16.1/docs/Mocha/StateMachine/StatePredicate.html
>  ruby-mocha-1.16.1/docs/Mocha/StubbingError.html
>  ruby-mocha-1.16.1/docs/_index.html
>  ruby-mocha-1.16.1/docs/file.COPYING.html
>  ruby-mocha-1.16.1/docs/file.MIT-LICENSE.html
>  ruby-mocha-1.16.1/docs/file.README.html
>  ruby-mocha-1.16.1/docs/file.RELEASE.html
>  ruby-mocha-1.16.1/docs/frames.html
>  ruby-mocha-1.16.1/docs/index.html
>  ruby-mocha-1.16.1/docs/js/app.js
>  ruby-mocha-1.16.1/docs/js/jquery.js
>  ruby-mocha-1.16.1/docs/method_list.html
>  ruby-mocha-1.16.1/docs/top-level-namespace.html
> dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/ruby-mocha_1.16.1-1.diff.fQcH20
> dpkg-source: info: Hint: make sure the version in debian/changelog matches the unpacked source tree
> dpkg-source: info: you can integrate the local changes with dpkg-source --commit
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -S' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/13/ruby-mocha_1.16.1-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.



More information about the Pkg-ruby-extras-maintainers mailing list