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.

Bug 1141123

Summary: broken headless support after update to 2.5
Product: Red Hat Enterprise Linux 7 Reporter: jiri vanek <jvanek>
Component: java-1.7.0-openjdkAssignee: jiri vanek <jvanek>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: ahughes, dbhole, isenfeld, jswensso, jvanek, lzachar, myllynen
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-1.7.0-openjdk-1.7.0.91-2.6.2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1281395 (view as bug list) Environment:
Last Closed: 2016-11-03 22:58:08 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: 1281395, 1295396, 1297579, 1313485    

Description jiri vanek 2014-09-12 09:19:34 UTC
The headaless support got broken after update jdk7 to 2.5

Rhel 7.0 shuld be ok, and rhel 6 dont have headless support.

Also jdk8 in rhel 6.6 got this change[1]

This should be fixed in rhel 7.1 at least during October CPU

[1]
 http://brewweb.devel.redhat.com/brew/taskinfo?taskID=7950967

http://pkgs.devel.redhat.com/cgit/rpms/java-1.8.0-openjdk/commit/?h=rhel-6.6&id=3ee74450d32a5be7993f1786bfc65f5fcff10f15


>  > Looks like the problematic lib is jre/lib/amd64/libjavagtk.so (only in icedtea7):
>  >
>  > # ldd libjavagtk.so
>
>
> This is bug. It was added in 2.5.x, and never reached the "exclude list" which separate jdk and jdk
> headless.
>
> Unless there are some objections, I will move this file out of headless.
>


thus fixed:
http://pkgs.fedoraproject.org/cgit/java-1.7.0-openjdk.git/commit/?h=f20&id=1ca42003af06ebbce578c43c36ae5e158019d1d1
=> https://bugzilla.redhat.com/show_bug.cgi?id=1125557
>  >      linux-vdso.so.1 =>  (0x00007fffa57fc000)
>  >      libX11.so.6 => not found
>  >      libgtk-x11-2.0.so.0 => not found
>  >      libgdk-x11-2.0.so.0 => not found
>  >      libatk-1.0.so.0 => not found
>  >      libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007fc18aad1000)
>  >      libpangoft2-1.0.so.0 => not found
>  >      libpangocairo-1.0.so.0 => not found
>  >      libgdk_pixbuf-2.0.so.0 => not found
>  >      libcairo.so.2 => not found
>  >      libpango-1.0.so.0 => not found
>  >      libfontconfig.so.1 => not found
>  >      libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fc18a880000)
>  >      libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fc18a5db000)
>  >      libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007fc18a3d8000)
>  >      libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fc18a0af000)
>  >      libjava.so => not found
>  >      libjvm.so => not found
>  >      libc.so.6 => /lib64/libc.so.6 (0x00007fc189ced000)
>  >      libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc189ad1000)
>  >      libffi.so.6 => /lib64/libffi.so.6 (0x00007fc1898c8000)
>  >      libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00007fc1896c4000)
>  >      libdl.so.2 => /lib64/libdl.so.2 (0x00007fc1894c0000)
>  >      libz.so.1 => /lib64/libz.so.1 (0x00007fc1892a9000)
>  >      libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fc189084000)
>  >      libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fc188e6a000)
>  >      /lib64/ld-linux-x86-64.so.2 (0x00007fc18b041000)
>  >      libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fc188c08000)
>  >      liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fc1889e3000)
>  >
>  >
>  > And libX11 is dragged by policytool (for both java7 and 8):
>
> Ouch this is unhappy.
>
> Question -  are those deps worthy to fix?
>
> If so - the policytool binary have copy both in devel an jre-headless in both 7 and 8
> In 7 we have desktop file in devel, whether in 8 we have desktop file in jre (non headless)
>
> So if it si worthy to fix it, then for 8, I will move this file out of headless, and in 7 I will
> remove it from it completely.
>
> thoughts?
>
>  >
>  > # ldd policytool
>  >      linux-vdso.so.1 =>  (0x00007fff66bfe000)
>  >      libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5f6d568000)
>  >      libz.so.1 => /lib64/libz.so.1 (0x00007f5f6d351000)
>  >      libX11.so.6 => not found
>  >      libjli.so => /root/unpacked8/bin/./../lib/amd64/jli/libjli.so (0x00007f5f6d143000)
>  >      libdl.so.2 => /lib64/libdl.so.2 (0x00007f5f6cf3e000)
>  >      libc.so.6 => /lib64/libc.so.6 (0x00007f5f6cb7d000)
>  >      /lib64/ld-linux-x86-64.so.2 (0x00007f5f6d78a000)
>  >
>  >
>
> On 09/10/2014 03:01 PM, Stanislav Baiduzhyi wrote:
>> === 1.7.0.65-2.5.1.7.el7 ===
>>
>> Icedtea7 2.5.x headless should not depend on X11, atk, cairo, gdk, gtk, and all variants of pango:
>>
>> # rpm -Uhv java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.7.el7.x86_64.rpm
>> error: Failed dependencies:
>>          jpackage-utils >= 1.7.3-1jpp.2 is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          lcms2 >= 2.5 is needed by java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libX11.so.6()(64bit) is needed by java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libatk-1.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libcairo.so.2()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libcups.so.2()(64bit) is needed by java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libfontconfig.so.1()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libgdk-x11-2.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libgdk_pixbuf-2.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libgtk-x11-2.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libjpeg = 6b is needed by java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libjpeg.so.62()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libjpeg.so.62(LIBJPEG_6.2)(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          liblcms2.so.2()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libpango-1.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libpangocairo-1.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          libpangoft2-1.0.so.0()(64bit) is needed by
>> java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>          tzdata-java is needed by java-1.7.0-openjdk-headless-1:1.7.0.65-2.5.1.7.el7.x86_64
>>
>>
>>
>> === 1.8.0.20-3.b26.el7 ===
>>
>> OpenJDK 8 headless should not depend on X11:
>>


and this one like
http://pkgs.fedoraproject.org/cgit/java-1.8.0-openjdk.git/commit/?h=f21&id=02ac2fb08e5209dd5c6996f96f85160d88e5bb2e
http://pkgs.fedoraproject.org/cgit/java-1.8.0-openjdk.git/commit/?id=166338985640665e59a06f0fc1d62489aeb38ac9

=>
http://koji.fedoraproject.org/koji/taskinfo?taskID=7567825
http://koji.fedoraproject.org/koji/taskinfo?taskID=7567845



>> # rpm -Uhv java-1.8.0-openjdk-headless-1.8.0.20-3.b26.el7.x86_64.rpm
>> error: Failed dependencies:
>>          jpackage-utils is needed by java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>          libX11.so.6()(64bit) is needed by java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>          libjpeg.so.62()(64bit) is needed by java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>          libjpeg.so.62(LIBJPEG_6.2)(64bit) is needed by
>> java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>          liblcms2.so.2()(64bit) is needed by java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>          tzdata-java is needed by java-1.8.0-openjdk-headless-0:1.8.0.20-3.b26.el7.x86_64
>>
>

Comment 3 jiri vanek 2015-11-12 11:19:41 UTC
HI guys, this bite again. We should fix it. can you please ack?
Then it shold be backported to 6.8 too...

Comment 4 jiri vanek 2015-11-12 11:20:11 UTC
HI guys, this bite again. We should fix it. can you please ack?
Then it shold be backported to 6.8 too...


note - jdk8 is ok from point of view of this bug.

Comment 7 Andrew John Hughes 2015-11-13 16:42:30 UTC
Trying to work out what this is. Is this an OpenJDK issue or packaging related?

Comment 8 jiri vanek 2015-11-13 20:10:39 UTC
(In reply to Andrew John Hughes from comment #7)
> Trying to work out what this is. Is this an OpenJDK issue or packaging
> related?

Hi Andrew!
Purely related thing. In 2.5+ so library was added. It have to be manually moved to headless list. It was fixed immediately after 2.5 was released, jdk7 in fedora eoled before it made it to rhel. he rest is acks story.

Comment 11 Andrew John Hughes 2016-02-15 08:19:44 UTC
Seems to have been applied as changes show up in rpmdiff.

Comment 15 errata-xmlrpc 2016-11-03 22:58:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2140.html