Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.18k stars 361 forks source link

yay tries to install packages as dependencies that are already satisfied #730

Closed SammysHP closed 6 years ago

SammysHP commented 6 years ago

Affected Version

yay v8.1139

Issue

When I try to install josm-svn from the AUR which make-depends on java-environment>=8, yay asks to select a provider for that dependency:

$ yay -S josm-svn 
:: There are 2 providers available for java-environment>=8:
:: Repository extra
    1) jdk10-openjdk 2) jdk8-openjdk 

But jdk8 is already installed and provides java-environment=8.

Steps to reproduce

  1. Install jdk8: yay -S jdk8
  2. Install josm-svn: yay -S josm-svn
Morganamilo commented 6 years ago

Can you pacman -Qi jdk8? Just to make sure the build didn't do anything weird.

SammysHP commented 6 years ago
$ LANG=C pacman -Qi jdk8
Name            : jdk8
Version         : 8u181-1
Description     : Oracle Java 8 Development Kit
Architecture    : x86_64
URL             : http://www.oracle.com/technetwork/java/javase/downloads/index.html
Licenses        : custom:Oracle
Groups          : None
Provides        : java-runtime=8  java-runtime-headless=8  java-web-start=8  java-environment=8  java-runtime-jre=8  java-runtime-headless-jre=8  java-web-start-jre=8  java-environment-jdk=8  java-openjfx=8
Depends On      : ca-certificates-java  hicolor-icon-theme  java-environment-common  java-runtime-common  nss  xdg-utils
Optional Deps   : alsa-lib: for basic sound support [installed]
                  eclipse-java: to use "Oracle Java Mission Control" plugins in Eclipse
                  gtk2: for Gtk+ look and feel (desktop) [installed]
Required By     : android-apktool  ant  arduino  briss  cmanager  cruiser  imagej  intellij-idea-community-edition  java-rxtx  josm-svn  mediathek  sbt  scala  umlet
Optional For    : jxrlib  libbluray  libreoffice-fresh  octave  subversion
Conflicts With  : None
Replaces        : None
Installed Size  : 362.58 MiB
Packager        : Sven Karsten Greiner <sven@sammyshp.de>
Build Date      : Sat Jul 28 08:41:16 2018
Install Date    : Sat Jul 28 08:42:03 2018
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None
SammysHP commented 6 years ago
$ yay -Ssq java-runtime
jre8-openjdk-headless
jre8-openjdk
jre7-openjdk-headless
jre7-openjdk
jre10-openjdk-headless
jre10-openjdk
java-runtime-common
$ yay -Qsq java-runtime
java-runtime-common
jdk8
$ yay -Ssqa java-runtime

Seems like provides is not used from AUR and from local packages for dependency checks.

Morganamilo commented 6 years ago

Should be fixed now.