Bug 1936809

Summary: java-latest-openjdk-headless-15.0.2.0.7-0.rolling.el7.x86_64 requires pcsc-lite-devel which is not in the ubi* repositories
Product: [Fedora] Fedora EPEL Reporter: Levent Demirörs <levent.demiroers>
Component: java-latest-openjdkAssignee: Petra Alice Mikova <pmikova>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: ahughes, jerboaa, jvanek, levent.demiroers, pmikova
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: java-latest-openjdk-16.0.0.0.36-1.rolling.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-01 02:43:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Levent Demirörs 2021-03-09 08:40:26 UTC
Description of problem:
I am creating a Java container based on the Red Hat Universal Base Image 7. When installing the latest headless OpenJDK package, java-latest-openjdk-headless-15.0.2.0.7-0.rolling.el7.x86_64, the installation fails due to a missing dependency:

---> Package java-latest-openjdk-headless.x86_64 1:15.0.2.0.7-0.rolling.el7 will be installed
--> Processing Dependency: pcsc-lite-devel(x86-64) for package: 1:java-latest-openjdk-headless-15.0.2.0.7-0.rolling.el7.x86_64
Error: Package: 1:java-latest-openjdk-headless-15.0.2.0.7-0.rolling.el7.x86_64 (epel)
           Requires: pcsc-lite-devel(x86-64)

The previous version, java-latest-openjdk-headless-15.0.1.9-1.rolling.el7.x86_64, didnt have the problem because it did not depend on pcsc-lite-devel, but on pcsc-lite-libs:

---> Package java-latest-openjdk-headless.x86_64 1:15.0.1.9-1.rolling.el7 will be installed
--> Processing Dependency: pcsc-lite-libs(x86-64) for package: 1:java-latest-openjdk-headless-15.0.1.9-1.rolling.el7.x86_64

pcsc-lite-libs is part of the ubi-7 repository. pcsc-lite-devel is only available in the rhel-7-server-optional-rpms repository, which cannot be enabled without violating the ubi terms.

How reproducible:
Always

Steps to Reproduce:
1. podman run --rm -it registry.access.redhat.com/ubi7/ubi bash 
2. yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3. yum install -y java-latest-openjdk-headless

Actual results:
Installation fails

Expected results:
Installation succeeds

Additional info:
A similar issue was flagged for java-1.8.0-openjdk-headless here: https://bugzilla.redhat.com/show_bug.cgi?id=1684077

Comment 1 jiri vanek 2021-03-09 08:47:53 UTC
This is strange. The effort was to move from devel to libs. Will check.
Anyway - it is soft dependence (suggests), so you can workaround it anyway.

Comment 3 Levent Demirörs 2021-03-09 09:11:39 UTC
(In reply to jiri vanek from comment #1)
> This is strange. The effort was to move from devel to libs. Will check.
> Anyway - it is soft dependence (suggests), so you can workaround it anyway.

Hi Jiri, thank for looking into this. AFAIK, yum under RHEL7 does not support skipping weak dependencies.

Best, Levent

Comment 4 jiri vanek 2021-03-09 09:13:51 UTC
Fixed in rawhide. Will takes some time before it buble to epel7.
Thanx a lot for reporting.

Comment 5 jiri vanek 2021-03-09 09:14:31 UTC
(In reply to Levent Demirörs from comment #3)
> (In reply to jiri vanek from comment #1)
> > This is strange. The effort was to move from devel to libs. Will check.
> > Anyway - it is soft dependence (suggests), so you can workaround it anyway.
> 
> Hi Jiri, thank for looking into this. AFAIK, yum under RHEL7 does not
> support skipping weak dependencies.
> 
> Best, Levent

Yah, sure, you are right. In epel7 there is of course Requires.

Comment 6 Levent Demirörs 2021-03-09 10:17:49 UTC
(In reply to jiri vanek from comment #4)
> Fixed in rawhide. Will takes some time before it buble to epel7.
> Thanx a lot for reporting.

Brilliant, thank you so much for fixing it!

Comment 7 jiri vanek 2021-03-12 14:02:57 UTC
Hello! You were lucky. There is jdk16 on radar, so I bumped also epel7.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-3bcf99274f

Comment 8 Fedora Update System 2021-03-12 14:36:08 UTC
FEDORA-EPEL-2021-3bcf99274f has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-3bcf99274f

Comment 9 Levent Demirörs 2021-03-12 17:11:10 UTC
(In reply to jiri vanek from comment #7)
> Hello! You were lucky. There is jdk16 on radar, so I bumped also epel7.
> https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-3bcf99274f

Very cool! Thanks!

Comment 10 Fedora Update System 2021-03-12 20:45:47 UTC
FEDORA-EPEL-2021-3bcf99274f has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-3bcf99274f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Levent Demirörs 2021-03-15 08:17:42 UTC
The update does not seem to work:

Steps to Reproduce:
1. podman run --rm -it registry.access.redhat.com/ubi7/ubi bash 
2. yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3. yum-config-manager --disable epel 
4. yum-config-manager --enable epel-testing
5. yum install -y java-latest-openjdk-headless

Actual results:
Installation fails

Expected results:
Installation succeeds

Error:
---> Package java-latest-openjdk-headless.x86_64 1:16.0.0.0.36-0.rolling.el7 will be installed
--> Processing Dependency: pcsc-lite-devel(x86-64) for package: 1:java-latest-openjdk-headless-16.0.0.0.36-0.rolling.el7.x86_64
Error: Package: 1:java-latest-openjdk-headless-16.0.0.0.36-0.rolling.el7.x86_64 (epel-testing)
           Requires: pcsc-lite-devel(x86-64)

Or am I testing the wrong package?

Comment 12 jiri vanek 2021-03-15 09:05:54 UTC
Indeed! But it was me who pulled wrong NVR to updates!

Comment 13 jiri vanek 2021-03-15 09:08:24 UTC
new update with java-latest-openjdk-16.0.0.0.36-1.rolling.el7  done. Sorry!

Comment 14 Levent Demirörs 2021-03-15 09:41:57 UTC
(In reply to jiri vanek from comment #13)
> new update with java-latest-openjdk-16.0.0.0.36-1.rolling.el7  done. Sorry!

No worries. Thank you for your quick reply!

Comment 15 Fedora Update System 2021-03-15 20:11:08 UTC
FEDORA-EPEL-2021-1bcc4b39f4 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-1bcc4b39f4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2021-04-01 02:43:46 UTC
FEDORA-EPEL-2021-1bcc4b39f4 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.