On 07/10/2022 13:35, Jelle van der Waa wrote:
Short update,
Running makepkg, going into src/arch-rebuild-order
[jelle@t14s][/tmp/arch-rebuild-order/trunk/src/arch-rebuild-order]%debugedit --list-file /dev/stdout target/debug/arch-rebuild-order | tr '\0' '\n' | less
/rustc/1.64.0/library/alloc/src/raw_vec.rs /rustc/1.64.0/library/alloc/src/vec/mod.rs /usr/src/debug/arch-rebuild-order/arch-rebuild-order/src/main.rs /home/jelle/.cargo/registry/src/github.com-1ecc6299db9ec823/structopt-0.3.26/src/lib.rs
So this seems good, except the cargo dependencies. Fedora might specify CARGO_HOME for that reason?
Ok success, after these changes! The LTO issue seems to be known [1]
Index: PKGBUILD =================================================================== --- PKGBUILD (revision 457306) +++ PKGBUILD (working copy) @@ -10,24 +10,26 @@ depends=('glibc' 'libalpm.so') makedepends=('cargo' 'mandown' 'git') groups=('archlinux-tools') -options=('debug') -source=(git+https://gitlab.archlinux.org/archlinux/arch-rebuild-order.git#tag=v$pkgver?s...) -sha512sums=('SKIP') +options=('debug' 'strip' '!lto') +source=(git+https://gitlab.archlinux.org/archlinux/arch-rebuild-order.git#tag=v$pkgver?s... cargo.patch) +sha512sums=('SKIP' + '63b6a57699b4f0db4e8e5a763b5e9baac949567d1fde04914591249d9cd5faf764e9be470fd2b0b8b9aadebc5464b4d7e59bae1e6a46bf7cad9b552a9a96c829') validpgpkeys=("E499C79F53C96A54E572FEE1C06086337C50773E")
cargo.patch is: diff --git a/Cargo.toml b/Cargo.toml index 937e97a..94e426f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,8 +25,3 @@ anyhow = "1.0.52" rstest = "0.12.0" tar = "0.4.38" tempfile = "3.3.0" - - -[profile.release] -lto = true -codegen-units = 1