[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1046870: ocaml-frei0r: Fails to build source after successful build



Source: ocaml-frei0r
Version: 0.1.2-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-frei0r
> dpkg-buildpackage: info: source version 0.1.2-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Stéphane Glondu <glondu@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-frei0r using existing ./ocaml-frei0r_0.1.2.orig.tar.gz
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.ml:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.ml
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/dune-package:
> dpkg-source: error:   new version is symlink to ../../../../default/frei0r.dune-package
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/libfrei0r_stubs.a:
> dpkg-source: error:   new version is symlink to ../../../../default/src/libfrei0r_stubs.a
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmt:
> dpkg-source: error:   new version is symlink to ../../../../default/src/.frei0r.objs/byte/frei0r.cmt
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cma:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.cma
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/opam:
> dpkg-source: error:   new version is symlink to ../../../../default/frei0r.opam
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.a:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.a
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/META:
> dpkg-source: error:   new version is symlink to ../../../../default/META.frei0r
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmti:
> dpkg-source: error:   new version is symlink to ../../../../default/src/.frei0r.objs/byte/frei0r.cmti
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmx:
> dpkg-source: error:   new version is symlink to ../../../../default/src/.frei0r.objs/native/frei0r.cmx
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.mli:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.mli
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmxs:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.cmxs
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmxa:
> dpkg-source: error:   new version is symlink to ../../../../default/src/frei0r.cmxa
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/frei0r/frei0r.cmi:
> dpkg-source: error:   new version is symlink to ../../../../default/src/.frei0r.objs/byte/frei0r.cmi
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/lib/stublibs/dllfrei0r_stubs.so:
> dpkg-source: error:   new version is symlink to ../../../../default/src/dllfrei0r_stubs.so
> dpkg-source: error:   old version is nonexistent
> dpkg-source: error: cannot represent change to _build/install/default/doc/frei0r/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/frei0r/CHANGES:
> dpkg-source: error:   new version is symlink to ../../../../default/CHANGES
> 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-frei0r-0.1.2/_build/.filesystem-clock has no final newline (either original or modified version)
> dpkg-source: warning: file ocaml-frei0r-0.1.2/_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-frei0r-0.1.2/_build/default/.dune/configurator.v2 has no final newline (either original or modified version)
> dpkg-source: warning: file ocaml-frei0r-0.1.2/_build/default/META.frei0r has no final newline (either original or modified version)
> dpkg-source: error: cannot represent change to _build/default/src/.frei0r.objs/byte/frei0r.cmi: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/byte/frei0r.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/.frei0r.objs/byte/frei0r.cmo: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/byte/frei0r.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/.frei0r.objs/byte/frei0r.cmt: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/byte/frei0r.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/.frei0r.objs/byte/frei0r.cmti: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/byte/frei0r.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/.frei0r.objs/native/frei0r.cmx: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/native/frei0r.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/.frei0r.objs/native/frei0r.o: binary file contents changed
> dpkg-source: error: add _build/default/src/.frei0r.objs/native/frei0r.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-frei0r: binary file contents changed
> dpkg-source: error: add _build/default/src/.merlin-conf/lib-frei0r in debian/source/include-binaries if you want to store the modified binary in the debian tarball
> dpkg-source: warning: file ocaml-frei0r-0.1.2/_build/default/src/c_flags.sexp has no final newline (either original or modified version)
> dpkg-source: warning: file ocaml-frei0r-0.1.2/_build/default/src/c_library_flags.sexp has no final newline (either original or modified version)
> dpkg-source: error: cannot represent change to _build/default/src/config/.discover.eobjs/byte/dune__exe__Discover.cmi: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.discover.eobjs/byte/dune__exe__Discover.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/config/.discover.eobjs/byte/dune__exe__Discover.cmo: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.discover.eobjs/byte/dune__exe__Discover.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/config/.discover.eobjs/byte/dune__exe__Discover.cmt: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.discover.eobjs/byte/dune__exe__Discover.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/config/.discover.eobjs/native/dune__exe__Discover.cmx: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.discover.eobjs/native/dune__exe__Discover.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/config/.discover.eobjs/native/dune__exe__Discover.o: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.discover.eobjs/native/dune__exe__Discover.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/config/.merlin-conf/exe-discover: binary file contents changed
> dpkg-source: error: add _build/default/src/config/.merlin-conf/exe-discover 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/config/discover.exe: binary file contents changed
> dpkg-source: error: add _build/default/src/config/discover.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/src/config/discover.exe' will not be represented in diff
> dpkg-source: error: cannot represent change to _build/default/src/dllfrei0r_stubs.so: binary file contents changed
> dpkg-source: error: add _build/default/src/dllfrei0r_stubs.so 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/dllfrei0r_stubs.so' will not be represented in diff
> dpkg-source: error: cannot represent change to _build/default/src/frei0r.a: binary file contents changed
> dpkg-source: error: add _build/default/src/frei0r.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/frei0r.cma: binary file contents changed
> dpkg-source: error: add _build/default/src/frei0r.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/frei0r.cmxa: binary file contents changed
> dpkg-source: error: add _build/default/src/frei0r.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/frei0r.cmxs: binary file contents changed
> dpkg-source: error: add _build/default/src/frei0r.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/frei0r.cmxs' will not be represented in diff
> dpkg-source: error: cannot represent change to _build/default/src/frei0r_stubs.o: binary file contents changed
> dpkg-source: error: add _build/default/src/frei0r_stubs.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/libfrei0r_stubs.a: binary file contents changed
> dpkg-source: error: add _build/default/src/libfrei0r_stubs.a 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/ocaml-frei0r_0.1.2-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 to: