Yay: Do not remove explicitly installed make dependencies when removing other make dependencies

Created on 1 Mar 2020  路  2Comments  路  Source: Jguer/yay

Affected Version

yay v9.4.6.r0.g352667f - libalpm v12.0.1

Issue

yay(8) will remove explicitly installed packages when removing make dependencies.

If you install two packages and one is a make dependency of the other, --removemake will delete an explicitly installed package.

Can we not remove the explicitly installed make dependency either by an option or by default?

Steps to reproduce

  1. yay -Syu --removemake --noprovides pulseaudio-modules-bt-git libldac
  2. yay -Qi libldac

In this case both of these are AUR packages and libldac is a make dependency of pulseaudio-modules-bt-git and --removemake removes the explicitly installed libldac.

If --noremovemake is used to build/install and afterwards yay -Y --clean is performed, libldac is successfully _not_ removed. It seems pacman(8) is marking them as explicit, but yay(8) is removing anything in the makedepends list without any regard for explicit flag on package.

Can yay(8) support --asexplicit option with --removemake option? Something that can be used with --save and used by default?

All 2 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Please don't close this issue. Do you need more information? Why is this bot automatically closing requests for improving yay?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muesli picture muesli  路  4Comments

x70b1 picture x70b1  路  4Comments

mmirate picture mmirate  路  3Comments

GermanG picture GermanG  路  4Comments

torvic9 picture torvic9  路  4Comments