Re: Need help testing pacman 6.0.2 debug packages
El jueves, 6 de octubre de 2022 1:58:46 (CEST) Allan McRae escribió: > >> * The source files should be located in > >> `/usr/src/debug/${pkgbase}-${pkgver}` > > > > That doesn't seem to be the case. The entire ${srcdir} is installed > > directly under /usr/src/debug. > > This can potentially cause conflicts, especially with out-of-tree > > cmake/meson builds. > > > > Can you provide more details? Anything that uses {C,CXX,RUST}FLAGS > should work. As far as I can see, source files are being copied to /usr/src/debug [1][2]. No ${pkgbase}-${pkgver} subdir is even created [1] https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.0.2/scripts/libmakepkg/tidy/strip.sh.in#L77 [2] https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.0.2/scripts/libmakepkg/tidy/strip.sh.in#L144
Re: Need help testing pacman 6.0.2 debug packages
On Thu, Oct 06, 2022 at 09:28:36AM +0200, Antonio Rojas wrote: > El jueves, 6 de octubre de 2022 1:58:46 (CEST) Allan McRae escribió: > > >> * The source files should be located in > > >> `/usr/src/debug/${pkgbase}-${pkgver}` > > > > > > That doesn't seem to be the case. The entire ${srcdir} is installed > > > directly under /usr/src/debug. > > > This can potentially cause conflicts, especially with out-of-tree > > > cmake/meson builds. > > > > > > > Can you provide more details? Anything that uses {C,CXX,RUST}FLAGS > > should work. > > As far as I can see, source files are being copied to /usr/src/debug [1][2]. > No ${pkgbase}-${pkgver} subdir is even created > > [1] > https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.0.2/scripts/libmakepkg/tidy/strip.sh.in#L77 > [2] > https://gitlab.archlinux.org/pacman/pacman/-/blob/v6.0.2/scripts/libmakepkg/tidy/strip.sh.in#L144 I was apparently confused and missed this when I originally wrote the patch. I submitted a fix for this: https://lists.archlinux.org/archives/list/pacman-...@lists.archlinux.org/thread/IQJ67VBIG6VRTHOYKYNLR2BCLAK2IA2U/ -- Morten Linderud PGP: 9C02FF419FECBE16 signature.asc Description: PGP signature
Re: Need help testing pacman 6.0.2 debug packages
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 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=0x7fffb580) at src/lib.rs:19 19 let dbs = pacman.syncdbs(); Not sure, what's going wrong with the debug build. Greetings, Jelle OpenPGP_signature Description: OpenPGP digital signature
Re: Need help testing pacman 6.0.2 debug packages
On Thu, Oct 06, 2022 at 01:42:32PM +0200, Jelle van der Waa wrote: > > > 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 > > > > > I removed my testing chroot in /var/lib/archbuild and rebuild > arch-rebuild-order. TL;DR it does not seem to work for me. What happens if you remove `--release` from cargo? Or what would we need to do for debug packages on Rust? What does Fedora/SUSE do? -- Morten Linderud PGP: 9C02FF419FECBE16 signature.asc Description: PGP signature