Hide Forgot
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