Bug#1047545: mrcal: Fails to build source after successful build

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


Source: mrcal
Version: 2.3-3
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 mrcal
> dpkg-buildpackage: info: source version 2.3-3
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Dima Kogan <dkogan at debian.org>
>  dpkg-source --before-build .
>  fakeroot debian/rules clean
> dh clean --with python3
>    dh_auto_clean
> 	make -j8 distclean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> rm -rf ./*.a ./*.o ./*.so ./*.so.* ./*.d ./moc_* ./ui_*.h* test/*.a test/*.o test/*.so test/*.so.* test/*.d test/moc_* test/ui_*.h* test-gradients test/test-cahvor test/test-lensmodel-string-manipulation test/test-parser-cameramodel   minimath/minimath_generated.h cameramodel-parser_GENERATED.c mrcal-npsp-pywrap-GENERATED.c poseutils-npsp-pywrap-GENERATED.c triangulation-npsp-pywrap-GENERATED.c mrcal/*.so mrcal-calibrate-cameras.1 mrcal-convert-lensmodel.1 mrcal-show-distortion-off-pinhole.1 mrcal-show-splined-model-correction.1 mrcal-show-projection-uncertainty.1 mrcal-show-projection-diff.1 mrcal-reproject-points.1 mrcal-reproject-image.1 mrcal-graft-models.1 mrcal-to-cahvor.1 mrcal-from-cahvor.1 mrcal-show-geometry.1 mrcal-show-valid-intrinsics-region.1 mrcal-is-within-valid-intrinsics-region.1 
> mrcal-triangulate.1 mrcal-cull-corners.1 mrcal-show-residuals-board-observation.1 mrcal-show-residuals.1 mrcal-stereo.1 mrcal-calibrate-cameras.pod mrcal-convert-lensmodel.pod mrcal-show-distortion-off-pinhole.pod mrcal-show-splined-model-correction.pod mrcal-show-projection-uncertainty.pod mrcal-show-projection-diff.pod mrcal-reproject-points.pod mrcal-reproject-image.pod mrcal-graft-models.pod mrcal-to-cahvor.pod mrcal-from-cahvor.pod mrcal-show-geometry.pod mrcal-show-valid-intrinsics-region.pod mrcal-is-within-valid-intrinsics-region.pod mrcal-triangulate.pod mrcal-cull-corners.pod mrcal-show-residuals-board-observation.pod mrcal-show-residuals.pod mrcal-stereo.pod doc/mrcal-preamble-GENERATED.html doc/out *.docstring.h *.so.dump
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building mrcal using existing ./mrcal_2.3.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: error: cannot represent change to mrcal/__pycache__/__init__.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/__init__.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/_poseutils_scipy.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/_poseutils_scipy.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/cahvor.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/cahvor.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/calibration.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/calibration.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/cameramodel.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/cameramodel.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/image_transforms.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/image_transforms.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/model_analysis.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/model_analysis.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/poseutils.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/poseutils.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/projections.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/projections.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/stereo.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/stereo.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/synthetic_data.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/synthetic_data.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/triangulation.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/triangulation.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/utils.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/utils.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to mrcal/__pycache__/visualization.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add mrcal/__pycache__/visualization.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to test/__pycache__/test_calibration_helpers.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add test/__pycache__/test_calibration_helpers.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to test/__pycache__/testutils.cpython-311.pyc: binary file contents changed
> dpkg-source: error: add test/__pycache__/testutils.cpython-311.pyc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: error: unrepresentable changes to source
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1
> 
> 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/mrcal_2.3-3_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 debian-science-maintainers mailing list