• Bug#1046879: ocaml-pprint: Fails to build source after successful build

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

    Source: ocaml-pprint
    Version: 20220103-2
    Severity: minor
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
    User: debian-qa@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-pprint
    dpkg-buildpackage: info: source version 20220103-2
    dpkg-buildpackage: info: source distribution unstable
    dpkg-buildpackage: info: source changed by Julien Puydt <jpuydt@debian.org>
    dpkg-source --before-build .
    debian/rules clean
    dh clean --with ocaml
    debian/rules override_dh_auto_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    # upstream uses git...
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_ocamlclean
    dh_clean
    dpkg-source -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: building ocaml-pprint using existing ./ocaml-pprint_20220103.orig.tar.gz
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pprint.cmxa:
    dpkg-source: error: new version is symlink to ../../../../default/src/pprint.cmxa
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/dune-package:
    dpkg-source: error: new version is symlink to ../../../../default/pprint.dune-package
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pprint.cma:
    dpkg-source: error: new version is symlink to ../../../../default/src/pprint.cma
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/PPrintEngine.mli:
    dpkg-source: error: new version is symlink to ../../../../default/src/PPrintEngine.mli
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrintEngine.cmx:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/native/pPrintEngine.cmx
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/PPrintEngine.ml:
    dpkg-source: error: new version is symlink to ../../../../default/src/PPrintEngine.ml
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrint.cmx:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/native/pPrint.cmx
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrintEngine.cmti:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrintEngine.cmti
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/opam:
    dpkg-source: error: new version is symlink to ../../../../default/pprint.opam
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pprint.a:
    dpkg-source: error: new version is symlink to ../../../../default/src/pprint.a
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/META:
    dpkg-source: error: new version is symlink to ../../../../default/META.pprint
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrintEngine.cmi:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrintEngine.cmi
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/PPrint.mli:
    dpkg-source: error: new version is symlink to ../../../../default/src/PPrint.mli
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrint.cmt:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrint.cmt
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrintEngine.cmt:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrintEngine.cmt
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrint.cmi:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrint.cmi
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/PPrint.ml:
    dpkg-source: error: new version is symlink to ../../../../default/src/PPrint.ml
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pprint.cmxs:
    dpkg-source: error: new version is symlink to ../../../../default/src/pprint.cmxs
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/lib/pprint/pPrint.cmti:
    dpkg-source: error: new version is symlink to ../../../../default/src/.pprint.objs/byte/pPrint.cmti
    dpkg-source: error: old version is nonexistent
    dpkg-source: error: cannot represent change to _build/install/default/doc/pprint/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/pprint/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/pprint/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/install/default/doc/pprint/odoc-pages/index.mld:
    dpkg-source: error: new version is symlink to ../../../../../default/src/index.mld
    dpkg-source: error: old version is nonexistent
    dpkg-source: warning: newly created empty file '_build/.actions/default/test/runtest-49dd4b9a11eaf471792fc9bd23567352' will not be represented in diff
    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-pprint-20220103/_build/.filesystem-clock has no final newline (either original or modified version)
    dpkg-source: warning: file ocaml-pprint-20220103/_build/.lock has no final newline (either original or modified version)
    dpkg-source: warning: file ocaml-pprint-20220103/_build/default/.dune/configurator.v2 has no final newline (either original or modified version)
    dpkg-source: warning: file ocaml-pprint-20220103/_build/default/META.pprint has no final newline (either original or modified version)
    dpkg-source: error: cannot represent change to _build/default/src/.merlin-conf/lib-pprint: binary file contents changed
    dpkg-source: error: add _build/default/src/.merlin-conf/lib-pprint 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/.pprint.objs/byte/pPrint.cmi: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrint.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/.pprint.objs/byte/pPrint.cmo: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrint.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/.pprint.objs/byte/pPrint.cmt: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrint.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/.pprint.objs/byte/pPrint.cmti: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrint.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/src/.pprint.objs/byte/pPrintEngine.cmi: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrintEngine.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/.pprint.objs/byte/pPrintEngine.cmo: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrintEngine.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/.pprint.objs/byte/pPrintEngine.cmt: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrintEngine.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/.pprint.objs/byte/pPrintEngine.cmti: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/byte/pPrintEngine.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/src/.pprint.objs/native/pPrint.cmx: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/native/pPrint.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/.pprint.objs/native/pPrint.o: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/native/pPrint.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/.pprint.objs/native/pPrintEngine.cmx: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/native/pPrintEngine.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/.pprint.objs/native/pPrintEngine.o: binary file contents changed
    dpkg-source: error: add _build/default/src/.pprint.objs/native/pPrintEngine.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
    dpkg-source: warning: newly created empty file '_build/default/src/.pprint.objs/pPrintEngine.impl.all-deps' will not be represented in diff
    dpkg-source: warning: newly created empty file '_build/default/src/.pprint.objs/pPrintEngine.intf.all-deps' will not be represented in diff
    dpkg-source: error: cannot represent change to _build/default/src/pprint.a: binary file contents changed
    dpkg-source: error: add _build/default/src/pprint.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/pprint.cma: binary file contents changed
    dpkg-source: error: add _build/default/src/pprint.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/pprint.cmxa: binary file contents changed
    dpkg-source: error: add _build/default/src/pprint.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/pprint.cmxs: binary file contents changed
    dpkg-source: error: add _build/default/src/pprint.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/pprint.cmxs' will not be represented in diff
    dpkg-source: error: cannot represent change to _build/default/test/.PPrintTest.eobjs/byte/pPrintTest.cmi: binary file contents changed
    dpkg-source: error: add _build/default/test/.PPrintTest.eobjs/byte/pPrintTest.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/test/.PPrintTest.eobjs/byte/pPrintTest.cmo: binary file contents changed
    dpkg-source: error: add _build/default/test/.PPrintTest.eobjs/byte/pPrintTest.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/test/.PPrintTest.eobjs/byte/pPrintTest.cmt: binary file contents changed
    dpkg-source: error: add _build/default/test/.PPrintTest.eobjs/byte/pPrintTest.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/test/.PPrintTest.eobjs/native/pPrintTest.cmx: binary file contents changed
    dpkg-source: error: add _build/default/test/.PPrintTest.eobjs/native/pPrintTest.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/test/.PPrintTest.eobjs/native/pPrintTest.o: binary file contents changed
    dpkg-source: error: add _build/default/test/.PPrintTest.eobjs/native/pPrintTest.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
    dpkg-source: warning: newly created empty file '_build/default/test/.PPrintTest.eobjs/pPrintTest.impl.all-deps' will not be represented in diff
    dpkg-source: error: cannot represent change to _build/default/test/.merlin-conf/exe-PPrintTest: binary file contents changed
    dpkg-source: error: add _build/default/test/.merlin-conf/exe-PPrintTest 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/test/PPrintTest.exe: binary file contents changed
    dpkg-source: error: add _build/default/test/PPrintTest.exe 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/test/PPrintTest.exe' 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-pprint_20220103-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)