yay icon indicating copy to clipboard operation
yay copied to clipboard

yay cannot fully skip dependency checks, even with --mflags

Open drws opened this issue 2 years ago • 2 comments

Affected Version

yay v12.1.0 - libalpm v13.0.2

Describe the bug

Trying to install a package with vte3 listed as a makedep. The package in question works flawlessly CLI-only without vte3 so I'm trying to build it with Yay without touching the PKGBUILD (removing the makedepends=('vte3') line).

Reproduction Steps

  1. Find a package having an optional makedep (amtterm being an example).
  2. Try to install it without the make(opt)deps: yay -Syudd --mflags='--nodeps' amtterm
  3. Yay still asks you to install vte3.
  4. After declining, Yay asks you again to install vte3 (?!).

Non-workarounds

  • yay -Syudd --mflags='--nodeps,--nocheck' amtterm
  • yay -Syudd --mflags='--nodeps' --assume-installed vte3 amtterm

Expected behavior

Some option to install a package without makedep(s). Possibly by only skipping the makedeps checks, not all of them, but that is an additional feature request (#2247). In case of amtterm no vte3 installation proposal should occur if such options are in effect, let alone two.

Also, I'd like to emphasize that --assume-installed is not a general solution for this issue, possibly not even a solution at all. It's more of an ugly workaround requiring hardcoding that can only prevent finding of a thorough solution. And it doesn't even work (for makepkg).

drws avatar Jul 23 '23 07:07 drws

if --nodeps also applied to makedeps, would it fix the issue?

Jguer avatar Aug 06 '23 18:08 Jguer

I think so.

drws avatar Aug 06 '23 20:08 drws