Skip to content

New checks for optdepends and sodepends

Balló György requested to merge bgyorgy/namcap:optdepends-checks into master
  • Keep soname versions when searching for dependencies to avoid picking up wrong package on multilib systems.
  • Show infos instead of warnings for not specified libdepends/libprovides, as adding them manually is deprecated by pacman, and the format will be changed in next pacman version.
  • If a dependency is listed in both depends=() and optdepends=(), show an error. The package maintainer should remove this dependency from one of these lists.
  • If a dependency is listed in optdepends=(), but implicitly satisfied by depends=(), show an info. The package maintainer may move this dependency from optdepends=() to depends=().
  • If a soname is specified without version number (e.g. makepkg was not able to detect it), show an error. Sonames without version numbers are ambiguous on multilib systems.

Examples:

qemu-desktop E: Dependency qemu-ui-gtk specified in both depends and optdepends
udisks2 I: Dependency dosfstools specified in optdepends but implicitly satisfied by depends
dotnet-runtime E: Soname dependency libgssapi_krb5.so specified without version number
Edited by Balló György

Merge request reports