• Bug#1049764: ocamlnet: Fails to build binary packages again after succe

    From Lucas Nussbaum@21:1/5 to All on Wed Aug 16 10:30:10 2023
    XPost: linux.debian.bugs.dist

    Source: ocamlnet
    Version: 4.1.9-2
    Severity: minor
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
    User: debian-qa@lists.debian.org
    Usertags: qa-doublebuild

    Hi,

    This package fails to do build a binary-only build (not source) after a successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

    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/DoubleBuild

    Relevant part of the build log:
    cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b
    -----------------------------------------------------------------------------------------------------------------------

    [...]
    Warning 61 [unboxable-type-in-prim-decl]: This primitive declaration uses type server_config_t, whose representation
    may be either boxed or unboxed. Without an annotation to indicate
    which representation is intended, the boxed representation has been
    selected by default. This default choice may change in future
    versions of the compiler, breaking the primitive implementation.
    You should explicitly annotate the declaration of server_config_t
    with [@@boxed] or [@@unboxed], so that its external interface
    remains stable in the future.
    File "netcgi_apache_mod.ml", line 465, characters 28-45:
    465 | ............................chop_extension
    465 | ............................................................................
    Alert deprecated: Stdlib.String.capitalize
    Use String.capitalize_ascii/StringLabels.capitalize_ascii instead.
    File "netcgi_apache_mod.ml", line 523, characters 13-30:
    523 | .............chop_extension
    523 | ......................................
    Alert deprecated: Stdlib.String.capitalize
    Use String.capitalize_ascii/StringLabels.capitalize_ascii instead.
    File "netcgi_apache_mod.ml", line 565, characters 4-75:
    565 | ....ndler = Some (Hashtbl.find reg_table name) }
    |
    565 | let cmd_check_user_id_h.....................
    Warning 23 [useless-record-with]: all the fields are explicitly listed in this record:
    the 'with' clause is useless.
    File "netcgi_apache_mod.ml", line 1:
    Error: Cannot overwrite existing file netcgi_apache_mod.c
    ocamlc returned with exit code 2
    gmake[3]: *** [Makefile:70: netcgi_apache_mod.c] Error 2
    gmake[3]: Leaving directory '/<<PKGBUILDDIR>>/src/netcgi2-apache'
    make[2]: *** [Makefile:23: all] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    make[1]: *** [debian/rules:51: override_dh_auto_build] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:28: binary] Error 2
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

    E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b' failed to run.


    The full build log is available from: http://qa-logs.debian.net/2023/08/16/ocamlnet_4.1.9-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)