Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / atuin
Commits: 34313302 by Jan Alexander Steffens (heftig) at 2024-04-15T18:23:14+02:00 Run the tests in release mode Avoids rebuilding stuff in debug mode and tests the code in the state we're going to ship. - - - - - 5d1e4c79 by Jan Alexander Steffens (heftig) at 2024-04-15T18:23:16+02:00 Add missing dep - - - - - ef0628ff by Jan Alexander Steffens (heftig) at 2024-04-15T18:23:17+02:00 Enable cargo-level LTO This reduces the installed size a bit. - - - - - c218efaa by Jan Alexander Steffens (heftig) at 2024-04-15T18:35:29+02:00 Enable cargo-level debuginfo As of Rust 1.77.0, Cargo will strip the produced binary when debuginfo is not requested, so our RUSTFLAGS are useless. See: https://github.com/rust-lang/cargo/pull/13257 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -7,6 +7,7 @@ pkgbase = atuin license = MIT makedepends = cargo depends = gcc-libs + depends = glibc optdepends = bash-preexec: bash integration options = !lto source = https://github.com/atuinsh/atuin/archive/v18.2.0/atuin-18.2.0.tar.gz ===================================== PKGBUILD ===================================== @@ -9,12 +9,18 @@ pkgdesc="Magical shell history" arch=('x86_64') url="https://github.com/atuinsh/atuin" license=('MIT') -depends=('gcc-libs') +depends=('gcc-libs' 'glibc') makedepends=('cargo') optdepends=('bash-preexec: bash integration') +options=('!lto') source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('7fb87902ce09af2d29459e9158bc83c18519690d555259709cab40d9ee75b024') -options=('!lto') + +# Use LTO +export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 + +# Use debug +export CARGO_PROFILE_RELEASE_DEBUG=2 prepare() { cd "$pkgname-$pkgver" @@ -32,7 +38,7 @@ build() { check() { cd "$pkgname-$pkgver" - cargo test --frozen --all-features --workspace --lib + cargo test --release --frozen --all-features --workspace --lib } package() { View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/atuin/-/compare/c95b45c2b49e9890d2aa97b6a317eb488c7a65cb...c218efaaaa2008c99f7819f83124d6b0b11efc31 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/atuin/-/compare/c95b45c2b49e9890d2aa97b6a317eb488c7a65cb...c218efaaaa2008c99f7819f83124d6b0b11efc31 You're receiving this email because of your account on gitlab.archlinux.org.