On 05/10/2022 16:28, Morten Linderud wrote:
Yo!
With the release of pacman 6.0.2 we have now support for debug packages through `debugedit` as opposed to the awk hack used previously.
https://gitlab.archlinux.org/pacman/pacman/-/commit/ae2f506ddfd1
<SNIP> I removed my testing chroot in /var/lib/archbuild and rebuild arch-rebuild-order. TL;DR it does not seem to work for me. Checking arch-rebuild-order-debug-0.3.1-1-x86_64.pkg.tar.zst arch-rebuild-order-debug W: ELF file ('usr/lib/debug/usr/bin/arch-rebuild-order.debug') is unstripped. arch-rebuild-order-debug W: Directory (usr/src/debug) is empty arch-rebuild-order-debug E: Missing custom license directory (usr/share/licenses/arch-rebuild-order-debug) arch-rebuild-order-debug E: Symlink (usr/lib/debug/.build-id/0c/043fb6cf6cc61237c605819d0075e240415306) points to non-existing ../../../../bin/arch-rebuild-order Seems the source is missing: drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/ drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/debug/ drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/debug/.build-id/ drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/debug/.build-id/0c/ lrwxrwxrwx root/root 0 2022-10-06 13:29 usr/lib/debug/.build-id/0c/043fb6cf6cc61237c605819d0075e240415306 -> ../../../../bin/arch-rebuild-order lrwxrwxrwx root/root 0 2022-10-06 13:29 usr/lib/debug/.build-id/0c/043fb6cf6cc61237c605819d0075e240415306.debug -> ../../usr/bin/arch-rebuild-order.debug drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/debug/usr/ drwxr-xr-x root/root 0 2022-10-06 13:29 usr/lib/debug/usr/bin/ -rwxr-xr-x root/root 3829992 2022-10-06 13:29 usr/lib/debug/usr/bin/arch-rebuild-order.debug drwxr-xr-x root/root 0 2022-10-06 13:29 usr/src/ drwxr-xr-x root/root 0 2022-10-06 13:29 usr/src/debug/ Testing with rust-gdb: rust-gdb --args arch-rebuild-order opencolorio Reading symbols from arch-rebuild-order... Reading symbols from /usr/lib/debug/usr/bin/arch-rebuild-order.debug... (gdb) b find_package_anywhere Function "find_package_anywhere" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (find_package_anywhere) pending. (gdb) r Starting program: /usr/bin/arch-rebuild-order opencolorio This GDB supports auto-downloading debuginfo from the following URLs: https://debuginfod.archlinux.org Enable debuginfod for this session? (y or [n]) y Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". opencolorio openimageio openshadinglanguage krita krita-plugin-gmic blender [Inferior 1 (process 324620) exited normally] My local cargo build works fine with the same commands: Reading symbols from target/debug/arch-rebuild-order... (gdb) b find_package_anywhere Breakpoint 1 at 0x3cb50: file src/lib.rs, line 19. (gdb) s The program is not being run. (gdb) r Starting program: /home/jelle/projects/arch-rebuild-order/target/debug/arch-rebuild-order opencolorio This GDB supports auto-downloading debuginfo from the following URLs: https://debuginfod.archlinux.org Enable debuginfod for this session? (y or [n]) y Debuginfod has been enabled. To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit. [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Breakpoint 1, arch_rebuild_order::find_package_anywhere (pkgname="opencolorio", pacman=0x7fffffffb580) at src/lib.rs:19 19 let dbs = pacman.syncdbs(); Not sure, what's going wrong with the debug build. Greetings, Jelle