• Bug#1100154: dh-debputy: full integration regression in CMake project

    From Andrea Pappacoda@21:1/5 to All on Tue Mar 11 23:40:01 2025
    --391fadf009d0a27fe6335a1c89c3d8f09a9dafa3f209f4be1e86a285ef13 Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; charset=UTF-8; format=Flowed

    Package: dh-debputy
    Version: 0.1.65
    Severity: normal

    Hi!

    I've noticed that cubeb, one of the packages I maintain using debputy
    (btw, thanks Niels for converting it!), has stopped building.

    Here's the debputy log. Unfortunately, I don't have much else to say :/

    Bye!

    debputy: warning: Re-raising original exception to show the full stack trace due to debug mode being active
    cd _build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_
    REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DBUILD_
    SHARED_LIBS=ON -DBUILD_RUST_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUNDLE_SPEEX=OFF -DLAZY_LOAD_LIBS=OFF -DUSE_SANITIZERS=OFF ..
    cd _build && make -j4 VERBOSE=1
    cmake --install _build
    objcopy --add-gnu-debuglink debian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-package/dbgsym-build-ids/d58bf8f91fefe9ba8bfba74419064ea23b7e5a.debug /home/tachi/dev/deb/cubeb/debian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-
    package/tmpf56qz9s2__libcubeb.so.0.0.0
    dpkg-gensymbols -plibcubeb0 -Idebian/libcubeb0.symbols -Pdebian/.debputy/scratch-dir/_pb-49497/generated-fs-content/pkg_libcubeb0/DEBIAN -Odebian/.debputy/scratch-dir/_pb-49497/generated-fs-content/pkg_libcubeb0/DEBIAN/symbols -e/home/tachi/dev/deb/
    cubeb/debian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-package/tmpf56qz9s2__libcubeb.so.0.0.0
    dpkg-shlibdeps -T/tmp/tmplwowmc1o -Ldebian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-package/_shlibs_materialization_dir/shlibs.local -l/home/tachi/dev/deb/cubeb/debian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-package/_
    shlibs_materialization_dir/libcubeb0_a8ghkjyl /home/tachi/dev/deb/cubeb/debian/.debputy/scratch-dir/_pb-49497/generated-fs-content/no-package/tmpf56qz9s2__libcubeb.so.0.0.0
    Traceback (most recent call last):
    File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 1316, in compute_installed_size
    st = path.stat()
    File "/usr/share/dh-debputy/debputy/filesystem_scan.py", line 1342, in stat
    return super().stat()
    ~~~~~~~~~~~~^^
    File "/usr/share/dh-debputy/debputy/filesystem_scan.py", line 1170, in stat
    raise PureVirtualPathError(
    ...<2 lines>...
    )
    debputy.exceptions.PureVirtualPathError: stat() is only applicable to paths backed by the file system. The path './usr/share/doc/libcubeb0-dbgsym' is purely virtual

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/usr/bin/debputy", line 8, in <module>
    main()
    ~~~~^^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line 1188, in main
    _error_w_stack_trace(
    ~~~~~~~~~~~~~~~~~~~~^
    "Unhandled exception (Re-run with --debug/DEBPUTY_DEBUG=1 to see the raw stack trace)",
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    follow_warning=["Please file a bug against debputy with the full output."],
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line 1210, in _error_w_stack_trace
    raise orig_exception if orig_exception is not None else stacktrace
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line 1107, in main
    ROOT_COMMAND(cmd_arg)
    ~~~~~~~~~~~~^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 703, in __call__
    self._aliases[v](command_arg)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 703, in __call__
    self._aliases[v](command_arg)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/context.py", line 534, in __call__
    return self._handler(context)
    ~~~~~~~~~~~~~^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line 777, in _dpkg_build_driver_integration
    assemble(
    ~~~~~~~~^
    context,
    ^^^^^^^^
    ...<2 lines>...
    debug_materialization=log_level is not None,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/commands/debputy_cmd/__main__.py", line 898, in assemble
    assemble_debs(
    ~~~~~~~~~~~~~^
    context,
    ^^^^^^^^
    ...<3 lines>...
    debug_materialization=debug_materialization,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/package_build/assemble_deb.py", line 109, in assemble_debs
    setup_control_files(
    ~~~~~~~~~~~~~~~~~~~^
    dctrl_data,
    ^^^^^^^^^^^
    ...<4 lines>...
    allow_ctrl_file_management=not is_dh_rrr_only_mode,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 1254, in setup_control_files
    _generate_control_files(
    ~~~~~~~~~~~~~~~~~~~~~~~^
    binary_package_data,
    ^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    dbgsym_ids,
    ^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 1721, in _generate_control_files
    _generate_dbgsym_control_file_if_relevant(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    binary_package,
    ^^^^^^^^^^^^^^^
    ...<5 lines>...
    extra_common_params,
    ^^^^^^^^^^^^^^^^^^^^
    )
    ^
    File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 1357, in _generate_dbgsym_control_file_if_relevant
    total_size = compute_installed_size(dbgsym_fs_root) + compute_installed_size(
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/deb_packaging_support.py", line 1325, in compute_installed_size
    size = path.size
    ^^^^^^^^^
    File "/usr/share/dh-debputy/debputy/plugin/api/spec.py", line 978, in size
    return self.stat().st_size
    ~~~~~~~~~^^
    File "/usr/share/dh-debputy/debputy/filesystem_scan.py", line 1342, in stat
    return super().stat()
    ~~~~~~~~~~~~^^
    File "/usr/share/dh-debputy/debputy/filesystem_scan.py", line 1170, in stat
    raise PureVirtualPathError(
    ...<2 lines>...
    )
    debputy.exceptions.PureVirtualPathError: stat() is only applicable to paths backed by the file system. The path './usr/share/doc/libcubeb0-dbgsym' is purely virtual
    dpkg-buildpackage: error: debputy internal-command dpkg-build-driver-run-task binary subprocess returned exit status 1

    --391fadf009d0a27fe6335a1c89c3d8f09a9dafa3f209f4be1e86a285ef13
    Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iIcEABYIAC8WIQS6VuNIvZRFHt7JcAdKkgiiRVB3pwUCZ9C5yREcdGFjaGlAZGVi aWFuLm9yZwAKCRBKkgiiRVB3p4p4AP4hzKNavD1YyM+WIboW0KcH2fs1OKTS09rF dvxQTcpPhQEAhR3M9FbMMNO5PtNv08wfT+nEoZUB+/NsgL2SU9URNAI=x1f1
    -----END PGP SIGNATURE-----

    --391fadf009d0a27fe6335a1c89c3d8f09a9dafa3f209f4be1e86a285ef13--

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