FS#79890 - [jdk-openjdk] and jre-openjdk are in conflict - uninstallable due to incorrect conflicts=()

Attached to Project: Arch Linux
Opened by Gene (GeneC) - Sunday, 08 October 2023, 18:51 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Leonidas Spyropoulos (inglor)
Felix Yan (felixonmars)
Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 10
Private No

Details

Description:
jdk-openjdk unable to be installed

Problem caused by both depends=() and conflicts=() contain same package.


pacman -Si jdk-openjdk
Repository : extra-testing
Version : 21.u35-4
...
Depends On : jre21-openjdk=21.u35-4 ...
Conflicts With : jre21-openjdk=21.u35-4 ...

This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/java-openjdk/issues/9
Comment by Toolybird (Toolybird) - Sunday, 08 October 2023, 20:25 GMT
Merging  FS#79891  here.
Comment by freswa (frederik) - Monday, 09 October 2023, 07:59 GMT
Can you try installing jdk-openjdk by `pacman -S jdk-openjdk`? This should remove the jre and headless variants.
Comment by cyphertite (cyphertite) - Monday, 09 October 2023, 08:24 GMT
Thanks Frederik - worked for me.

pacman -S jdk-openjdk
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N] y
:: jdk-openjdk and jre-openjdk-headless are in conflict. Remove jre-openjdk-headless? [y/N] y

Packages (3) jre-openjdk-21.u35-3 [removal] jre-openjdk-headless-21.u35-3 [removal] jdk-openjdk-21.u35-4

Cheers
Comment by Gene (GeneC) - Monday, 09 October 2023, 09:05 GMT
ditto - just needed to add doc

pacman -S jdk-openjdk openjdk-doc

may be worth a release note?
Should we close this?
Comment by Leonidas Spyropoulos (inglor) - Monday, 09 October 2023, 09:18 GMT
We plan to make a news item for this if required once we tidying up loose ends on the packages.
Comment by Taegil Bae (esrevinu) - Tuesday, 10 October 2023, 18:17 GMT
Why does jdk-openjdk conflict with java-runtime? Multiple packages can provide java-runtime and are installed in different directories. So these packages don't conflict.
Comment by Leonidas Spyropoulos (inglor) - Tuesday, 10 October 2023, 22:27 GMT
21.u35-6 should have less conflicts
Comment by Cesar Alcalde (noalwin) - Sunday, 05 November 2023, 11:06 GMT
The news item on the arch homepage seems to be wrong. It tell users to do "pacman -Syu jdk-openjdk" instead of "pacman -S jdk-openjdk". That triggers an upgrade that aborts with a message about the jre-openjdk and jdk-openjdk.

Loading...