Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
On upgrade
from java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7.i686
to java-1.8.0-openjdk-1.8.0.51-2.b16.el6_7.i686
there are few missing directories (rpm -Va java-1.8.0-openjdk\*):
missing /usr/lib/jvm/jre-1.8.0-openjdk
missing /usr/lib/jvm-exports/java-1.8.0-openjdk
missing /usr/lib/jvm/java-1.8.0-openjdk
What makes is troublesome is the fact, that javac target link (in alternatives) is
/usr/lib/jvm/java-1.8.0-openjdk/bin/javac and as
/usr/lib/jvm/java-1.8.0-openjdk does not exist it causes
-bash: /usr/bin/javac: No such file or directory
Steps to Reproduce:
1. install java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7
2. update to new version
3. rpm -Va java-1.8.0-openjdk\*
Actual results:
missing directories
Expected results:
all set
Additional info:
This is problem only on 32bit
Well, crap.
Part of the fix of 1254197 was :
* changing some alternatives-controlled links to hardcoded links
* inistead of %{_arch} in names use ifarch %32b ... someName... %else ..someName_x86_64.. %endif
The second is causing why you are seeing it on 32b system only. The links in rhel7-like naming are arch-less
The first is.. well crap.
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Scriptlet_Ordering
original udpated package created links based on alternatives (created in pre and removed in post)
new updating package will replace those links by hardcoded values (in install)
And pre of uninstalled package is happening after innstall.
So removal of original package removes the hardcoded links in post.
Only slution in my mind is to recreate them in posttrans :(
One more idea. The origianl issue (1217177) was reported agains 64b java only.
So nobody cares about 32b? If so, then instead of ifarch ... else.... I would really go with name{arch}.
This will keep 1217177 fixed, will cause little bit inconsistent name on 32, but will remove need of posttrans.