#
# TODO:
-# - fix BuildRequires
-# - fix build with system giflib
# - use other system libs (libsctp?)
-# - build alternative VM for x32
# - include icedtea-sound?
-# - port PLD-specific changes from icedtea7?
+# - consider zeroshark (LLVM-based JIT) for x32
%bcond_with bootstrap # build a bootstrap version, using icedtea6
%bcond_without cacerts # don't include the default CA certificates
Patch5: system-libpng.patch
Patch6: system-lcms.patch
Patch7: system-pcsclite.patch
+Patch8: x32.patch
+Patch9: current_stack_pointer.patch
URL: http://openjdk.java.net/
BuildRequires: /usr/bin/jar
BuildRequires: alsa-lib-devel
BuildRequires: cups-devel
BuildRequires: freetype-devel >= 2.3
BuildRequires: gawk
-#BuildRequires: giflib-devel >= 5.1
+BuildRequires: giflib-devel >= 5.1
BuildRequires: glibc-misc
%{?buildrequires_jdk}
BuildRequires: lcms2-devel
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
+%patch9 -p1
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.
fi
cd common/autoconf
+rm generated-configure.sh
%{__autoconf} -o generated-configure.sh
cd ../..
# disable-debug-symbols so openjdk debuginfo handling won't conflict with ours
%configure \
+%ifarch x32
+ --with-jvm-variants=zero \
+%endif
--with-extra-cflags="%{rpmcflags}" \
--with-extra-cxxflags="%{rpmcxxflags}" \
--with-extra-ldflags="%{rpmldflags}" \
--disable-debug-symbols \
- --with-giflib=bundled \
+ --with-giflib=system \
--with-libjpeg=system \
--with-libpng=system \
--with-lcms=system \
%{jredir}/lib/cmm
%{jredir}/lib/ext
%dir %{jredir}/lib/%{jre_arch}
-%ifnarch %{x8664} x32
-%dir %{jredir}/lib/%{jre_arch}/client
-%{jredir}/lib/%{jre_arch}/client/Xusage.txt
-%attr(755,root,root) %{jredir}/lib/%{jre_arch}/client/*.so
-%endif
%dir %{jredir}/lib/%{jre_arch}/jli
%attr(755,root,root) %{jredir}/lib/%{jre_arch}/jli/*.so
%dir %{jredir}/lib/%{jre_arch}/server