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.
Bug 1259241 - Missing directories on 32bit after update (causing javac not to be found on path)
Summary: Missing directories on 32bit after update (causing javac not to be found on p...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 6.7
Hardware: i386
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: jiri vanek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1254197
TreeView+ depends on / blocked
 
Reported: 2015-09-02 09:26 UTC by Lukáš Zachar
Modified: 2015-09-09 08:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-09-04 08:07:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Zachar 2015-09-02 09:26:24 UTC
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

Comment 1 Lukáš Zachar 2015-09-02 09:42:55 UTC
Same goes for /usr/lib/jvm/jre-1.8.0-openjdk and java target

Comment 2 jiri vanek 2015-09-02 11:37:58 UTC
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 :(

Comment 4 jiri vanek 2015-09-04 05:53:58 UTC
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.

Comment 6 jiri vanek 2015-09-09 08:59:20 UTC
fixed like c#4


Note You need to log in before you can comment on or make changes to this bug.