Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 904165

Summary: link to cacerts file is broken under RHEL 5.9 (OK on 6.3)
Product: Red Hat Enterprise Linux 5 Reporter: Ian Young <ian>
Component: java-1.7.0-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Zachar <lzachar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.9CC: alau, ksrot, toracat
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-15 09:19:40 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:
Bug Depends On:    
Bug Blocks: 816135    

Description Ian Young 2013-01-25 16:18:46 UTC
Description of problem:

The new (in 5.9) java-1.7.0-openjdk package installs a jre whose bin/security/cacerts is no longer a file but a link to /etc/pki/java/cacerts, which does not exist.

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

java-1.7.0-openjdk-1.7.0.9-2.3.4.el5_9.1

Additional info:

Under 6.3 the same link is present in the bin/security directory, but the destination file is present courtesy of the ca-certificates package.  Unfortunately that package is not available in 5.9.

Comment 1 Ian Young 2013-01-25 19:58:07 UTC
For bin/security, read lib/security throughout.

Sorry, long day...

Comment 2 jiri vanek 2013-01-30 13:23:42 UTC
yap, this is redundant in spec file, should be removed:

  # Install cacerts symlink.
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/cacerts
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security
    RELATIVE=$(%{abs2rel} %{_sysconfdir}/pki/java \
      %{_jvmdir}/%{jredir}/lib/security)
    ln -sf $RELATIVE/cacerts .
  popd

Comment 3 Tomas Hoger 2013-02-06 09:19:09 UTC
*** Bug 850656 has been marked as a duplicate of this bug. ***