FS#79763 - [java-openjfx] Uninstallable due to non-synchronized update of openjdk

Attached to Project: Arch Linux
Opened by Frederik “Freso” S. Olesen (Freso) - Saturday, 23 September 2023, 18:12 GMT
Last edited by freswa (frederik) - Tuesday, 07 November 2023, 21:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 26
Private No

Details

Description:
Repeat of https://bugs.archlinux.org/task/74441 :
> I have jre-openjdk and java-openfjx installed on my system. An update is now impossible without manual intervention, since jre-openjdk was updated to version 18. It would be nice to have either synchronized updates or have at least jre17-openjdk as dependency added at the same time, to avoid manual interventions.

Additional info:
```
> sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra 8.2 MiB 7.22 MiB/s 00:01 [#############################] 100%
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing jre-openjdk (21.u35-3) breaks dependency 'java-runtime-openjdk=20' required by java-openjfx
> expac '%n %v' jre-openjdk java-openjfx
jre-openjdk 20.0.2.u9-3
java-openjfx 20.0.1.u1-1
```

Steps to reproduce:
* `pacman -S java-openjfx=20 jre-openjdk=20`
* `pacman -Syu`
This task depends upon

Closed by  freswa (frederik)
Tuesday, 07 November 2023, 21:06 GMT
Reason for closing:  Won't fix
Additional comments about closing:  java-openjfx is not in the official repos anymore
Comment by Ahmad Mahmoudi (A404M) - Monday, 25 September 2023, 03:00 GMT
I have the exact same issue
have you fixed it?
Comment by Vitaly (Bitals) - Tuesday, 26 September 2023, 12:02 GMT
@A404M just hold `java-openjfx` and `jre-openjdk` during update. Read about that in a pacman.conf man/wiki entry or just use a GUI like Pamac and manually tick them off before updating everything else.
Proper fix is updating `java-openjfx` to https://openjfx.io/highlights/21/ in the repo, but that's on maintainers.
Comment by Alexandre ZANNI (noraj) - Thursday, 28 September 2023, 16:34 GMT
Temporary workaround: sudo pacman -Syu --ignore=java-openjfx --ignore=java-openjdk --ignore=jre-openjdk --ignore=jdk-openjdk --ignore=jre-openjdk-headless

Loading...