|
@@ -6,10 +6,7 @@
|
|
# If debug is 1, OpenJDK is built with all debug info present.
|
|
# If debug is 1, OpenJDK is built with all debug info present.
|
|
%global debug 0
|
|
%global debug 0
|
|
|
|
|
|
-# If runtests is 0 test suites will not be run.
|
|
+%global icedtea_version 2.3.8
|
|
-%global runtests 0
|
|
|
|
-
|
|
|
|
-%global icedtea_version 2.2.1
|
|
|
|
%global hg_tag icedtea-{icedtea_version}
|
|
%global hg_tag icedtea-{icedtea_version}
|
|
|
|
|
|
%global accessmajorver 1.23
|
|
%global accessmajorver 1.23
|
|
@@ -17,7 +14,6 @@
|
|
%global accessver %{accessmajorver}.%{accessminorver}
|
|
%global accessver %{accessmajorver}.%{accessminorver}
|
|
%global accessurl http://ftp.gnome.org/pub/GNOME/sources/java-access-bridge/
|
|
%global accessurl http://ftp.gnome.org/pub/GNOME/sources/java-access-bridge/
|
|
|
|
|
|
-%global mauvedate 2008-10-22
|
|
|
|
|
|
|
|
%global multilib_arches ppc64 sparc64 x86_64
|
|
%global multilib_arches ppc64 sparc64 x86_64
|
|
|
|
|
|
@@ -110,9 +106,9 @@
|
|
|
|
|
|
# Standard JPackage naming and versioning defines.
|
|
# Standard JPackage naming and versioning defines.
|
|
%global origin openjdk
|
|
%global origin openjdk
|
|
-%global buildver 5
|
|
+%global buildver 9
|
|
-# Keep priority on 5digits in case buildver>9
|
|
+# Keep priority on 6digits in case buildver>9
|
|
-%global priority 1700%{buildver}
|
|
+%global priority 17000%{buildver}
|
|
%global javaver 1.7.0
|
|
%global javaver 1.7.0
|
|
|
|
|
|
# Standard JPackage directories and symbolic links.
|
|
# Standard JPackage directories and symbolic links.
|
|
@@ -164,7 +160,7 @@ URL: http://openjdk.java.net/
|
|
#head
|
|
#head
|
|
#REPO=http://icedtea.classpath.org/hg/icedtea7-forest
|
|
#REPO=http://icedtea.classpath.org/hg/icedtea7-forest
|
|
#current release
|
|
#current release
|
|
-#REPO=http://icedtea.classpath.org/hg/release/icedtea7-forest-2.2
|
|
+#REPO=http://icedtea.classpath.org/hg/release/icedtea7-forest-2.3
|
|
# hg clone $REPO/ openjdk -r %{hg_tag}
|
|
# hg clone $REPO/ openjdk -r %{hg_tag}
|
|
# hg clone $REPO/corba/ openjdk/corba -r %{hg_tag}
|
|
# hg clone $REPO/corba/ openjdk/corba -r %{hg_tag}
|
|
# hg clone $REPO/hotspot/ openjdk/hotspot -r %{hg_tag}
|
|
# hg clone $REPO/hotspot/ openjdk/hotspot -r %{hg_tag}
|
|
@@ -183,46 +179,41 @@ Source1: %{accessurl}%{accessmajorver}/java-access-bridge-%{accessver}.tar.bz2
|
|
# README file
|
|
# README file
|
|
Source2: README.src
|
|
Source2: README.src
|
|
|
|
|
|
-# Mauve test suite
|
|
|
|
-# FIXME: Is this applicable for 7?
|
|
|
|
-Source3: mauve-%{mauvedate}.tar.gz
|
|
|
|
-Source4: mauve_tests
|
|
|
|
-
|
|
|
|
# javac wrapper (used during bootstrap to strip what ecj doesn't support)
|
|
# javac wrapper (used during bootstrap to strip what ecj doesn't support)
|
|
-Source5: javac-wrapper
|
|
+Source3: javac-wrapper
|
|
|
|
|
|
# Auto-generated files (used only in bootstrap)
|
|
# Auto-generated files (used only in bootstrap)
|
|
# To reproduce:
|
|
# To reproduce:
|
|
# build OpenJDK7 tarball above with any JDK
|
|
# build OpenJDK7 tarball above with any JDK
|
|
# mv generated.build generated
|
|
# mv generated.build generated
|
|
# tar czf generated-files.tar.gz generated
|
|
# tar czf generated-files.tar.gz generated
|
|
-Source6: generated-files.tar.gz
|
|
+Source4: generated-files.tar.gz
|
|
|
|
|
|
# Class rewrite to rewrite rhino hierarchy
|
|
# Class rewrite to rewrite rhino hierarchy
|
|
-Source7: class-rewriter.tar.gz
|
|
+Source5: class-rewriter.tar.gz
|
|
|
|
|
|
# Systemtap tapsets. Zipped up to keep it small.
|
|
# Systemtap tapsets. Zipped up to keep it small.
|
|
-Source8: systemtap-tapset.tar.gz
|
|
+Source6: systemtap-tapset.tar.gz
|
|
|
|
|
|
# .desktop files. Zipped up to keep it small.
|
|
# .desktop files. Zipped up to keep it small.
|
|
-Source9: desktop-files.tar.gz
|
|
+Source7: desktop-files.tar.gz
|
|
|
|
|
|
# nss configuration file
|
|
# nss configuration file
|
|
-Source10: nss.cfg
|
|
+Source8: nss.cfg
|
|
|
|
|
|
# FIXME: Taken from IcedTea snapshot 877ad5f00f69, but needs to be moved out
|
|
# FIXME: Taken from IcedTea snapshot 877ad5f00f69, but needs to be moved out
|
|
# hg clone -r 877ad5f00f69 http://icedtea.classpath.org/hg/icedtea7
|
|
# hg clone -r 877ad5f00f69 http://icedtea.classpath.org/hg/icedtea7
|
|
-Source11: pulseaudio.tar.gz
|
|
+Source9: pulseaudio.tar.gz
|
|
|
|
|
|
# Removed libraries that we link instead
|
|
# Removed libraries that we link instead
|
|
-Source12: remove-intree-libraries.sh
|
|
+Source10: remove-intree-libraries.sh
|
|
|
|
|
|
# For primary arches, build latest and for secondary, use hs22
|
|
# For primary arches, build latest and for secondary, use hs22
|
|
# base (icedtea-2.2.1 tag)
|
|
# base (icedtea-2.2.1 tag)
|
|
|
|
|
|
# http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1
|
|
# http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1
|
|
-# hg tag: icedtea-2.1.1
|
|
+# hg tag: icedtea-2.1.6
|
|
-Source100: openjdk-icedtea-2.1.1.tar.gz
|
|
+Source100: openjdk-icedtea-2.1.6.tar.gz
|
|
|
|
|
|
# RPM/distribution specific patches
|
|
# RPM/distribution specific patches
|
|
|
|
|
|
@@ -262,6 +253,8 @@ Patch103: %{name}-arm-fixes.patch
|
|
Patch104: %{name}-ppc-zero-jdk.patch
|
|
Patch104: %{name}-ppc-zero-jdk.patch
|
|
Patch105: %{name}-ppc-zero-hotspot.patch
|
|
Patch105: %{name}-ppc-zero-hotspot.patch
|
|
|
|
|
|
|
|
+Patch106: %{name}-freetype-check-fix.patch
|
|
|
|
+
|
|
#
|
|
#
|
|
# Bootstrap patches (code with this is never shipped)
|
|
# Bootstrap patches (code with this is never shipped)
|
|
#
|
|
#
|
|
@@ -424,13 +417,7 @@ BuildRequires: java-1.5.0-gcj-devel
|
|
%else
|
|
%else
|
|
BuildRequires: java-devel >= 1.6.0
|
|
BuildRequires: java-devel >= 1.6.0
|
|
%endif
|
|
%endif
|
|
-# Mauve build requirements.
|
|
|
|
-BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
-BuildRequires: xorg-x11-fonts-Type1
|
|
|
|
-BuildRequires: xorg-x11-fonts-misc
|
|
|
|
-BuildRequires: freetype2-devel >= 2.3.0
|
|
|
|
BuildRequires: fontconfig
|
|
BuildRequires: fontconfig
|
|
-BuildRequires: ecj
|
|
|
|
# Java Access Bridge for GNOME build requirements.
|
|
# Java Access Bridge for GNOME build requirements.
|
|
BuildRequires: at-spi-devel
|
|
BuildRequires: at-spi-devel
|
|
BuildRequires: gawk
|
|
BuildRequires: gawk
|
|
@@ -577,10 +564,8 @@ The OpenJDK API documentation.
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%setup -q -c -n %{name} -T -a %{source_num}
|
|
%setup -q -c -n %{name} -T -a %{source_num}
|
|
-%setup -q -n %{name} -T -D -a 3
|
|
|
|
%setup -q -n %{name} -T -D -a 1
|
|
%setup -q -n %{name} -T -D -a 1
|
|
cp %{SOURCE2} .
|
|
cp %{SOURCE2} .
|
|
-cp %{SOURCE4} .
|
|
|
|
|
|
|
|
# OpenJDK patches
|
|
# OpenJDK patches
|
|
|
|
|
|
@@ -602,21 +587,21 @@ cp %{SOURCE4} .
|
|
%endif
|
|
%endif
|
|
|
|
|
|
# Remove libraries that are linked
|
|
# Remove libraries that are linked
|
|
-sh %{SOURCE12}
|
|
+sh %{SOURCE10}
|
|
|
|
|
|
# Copy jaxp, jaf and jaxws drops
|
|
# Copy jaxp, jaf and jaxws drops
|
|
mkdir drops/
|
|
mkdir drops/
|
|
|
|
|
|
# Extract the generated files
|
|
# Extract the generated files
|
|
-tar xzf %{SOURCE6}
|
|
+tar xzf %{SOURCE4}
|
|
|
|
|
|
# Extract the rewriter (to rewrite rhino classes)
|
|
# Extract the rewriter (to rewrite rhino classes)
|
|
-tar xzf %{SOURCE7}
|
|
+tar xzf %{SOURCE5}
|
|
|
|
|
|
# Extract systemtap tapsets
|
|
# Extract systemtap tapsets
|
|
%if %{with_systemtap}
|
|
%if %{with_systemtap}
|
|
|
|
|
|
-tar xzf %{SOURCE8}
|
|
+tar xzf %{SOURCE6}
|
|
|
|
|
|
for file in tapset/*.in; do
|
|
for file in tapset/*.in; do
|
|
|
|
|
|
@@ -632,11 +617,11 @@ done
|
|
|
|
|
|
# Pulseaudio
|
|
# Pulseaudio
|
|
%if %{with_pulseaudio}
|
|
%if %{with_pulseaudio}
|
|
-tar xzf %{SOURCE11}
|
|
+tar xzf %{SOURCE9}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
# Extract desktop files
|
|
# Extract desktop files
|
|
-tar xzf %{SOURCE9}
|
|
+tar xzf %{SOURCE7}
|
|
|
|
|
|
# If bootstrapping, apply additional patches
|
|
# If bootstrapping, apply additional patches
|
|
%if %{gcjbootstrap}
|
|
%if %{gcjbootstrap}
|
|
@@ -716,6 +701,8 @@ patch -l -p0 < %{PATCH102}
|
|
patch -l -p0 < %{PATCH103}
|
|
patch -l -p0 < %{PATCH103}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+patch -l -p0 < %{PATCH106}
|
|
|
|
+
|
|
%ifarch ppc ppc64
|
|
%ifarch ppc ppc64
|
|
# PPC fixes
|
|
# PPC fixes
|
|
patch -l -p0 < %{PATCH104}
|
|
patch -l -p0 < %{PATCH104}
|
|
@@ -765,8 +752,8 @@ mkdir -p bootstrap/boot
|
|
cp -aL %{_jvmdir}/java-gcj/* bootstrap/boot/ || : # broken symlinks can be non-fatal but may cause this to fail
|
|
cp -aL %{_jvmdir}/java-gcj/* bootstrap/boot/ || : # broken symlinks can be non-fatal but may cause this to fail
|
|
|
|
|
|
# Replace javac with a wrapper that does some magic
|
|
# Replace javac with a wrapper that does some magic
|
|
-cp -af %{SOURCE5} bootstrap/boot/bin/javac
|
|
+cp -af %{SOURCE3} bootstrap/boot/bin/javac
|
|
-chmod u+x bootstrap/boot/bin/javac # SOURCE5 may not be +x
|
|
+chmod u+x bootstrap/boot/bin/javac # SOURCE3 may not be +x
|
|
sed -i -e s:@RT_JAR@:$PWD/bootstrap/boot/jre/lib/rt.jar:g bootstrap/boot/bin/javac
|
|
sed -i -e s:@RT_JAR@:$PWD/bootstrap/boot/jre/lib/rt.jar:g bootstrap/boot/bin/javac
|
|
|
|
|
|
# Link the native2ascii binary
|
|
# Link the native2ascii binary
|
|
@@ -870,8 +857,8 @@ umask $oldumask
|
|
|
|
|
|
make \
|
|
make \
|
|
ANT="/usr/bin/ant" \
|
|
ANT="/usr/bin/ant" \
|
|
- DISTRO_NAME="Fedora" \
|
|
+ DISTRO_NAME="Vine Linux" \
|
|
- DISTRO_PACKAGE_VERSION="fedora-%{release}-%{_arch}" \
|
|
+ DISTRO_PACKAGE_VERSION="vine-%{release}-%{_arch}" \
|
|
%ifarch %{jit_arches}
|
|
%ifarch %{jit_arches}
|
|
JDK_UPDATE_VERSION=`printf "%02d" %{buildver}` \
|
|
JDK_UPDATE_VERSION=`printf "%02d" %{buildver}` \
|
|
%else
|
|
%else
|
|
@@ -886,6 +873,7 @@ make \
|
|
FT2_LIBS="-lfreetype " \
|
|
FT2_LIBS="-lfreetype " \
|
|
DEBUG_CLASSFILES="true" \
|
|
DEBUG_CLASSFILES="true" \
|
|
DEBUG_BINARIES="true" \
|
|
DEBUG_BINARIES="true" \
|
|
|
|
+ STRIP_POLICY="no_strip" \
|
|
ALT_STRIP_POLICY="no_strip" \
|
|
ALT_STRIP_POLICY="no_strip" \
|
|
%ifnarch %{jit_arches}
|
|
%ifnarch %{jit_arches}
|
|
LIBFFI_CFLAGS="`pkg-config --cflags libffi` " \
|
|
LIBFFI_CFLAGS="`pkg-config --cflags libffi` " \
|
|
@@ -903,6 +891,10 @@ make \
|
|
|
|
|
|
popd >& /dev/null
|
|
popd >& /dev/null
|
|
|
|
|
|
|
|
+%ifarch %{jit_arches}
|
|
|
|
+chmod 644 $(pwd)/%{buildoutputdir}/j2sdk-image/lib/sa-jdi.jar
|
|
|
|
+%endif
|
|
|
|
+
|
|
export JAVA_HOME=$(pwd)/%{buildoutputdir}/j2sdk-image
|
|
export JAVA_HOME=$(pwd)/%{buildoutputdir}/j2sdk-image
|
|
|
|
|
|
# Build pulseaudio and install it to JDK build location
|
|
# Build pulseaudio and install it to JDK build location
|
|
@@ -931,43 +923,16 @@ popd
|
|
# Copy tz.properties
|
|
# Copy tz.properties
|
|
echo "sun.zoneinfo.dir=/usr/share/javazi" >> $JAVA_HOME/jre/lib/tz.properties
|
|
echo "sun.zoneinfo.dir=/usr/share/javazi" >> $JAVA_HOME/jre/lib/tz.properties
|
|
|
|
|
|
-%if %{runtests}
|
|
|
|
-# Run jtreg test suite.
|
|
|
|
-{
|
|
|
|
- echo ====================JTREG TESTING========================
|
|
|
|
- export DISPLAY=:20
|
|
|
|
- Xvfb :20 -screen 0 1x1x24 -ac&
|
|
|
|
- echo $! > Xvfb.pid
|
|
|
|
- make jtregcheck -k
|
|
|
|
- kill -9 `cat Xvfb.pid`
|
|
|
|
- unset DISPLAY
|
|
|
|
- rm -f Xvfb.pid
|
|
|
|
- echo ====================JTREG TESTING END====================
|
|
|
|
-} || :
|
|
|
|
-
|
|
|
|
-# Run Mauve test suite.
|
|
|
|
-{
|
|
|
|
- pushd mauve-%{mauvedate}
|
|
|
|
- ./configure
|
|
|
|
- make
|
|
|
|
- echo ====================MAUVE TESTING========================
|
|
|
|
- export DISPLAY=:20
|
|
|
|
- Xvfb :20 -screen 0 1x1x24 -ac&
|
|
|
|
- echo $! > Xvfb.pid
|
|
|
|
- $JAVA_HOME/bin/java Harness -vm $JAVA_HOME/bin/java \
|
|
|
|
- -file %{SOURCE4} -timeout 30000 2>&1 | tee mauve_output
|
|
|
|
- kill -9 `cat Xvfb.pid`
|
|
|
|
- unset DISPLAY
|
|
|
|
- rm -f Xvfb.pid
|
|
|
|
- echo ====================MAUVE TESTING END====================
|
|
|
|
- popd
|
|
|
|
-} || :
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
STRIP_KEEP_SYMTAB=libjvm*
|
|
STRIP_KEEP_SYMTAB=libjvm*
|
|
|
|
|
|
|
|
+# Install symlink to default soundfont
|
|
|
|
+install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/audio
|
|
|
|
+pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/audio
|
|
|
|
+ln -s %{_datadir}/soundfonts/default.sf2
|
|
|
|
+popd
|
|
|
|
+
|
|
pushd %{buildoutputdir}/j2sdk-image
|
|
pushd %{buildoutputdir}/j2sdk-image
|
|
|
|
|
|
# Install main files.
|
|
# Install main files.
|
|
@@ -1057,7 +1022,7 @@ popd
|
|
|
|
|
|
|
|
|
|
# Install nss.cfg
|
|
# Install nss.cfg
|
|
-install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/
|
|
+install -m 644 %{SOURCE8} $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/
|
|
|
|
|
|
|
|
|
|
# Install Javadoc documentation.
|
|
# Install Javadoc documentation.
|
|
@@ -1195,11 +1160,13 @@ alternatives \
|
|
--slave %{_bindir}/appletviewer appletviewer %{sdkbindir}/appletviewer \
|
|
--slave %{_bindir}/appletviewer appletviewer %{sdkbindir}/appletviewer \
|
|
--slave %{_bindir}/apt apt %{sdkbindir}/apt \
|
|
--slave %{_bindir}/apt apt %{sdkbindir}/apt \
|
|
--slave %{_bindir}/extcheck extcheck %{sdkbindir}/extcheck \
|
|
--slave %{_bindir}/extcheck extcheck %{sdkbindir}/extcheck \
|
|
|
|
+ --slave %{_bindir}/idlj idlj %{sdkbindir}/idlj \
|
|
--slave %{_bindir}/jar jar %{sdkbindir}/jar \
|
|
--slave %{_bindir}/jar jar %{sdkbindir}/jar \
|
|
--slave %{_bindir}/jarsigner jarsigner %{sdkbindir}/jarsigner \
|
|
--slave %{_bindir}/jarsigner jarsigner %{sdkbindir}/jarsigner \
|
|
--slave %{_bindir}/javadoc javadoc %{sdkbindir}/javadoc \
|
|
--slave %{_bindir}/javadoc javadoc %{sdkbindir}/javadoc \
|
|
--slave %{_bindir}/javah javah %{sdkbindir}/javah \
|
|
--slave %{_bindir}/javah javah %{sdkbindir}/javah \
|
|
--slave %{_bindir}/javap javap %{sdkbindir}/javap \
|
|
--slave %{_bindir}/javap javap %{sdkbindir}/javap \
|
|
|
|
+ --slave %{_bindir}/jcmd jcmd %{sdkbindir}/jcmd \
|
|
--slave %{_bindir}/jconsole jconsole %{sdkbindir}/jconsole \
|
|
--slave %{_bindir}/jconsole jconsole %{sdkbindir}/jconsole \
|
|
--slave %{_bindir}/jdb jdb %{sdkbindir}/jdb \
|
|
--slave %{_bindir}/jdb jdb %{sdkbindir}/jdb \
|
|
--slave %{_bindir}/jhat jhat %{sdkbindir}/jhat \
|
|
--slave %{_bindir}/jhat jhat %{sdkbindir}/jhat \
|
|
@@ -1342,6 +1309,8 @@ exit 0
|
|
%{_mandir}/man1/tnameserv-%{name}.1*
|
|
%{_mandir}/man1/tnameserv-%{name}.1*
|
|
%{_mandir}/man1/unpack200-%{name}.1*
|
|
%{_mandir}/man1/unpack200-%{name}.1*
|
|
%{_jvmdir}/%{jredir}/lib/security/nss.cfg
|
|
%{_jvmdir}/%{jredir}/lib/security/nss.cfg
|
|
|
|
+%{_jvmdir}/%{jredir}/lib/audio/
|
|
|
|
+
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -1408,12 +1377,6 @@ exit 0
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc README.src
|
|
%doc README.src
|
|
%{_jvmdir}/%{sdkdir}/src.zip
|
|
%{_jvmdir}/%{sdkdir}/src.zip
|
|
-%if %{runtests}
|
|
|
|
-# FIXME: put these in a separate testresults subpackage.
|
|
|
|
-%doc mauve_tests
|
|
|
|
-%doc mauve-%{mauvedate}/mauve_output
|
|
|
|
-%doc test/jtreg-summary.log
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%files javadoc
|
|
%files javadoc
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -1421,6 +1384,9 @@ exit 0
|
|
%doc %{buildoutputdir}/j2sdk-image/jre/LICENSE
|
|
%doc %{buildoutputdir}/j2sdk-image/jre/LICENSE
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Mar 12 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.0.9-2.3.8.1
|
|
|
|
+- update to icedtea7 2.3.8
|
|
|
|
+
|
|
* Sun Jul 22 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.0.5-2.2.1.1
|
|
* Sun Jul 22 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.0.5-2.2.1.1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|
|
|
|
|