FS#68722 - [java-atk-wrapper-openjdk] error: missing 'java-runtime=13' dependency

Attached to Project: Community Packages
Opened by ratijas (ratijas) - Monday, 23 November 2020, 16:15 GMT
Last edited by Jonas Witschel (diabonas) - Friday, 26 November 2021, 08:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

This is the only package in official repositories which makes pacman fail to check its database.

As far as I understood, pacman -Dkkv verifies its database (and subsequently all repositories declared in pacman.conf) to ensure that dependencies are resolvable, and constraints can be met.

But because java-runtime=13 is a (virtual) dependency, it can't be found in official repositories, and it makes pacman fail with this weird error:

> error: missing 'java-runtime=13' dependency for 'java-atk-wrapper-openjdk'

What's even more confusing to unsuspecting user, it that none java related software has to be installed to reproduce the error. For example, I've spent at least an hour looking for what I though should be some leftovers of java-atk-wrapper-openjdk supposedly installed at some point in time in the past -- only to figure out it was a problem with the database itself.

Shouldn't pacman database check handle such (virtual) dependencies in a special way, perhaps?

Additional info:
* Arch Linux packages database slice: 2020-11-23
* pacman version: 5.2.2-1

Steps to reproduce:

$ pacman -Dkkv
Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Hook Dirs : /usr/share/libalpm/hooks/ /etc/pacman.d/hooks/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
GPG Dir : /etc/pacman.d/gnupg/
Targets : None
error: missing 'java-runtime=13' dependency for 'java-atk-wrapper-openjdk'
This task depends upon

Closed by  Jonas Witschel (diabonas)
Friday, 26 November 2021, 08:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  java-atk-wrapper 0.38.0-1
Comment by ratijas (ratijas) - Monday, 23 November 2020, 16:16 GMT
Dang it, how do I edit the dumb title now? I'm sorry.
Comment by Emil (xexaxo) - Saturday, 28 November 2020, 13:14 GMT
Hey, just noticed the same thing - just found that -Dkk was a thing.

Upon closer look, the virtual dependency is not the issue here - the 8 and 11 version of this package work like a charm.
Chances are the jre-openjdk (one that provides java-runtime) maintainer did not run pacman -Dkk, as they updated the package from 13 to 14.

Most likely they did a quick grep around and didn't notice java-atk-wrapper-openjdk, since it (looks to be) the only Java package constructing the dependency dynamically (see the PKBGUILD).

Loading...