Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency issue during sysupgrade when multiple providers for the same dependency are installed at the same time and one of them is part of upgrade together with package which have that dependency #619

Open
Eothred opened this issue Dec 31, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Eothred
Copy link

Eothred commented Dec 31, 2021

$ pikaur -Vq
Pikaur v1.9
Pacman v6.0.1 - libalpm v13.0.1 - pyalpm v0.10.6
Prerequisites:

To trigger this you need multiple java-runtime installed on your system. You also need an update of one of the older jdk's to be part of the same update (see discussion). The package need to be dependent on a newer version of jdk than the one being upgraded. In my case jabref needs jdk>16, while jdk8 and jdk11 was part of the update.

I have the following

$ pikaur -Qs java-runtime
local/java-runtime-common 3-3
    Common files for Java Runtime Environments
local/jdk8 8u301-1
    Oracle Java 8 Development Kit LTS
local/jre-openjdk 17.0.1.u12-1
    OpenJDK Java 17 full runtime environment
local/jre-openjdk-headless 17.0.1.u12-1
    OpenJDK Java 17 headless runtime environment
local/jre11 11.0.12-1
    Oracle Java 11 Runtime Environment LTS
local/jre11-openjdk 11.0.13.u8-1
    OpenJDK Java 11 full runtime environment
local/jre11-openjdk-headless 11.0.13.u8-1
    OpenJDK Java 11 headless runtime environment
local/jre8-openjdk 8.u292-1
    OpenJDK Java 8 full runtime environment
local/jre8-openjdk-headless 8.u292-1
    OpenJDK Java 8 headless runtime environment
$ archlinux-java status
  java-11-jdk
  java-11-openjdk
  java-17-openjdk (default)
  java-8-jdk
  java-8-openjdk/jre
Description:

I have multiple java-runtime available on my system, and when I want to upgrade a package that depends on jre > 16 I get an error in the dependency check which I do not think is correct. This was triggered by the jabref package for me.

This seem to only happen when I run pikaur -Syu, if I do pikaur -S jabref it builds&installs as expected.

Attached log:

pikayr_Syu_jabref.log

pikaur -Syu --verbose --pikaur-debug
...
:: error: Can't resolve dependencies for AUR package 'jabref':
Version mismatch:
jabref depends on: 'java-runtime>=16'
 found in 'PackageSource.AUR': '8u311-1'
@actionless
Copy link
Owner

thanks for reporting! but unfortunately so far i can't figure it out at which point things getting wrong, i'll try to look into it once again later

@actionless actionless added the bug Something isn't working label Jan 12, 2022
@actionless
Copy link
Owner

actionless commented Jan 12, 2022

i believe that might be because another package during your sysupgrade is also depends on java-runtime-common and it somehow confusing dependency resolution system for aur packages, or because jdk is also included in the update

@Eothred
Copy link
Author

Eothred commented Jan 14, 2022

Yes if I remember well jdk itself was also part of the upgrade list

@Eothred
Copy link
Author

Eothred commented Jan 20, 2022

Can definitely confirm it is related to jdk also being part of the update, hit the issue again and updated jdk11/jre11/jdk8 first. Then there was no issue. Will update description

@actionless actionless changed the title Dependency issues when multiple java-runtime available Dependency issue during sysupgrade when multiple java-runtime available and one of its providers is part of upgrade Oct 4, 2022
@actionless actionless changed the title Dependency issue during sysupgrade when multiple java-runtime available and one of its providers is part of upgrade Dependency issue during sysupgrade when multiple java-runtime available and one of them is part of upgrade Oct 4, 2022
@actionless actionless changed the title Dependency issue during sysupgrade when multiple java-runtime available and one of them is part of upgrade Dependency issue during sysupgrade when multiple providers for the same dependency are installed at the same time and one of them is part of upgrade together with package which have that dependency Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants