• Bug#1046623: ocaml-config-file: Fails to build source after successful

    From Lucas Nussbaum@21:1/5 to All on Sun Aug 13 23:00:06 2023
    XPost: linux.debian.bugs.dist

    Source: ocaml-config-file
    Version: 1.2.1-2
    Severity: minor
    Tags: trixie sid ftbfs
    User: [email protected]
    Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
    User: [email protected]
    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-config-file
    dpkg-buildpackage: info: source version 1.2.1-2
    dpkg-buildpackage: info: source distribution unstable
    dpkg-buildpackage: info: source changed by Stéphane Glondu <[email protected]>
    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-config-file using existing ./ocaml-config-file_1.2.1.orig.tar.gz
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/dune-package:
    dpkg-source: error: new version is symlink to ../../../../default/config-file.dune-package
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmi:
    dpkg-source: error: new version is symlink to ../../../../default/.config_file.objs/byte/config_file.cmi
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/opam:
    dpkg-source: error: new version is symlink to ../../../../default/config-file.opam
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmt:
    dpkg-source: error: new version is symlink to ../../../../default/.config_file.objs/byte/config_file.cmt
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.a:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.a
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmxs:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.cmxs
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmti:
    dpkg-source: error: new version is symlink to ../../../../default/.config_file.objs/byte/config_file.cmti
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/META:
    dpkg-source: error: new version is symlink to ../../../../default/META.config-file
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.mli:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.mli
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cma:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.cma
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.ml:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.ml
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmxa:
    dpkg-source: error: new version is symlink to ../../../../default/config_file.cmxa
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/config-file/config_file.cmx:
    dpkg-source: error: new version is symlink to ../../../../default/.config_file.objs/native/config_file.cmx
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/doc/config-file/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/config-file/LICENSE:
    dpkg-source: error: new version is symlink to ../../../../default/LICENSE dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/doc/config-file/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-config-file-1.2.1/_build/.filesystem-clock has no final newline (either original or modified version)
    dpkg-source: warning: file ocaml-config-file-1.2.1/_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: error: cannot represent change to _build/default/.config_file.objs/byte/config_file.cmi: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/byte/config_file.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/.config_file.objs/byte/config_file.cmo: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/byte/config_file.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/.config_file.objs/byte/config_file.cmt: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/byte/config_file.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/.config_file.objs/byte/config_file.cmti: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/byte/config_file.cmti 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/.config_file.objs/native/config_file.cmx: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/native/config_file.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/.config_file.objs/native/config_file.o: binary file contents changed
    dpkg-source: error: add _build/default/.config_file.objs/native/config_file.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
    dpkg-source: warning: file ocaml-config-file-1.2.1/_build/default/.dune/configurator.v2 has no final newline (either original or modified version)
    dpkg-source: error: cannot represent change to _build/default/.merlin-conf/lib-config-file: binary file contents changed
    dpkg-source: error: add _build/default/.merlin-conf/lib-config-file in debian/source/include-binaries if you want to store the modified binary in the debian tarball
    dpkg-source: warning: file ocaml-config-file-1.2.1/_build/default/META.config-file has no final newline (either original or modified version)
    dpkg-source: error: cannot represent change to _build/default/config_file.a: binary file contents changed
    dpkg-source: error: add _build/default/config_file.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/config_file.cma: binary file contents changed
    dpkg-source: error: add _build/default/config_file.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/config_file.cmxa: binary file contents changed
    dpkg-source: error: add _build/default/config_file.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/config_file.cmxs: binary file contents changed
    dpkg-source: error: add _build/default/config_file.cmxs in debian/source/include-binaries if you want to store the modified binary in the debian tarball
    dpkg-source: warning: executable mode 0555 of '_build/default/config_file.cmxs' will not be represented in diff
    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-config-file_1.2.1-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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)