Bug 1130800

Summary: Broken symlink to /usr/share/javazi-1.8/tzdb.dat
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: java-1.8.0-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jvanek, omajid, orion
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-02 06:35:20 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 Richard W.M. Jones 2014-08-17 21:24:10 UTC
Description of problem:

Upgrading openjdk 1.7 -> 1.8 leaves a broken symlink:

$ ll /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.11-15.b12.fc22.x86_64/jre/lib/tzdb.dat
lrwxrwxrwx. 1 root root 30 Aug 17 22:12 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.11-15.b12.fc22.x86_64/jre/lib/tzdb.dat -> /usr/share/javazi-1.8/tzdb.dat

The target file (/usr/share/javazi-1.8/tzdb.dat) does not exist.

You have to manually install tzdata-java in order to get this file.

This suggests that openjdk needs a versioned Requires, something like:

Requires: tzdata-java >= 2014f-1

or perhaps more directly:

Requires: /usr/share/javazi-1.8/tzdb.dat

Version-Release number of selected component (if applicable):

java-1.8.0-openjdk-1.8.0.11-15.b12.fc22.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Have openjdk 1.7 installed.
2. Upgrade using yum to 1.8.

Comment 1 Richard W.M. Jones 2014-08-17 21:25:47 UTC
(In reply to Richard W.M. Jones from comment #0)
> Description of problem:
[...]
> You have to manually install tzdata-java in order to get this file.

I mean, of course, manually *upgrade*.

tzdata-java is already installed and satisfies the dependency,
but because it's the old version it doesn't have this file.

Comment 2 jiri vanek 2014-08-18 10:58:35 UTC
Ok that gave sense.

Comment 3 jiri vanek 2014-08-19 12:19:36 UTC
just note - this adds circular dependence on 
 jdk requires tzdata-java and vice versa.

Comment 4 Richard W.M. Jones 2014-08-19 12:49:25 UTC
(In reply to jiri vanek from comment #3)
> just note - this adds circular dependence on 
>  jdk requires tzdata-java and vice versa.

I'm pretty sure this is fine.  It just means that jdk &
tzdata-java cannot be installed without each other.  yum will
do the right thing.

Comment 5 Orion Poplawski 2014-08-29 15:08:09 UTC
Please use:

Requires: tzdata-java >= 2014f-1

as the file dependency forces a download of the very large filelists metadata.

Comment 6 jiri vanek 2014-09-02 06:35:20 UTC
pushed to f21 and f22.

Comment 7 Richard W.M. Jones 2014-09-04 19:21:23 UTC
Possibly broken in RHEL 7 too:
https://bugzilla.redhat.com/show_bug.cgi?id=1138436