Source: ocaml-bigarray-compat
Version: 1.1.0-2
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian...@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 ocaml-bigarray-compat
> dpkg-buildpackage: info: source version 1.1.0-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Stéphane Glondu 
> <glo...@debian.org>
>  dpkg-source --before-build .
>  debian/rules clean
> dh clean --with ocaml
>    dh_ocamlclean
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building ocaml-bigarray-compat using existing 
> ./ocaml-bigarray-compat_1.1.0.orig.tar.bz2
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cmxs:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/bigarray_compat.cmxs
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/dune-package:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/bigarray-compat.dune-package
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cmx:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/.bigarray_compat.objs/native/bigarray_compat.cmx
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cma:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/bigarray_compat.cma
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.ml:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/bigarray_compat.ml
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/opam:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/bigarray-compat.opam
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cmi:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/.bigarray_compat.objs/byte/bigarray_compat.cmi
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/META:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/META.bigarray-compat
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.a:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/bigarray_compat.a
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cmt:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/.bigarray_compat.objs/byte/bigarray_compat.cmt
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/lib/bigarray-compat/bigarray_compat.cmxa:
> dpkg-source: error:   new version is symlink to 
> ../../../../default/src/bigarray_compat.cmxa
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/doc/bigarray-compat/CHANGES.md:
> dpkg-source: error:   new version is symlink to ../../../../default/CHANGES.md
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/doc/bigarray-compat/LICENSE.md:
> dpkg-source: error:   new version is symlink to ../../../../default/LICENSE.md
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to 
> _build/install/default/doc/bigarray-compat/README.md:
> dpkg-source: error:   new version is symlink to ../../../../default/README.md
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/.db: binary file 
> contents changed
> dpkg-source: error: add _build/.db in debian/source/include-binaries if you 
> want to store the modified binary in the debian tarball
> dpkg-source: error: cannot represent change to _build/.digest-db: binary file 
> contents changed
> dpkg-source: error: add _build/.digest-db in debian/source/include-binaries 
> if you want to store the modified binary in the debian tarball
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/.dune/default/src/dune has no final 
> newline (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/.dune/default/src/dune.ml has no final 
> newline (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/.filesystem-clock has no final newline 
> (either original or modified version)
> dpkg-source: warning: file ocaml-bigarray-compat-1.1.0/_build/.lock has no 
> final newline (either original or modified version)
> dpkg-source: error: cannot represent change to 
> _build/.to-delete-in-source-tree: binary file contents changed
> dpkg-source: error: add _build/.to-delete-in-source-tree in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/.dune/configurator.v2 has no final 
> newline (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/CHANGES.md has no final newline 
> (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/META.bigarray-compat has no final 
> newline (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/README.md has no final newline 
> (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/bigarray-compat.opam has no final 
> newline (either original or modified version)
> dpkg-source: error: cannot represent change to 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmi: binary 
> file contents changed
> dpkg-source: error: add 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmi in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmo: binary 
> file contents changed
> dpkg-source: error: add 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmo in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmt: binary 
> file contents changed
> dpkg-source: error: add 
> _build/default/src/.bigarray_compat.objs/byte/bigarray_compat.cmt in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/.bigarray_compat.objs/native/bigarray_compat.cmx: binary 
> file contents changed
> dpkg-source: error: add 
> _build/default/src/.bigarray_compat.objs/native/bigarray_compat.cmx in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/.bigarray_compat.objs/native/bigarray_compat.o: binary 
> file contents changed
> dpkg-source: error: add 
> _build/default/src/.bigarray_compat.objs/native/bigarray_compat.o in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/.merlin-conf/lib-bigarray-compat: binary file contents 
> changed
> dpkg-source: error: add _build/default/src/.merlin-conf/lib-bigarray-compat 
> in debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/bigarray_compat.a: binary file contents changed
> dpkg-source: error: add _build/default/src/bigarray_compat.a in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/bigarray_compat.cma: binary file contents changed
> dpkg-source: error: add _build/default/src/bigarray_compat.cma in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/bigarray_compat.cmxa: binary file contents changed
> dpkg-source: error: add _build/default/src/bigarray_compat.cmxa in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: error: cannot represent change to 
> _build/default/src/bigarray_compat.cmxs: binary file contents changed
> dpkg-source: error: add _build/default/src/bigarray_compat.cmxs in 
> debian/source/include-binaries if you want to store the modified binary in 
> the debian tarball
> dpkg-source: warning: executable mode 0755 of 
> '_build/default/src/bigarray_compat.cmxs' will not be represented in diff
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/src/bigarray_compat.ml has no 
> final newline (either original or modified version)
> dpkg-source: warning: file 
> ocaml-bigarray-compat-1.1.0/_build/default/src/bigarray_stdlib.ml has no 
> final newline (either original or modified version)
> 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/ocaml-bigarray-compat_1.1.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.

Reply via email to