build(aur): disable debug subpackage (options=!debug)
makepkg in clean chroots defaults to OPTIONS+=(debug), which tries to
split debug symbols into an owlry-debug subpackage. Cargo's release
profile already strips the binary at compile time (strip = true in
workspace Cargo.toml), so the debug split finds nothing and emits a
benign-but-noisy 'No debugging symbols' warning followed by an empty
owlry-debug-2.0.0-1-x86_64.pkg.tar.zst.
Set options=('!debug') so makepkg skips debug splitting entirely. The
released package is unchanged from the user's perspective; we just stop
producing the empty subpackage and the namcap warning that came with it.
Leaves the unrelated namcap warnings about transitively-satisfied deps
(glib2, openssl, pango, glibc, libgcc) untouched — those are normal for
Rust binaries pulled through GTK4 and don't need explicit listing in
depends=. The 'checkpkg: target not found: owlry' warning will auto-
resolve once 2.0.0 is published to AUR.
This commit is contained in:
@@ -77,6 +77,7 @@ pkgbase = owlry
|
||||
replaces = owlry-meta-widgets
|
||||
replaces = owlry-meta-tools
|
||||
replaces = owlry-meta-full
|
||||
options = !debug
|
||||
source = owlry-2.0.0.tar.gz::https://somegit.dev/Owlibou/owlry/archive/owlry-v2.0.0.tar.gz
|
||||
b2sums = SKIP
|
||||
|
||||
|
||||
@@ -67,6 +67,12 @@ provides=("${_v2_replaced[@]}")
|
||||
|
||||
install=owlry.install
|
||||
|
||||
# Cargo's release profile strips the binary at compile time (strip = true
|
||||
# in workspace Cargo.toml), so there are no debug symbols left for makepkg
|
||||
# to extract into an owlry-debug subpackage. Disable debug splitting so the
|
||||
# build doesn't ship a 0-byte debug package.
|
||||
options=('!debug')
|
||||
|
||||
source=("$pkgname-$pkgver.tar.gz::https://somegit.dev/Owlibou/owlry/archive/owlry-v$pkgver.tar.gz")
|
||||
b2sums=('SKIP') # populated by `just aur-update-pkg owlry` once the tag is pushed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user