Skip to content

"Missing AUR Debug Packages" with split packages #2764

@Terrance

Description

@Terrance

Affected Version

yay v12.5.7.r20.gab19522e - libalpm v16.0.1

Describe the bug

A warning is shown during updates for lingering debug packages when the corresponding software package is missing, however this detection doesn't extend to split packages where the software package name is not a prefix of the debug package name:

if _, ok := aurData[strings.TrimSuffix(name, "-debug")]; !ok {
warnings.Missing = append(warnings.Missing, name)

Reproduction Steps

  1. yay -S immich-cli (pkgbase immich; installs immich-cli and immich-debug)
  2. yay -Syu

Expected behavior

No warnings.

Output

$ yay -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
 -> Missing AUR Debug Packages: immich-debug
 there is nothing to do
$ yay -Qs immich*
local/immich-cli 2.4.1-1
    Self-hosted photos and videos backup tool
local/immich-debug 2.4.1-1
    Detached debugging symbols for immich

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions