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 1222596

Summary: postgresql-jdbc should depend on java-headless instead of java
Product: Red Hat Enterprise Linux 7 Reporter: etienne.dysli-metref
Component: postgresql-jdbcAssignee: Pavel Raiskup <praiskup>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.1CC: bgollahe, databases-maint, hhorak, jscotka, toneata, vdanek
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the postgresql-jdbc package depended on the full Java environment, including the desktop support packages. With this update, only the java-headless runtime is required. This optimization will, for example, reduce the size of generated Red Hat Enterprise Linux 7 container images.
Story Points: ---
Clone Of:
: 1572673 (view as bug list) Environment:
Last Closed: 2018-10-30 15:43:32 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: 1572673    

Description etienne.dysli-metref 2015-05-18 15:15:29 UTC
Description of problem:
The package postgresql-jdbc depends on java and that implies installing graphics and sound libraries which are not desired on a server. It should depend on java-headless instead. This is already the case in Fedora for the same version, see #1068494.

Version-Release number of selected component (if applicable):
$ repoquery --plugins --info postgresql-jdbc
Name        : postgresql-jdbc
Version     : 9.2.1002
Release     : 5.el7
Architecture: noarch
Size        : 572152
Packager    : None
Group       : Applications/Databases 
URL         : None
Repository  : rhel-x86_64-server-7
Summary     : JDBC driver for PostgreSQL
Source      : postgresql-jdbc-9.2.1002-5.el7.src.rpm
[...]
$ repoquery --plugins --requires postgresql-jdbc
java
jpackage-utils

How reproducible:
always

Steps to Reproduce:
1. yum install java-1.7.0-openjdk-headless
2. yum install postgresql-jdbc

Actual results:
java-1.8.0-openjdk and all its dependencies get pulled in

Expected results:
no additional dependencies to install

Comment 2 Pavel Raiskup 2017-07-12 14:17:47 UTC
Thanks for the report.  This is valid optimization request, though it has
not enough priority yet.

If this issue is critical or in any way time sensitive, please raise a ticket
through your regular Red Hat support channels to make certain  it receives the
proper attention and prioritization to assure a timely resolution.

For information on how to contact the Red Hat production support team, please
visit:

https://www.redhat.com/support/process/production/#howto