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.
DescriptionAndrew John Hughes
2016-02-15 18:06:47 UTC
The RHEL 7 java-1.6.0-openjdk spec file contains a number of dated build dependencies which are no longer required and can cause problems when porting to newer systems (see bug 1190137).
A scratch build [0] was successful with the following changes applied:
@@ -224,17 +226,15 @@ BuildRequires: libXt-devel
BuildRequires: libXtst-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
-BuildRequires: wget
-BuildRequires: xalan-j2
-BuildRequires: xerces-j2
BuildRequires: xorg-x11-proto-devel
-BuildRequires: mercurial
BuildRequires: ant
BuildRequires: libXinerama-devel
BuildRequires: rhino
-BuildRequires: redhat-lsb
+# Provides lsb_release for generating identification
+BuildRequires: redhat-lsb-core
%if %{gcjbootstrap}
BuildRequires: java-1.5.0-gcj-devel
+BuildRequires: libxslt
%else
BuildRequires: java6-1.6.0-devel
%endif
xalan & xerces are no longer used. They were needed at one point for builds with gcj, but this has no longer since been changed upstream to use xsltproc from libxslt. Either way, a gcj build is not possible on RHEL 7 as there is no gcj.
The build shouldn't be downloading from other sources, so mercurial and wget are not required.
The wget removal required a backport of http://icedtea.classpath.org//hg/icedtea6?cmd=changeset;node=e9935e163815 and the addition of --disable-downloading to the configure line:
@@ -385,7 +386,7 @@ export CFLAGS="$CFLAGS -mieee"
./autogen.sh
./configure %{icedteaopt} --with-openjdk-src-zip=%{SOURCE1} \
--with-pkgversion=rhel-%{release}-%{_arch} --enable-pulse-java \
- --with-abs-install-dir=%{_jvmdir}/%{sdkdir} \
+ --with-abs-install-dir=%{_jvmdir}/%{sdkdir} --disable-downloading \
--with-rhino --with-parallel-jobs=$NUM_PROC --disable-lcms2
This is a good idea anyway as it ensures the build won't download its own OpenJDK tarball and is forced to use the one in the RPM sources or fail.
[0] https://brewweb.devel.redhat.com/taskinfo?taskID=10494363
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-2148.html