mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
update to jdk-1.5 and related fixes
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3795 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
6a25deb2b6
commit
5f0bab7177
@ -64,7 +64,7 @@ covered at <xref linkend="svnserver"/>.</para>
|
|||||||
<xref linkend="apache"/>,
|
<xref linkend="apache"/>,
|
||||||
<xref linkend="openssh"/> (runtime only),
|
<xref linkend="openssh"/> (runtime only),
|
||||||
<ulink url="http://www.webdav.org/neon/">neon-&svn-neon-version;</ulink>,
|
<ulink url="http://www.webdav.org/neon/">neon-&svn-neon-version;</ulink>,
|
||||||
<xref linkend="j2sdk"/> (to build the <application>JAVA</application>
|
<xref linkend="jdk"/> (to build the <application>JAVA</application>
|
||||||
bindings),
|
bindings),
|
||||||
<ulink url="http://www.junit.org/">JUnit</ulink> (for running the
|
<ulink url="http://www.junit.org/">JUnit</ulink> (for running the
|
||||||
<application>JAVA</application> bindings test suite and requires
|
<application>JAVA</application> bindings test suite and requires
|
||||||
|
@ -135,8 +135,8 @@
|
|||||||
<!ENTITY gcc-version "3.4.3">
|
<!ENTITY gcc-version "3.4.3">
|
||||||
<!ENTITY gcc3-version "3.3.4">
|
<!ENTITY gcc3-version "3.3.4">
|
||||||
<!ENTITY guile-version "1.6.7">
|
<!ENTITY guile-version "1.6.7">
|
||||||
<!ENTITY j2sdk-bin-version "1.4.2_07">
|
<!ENTITY jdk-bin-version "1.5.0_02">
|
||||||
<!ENTITY j2sdk-src-version "1.4.2">
|
<!ENTITY jdk-src-version "1.5.0">
|
||||||
<!ENTITY librep-version "0.17">
|
<!ENTITY librep-version "0.17">
|
||||||
<!ENTITY NASM-version "0.98.39">
|
<!ENTITY NASM-version "0.98.39">
|
||||||
<!ENTITY pdl-version "2.4.2">
|
<!ENTITY pdl-version "2.4.2">
|
||||||
|
@ -54,7 +54,7 @@ url="&patch-root;/pilot-link-&pilot-link-version;-bindings_fix-1.patch"/></para>
|
|||||||
<sect3><title><application>pilot-link</application> dependencies</title>
|
<sect3><title><application>pilot-link</application> dependencies</title>
|
||||||
<sect4><title>Optional</title>
|
<sect4><title>Optional</title>
|
||||||
<para><xref linkend="libpng"/>,
|
<para><xref linkend="libpng"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<xref linkend="tcl"/>,
|
<xref linkend="tcl"/>,
|
||||||
<xref linkend="python"/> and
|
<xref linkend="python"/> and
|
||||||
<ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
|
<ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
|
||||||
|
@ -174,10 +174,10 @@ in the <acronym>LFS</acronym> book
|
|||||||
|
|
||||||
<note><para>Some of the <application>Java</application> programs installed by
|
<note><para>Some of the <application>Java</application> programs installed by
|
||||||
the <application><acronym>GCC</acronym></application> package conflict (have
|
the <application><acronym>GCC</acronym></application> package conflict (have
|
||||||
the same names) with programs from the <xref linkend="j2sdk"/> package. If
|
the same names) with programs from the <xref linkend="jdk"/> package. If
|
||||||
you're installing the <application>Java</application> language from the
|
you're installing the <application>Java</application> language from the
|
||||||
<application><acronym>GCC</acronym></application> package but you wish to
|
<application><acronym>GCC</acronym></application> package but you wish to
|
||||||
use the programs from the <application>J2SDK</application> as the defaults,
|
use the programs from the <application>JDK</application> as the defaults,
|
||||||
ensure <filename class='directory'>$JAVA_HOME/bin</filename> is listed before
|
ensure <filename class='directory'>$JAVA_HOME/bin</filename> is listed before
|
||||||
<filename class='directory'>/usr/bin</filename> in your <envar>PATH</envar>
|
<filename class='directory'>/usr/bin</filename> in your <envar>PATH</envar>
|
||||||
variable after the <application><acronym>GCC</acronym></application>
|
variable after the <application><acronym>GCC</acronym></application>
|
||||||
|
@ -4,32 +4,32 @@
|
|||||||
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
||||||
%general-entities;
|
%general-entities;
|
||||||
|
|
||||||
<!ENTITY j2sdk-download-source "http://www.sun.com/software/communitysource/j2se/java2/download.html">
|
<!ENTITY jdk-download-source "http://java.sun.com/j2se/jrl_download.html">
|
||||||
<!ENTITY j2sdk-download-binary "http://java.sun.com/j2se/1.4.2/download.html">
|
<!ENTITY jdk-download-binary "http://java.sun.com/j2se/1.5.0/download.jsp">
|
||||||
<!ENTITY j2sdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/j2sdk-&j2sdk-src-version;.md5sums">
|
<!ENTITY jdk-source-md5sum "http://anduin.linuxfromscratch.org/sources/BLFS/SVN/I-K/jdk/jdk-&jdk-src-version;.md5sums">
|
||||||
<!ENTITY j2sdk-bin-md5sum "a55a9150977de7d5c7f78d29593a8b8c">
|
<!ENTITY jdk-bin-md5sum "562d9797af801bfbe2b5e44417d8ccc4">
|
||||||
<!ENTITY j2sdk-bin-size "36.4 MB">
|
<!ENTITY jdk-bin-size "45 MB">
|
||||||
<!ENTITY j2sdk-src-size "55.1 MB (three .zip files)">
|
<!ENTITY jdk-src-size "65.7 MB (three .zip files)">
|
||||||
<!ENTITY j2sdk-src-buildsize "1285 MB">
|
<!ENTITY jdk-src-buildsize "1444 MB">
|
||||||
<!ENTITY j2sdk-time "29.57 SBU">
|
<!ENTITY jdk-time "33.06 SBU">
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<sect1 id="j2sdk" xreflabel="J2SDK-&j2sdk-src-version;">
|
<sect1 id="jdk" xreflabel="JDK-&jdk-src-version;">
|
||||||
<sect1info>
|
<sect1info>
|
||||||
<othername>$LastChangedBy$</othername>
|
<othername>$LastChangedBy$</othername>
|
||||||
<date>$Date$</date>
|
<date>$Date$</date>
|
||||||
</sect1info>
|
</sect1info>
|
||||||
<?dbhtml filename="j2sdk.html" ?>
|
<?dbhtml filename="jdk.html" ?>
|
||||||
<title><application>J2<acronym>SDK</acronym></application>-&j2sdk-src-version;</title>
|
<title><application>JDK</application>-&jdk-src-version;</title>
|
||||||
<indexterm zone="j2sdk">
|
<indexterm zone="jdk">
|
||||||
<primary sortas="a-J2SDK">J2SDK</primary>
|
<primary sortas="a-JDK">JDK</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Introduction to
|
<title>Introduction to
|
||||||
<application>J2<acronym>SDK</acronym></application></title>
|
<application>JDK</application></title>
|
||||||
|
|
||||||
<para>The <application>J2<acronym>SDK</acronym></application> package contains
|
<para>The <application>JDK</application> package contains
|
||||||
Sun's <application>Java</application> development environment. This is useful
|
Sun's <application>Java</application> development environment. This is useful
|
||||||
for developing <application>Java</application> programs and provides the
|
for developing <application>Java</application> programs and provides the
|
||||||
runtime environment necessary to run <application>Java</application> programs.
|
runtime environment necessary to run <application>Java</application> programs.
|
||||||
@ -42,111 +42,116 @@ and a source package. Previously, the plugin included in the
|
|||||||
owing to incompatibilities with <acronym>GCC</acronym>-3 compiled browsers.
|
owing to incompatibilities with <acronym>GCC</acronym>-3 compiled browsers.
|
||||||
This is not the case anymore.</para>
|
This is not the case anymore.</para>
|
||||||
|
|
||||||
<para>The source package requires registration at the Sun developer site and
|
<para>In order to use the source code and patches, you must read and agree
|
||||||
accepting the Sun Community Source License. The source code cannot be
|
to the Sun <ulink url="http://java.sun.com/j2se/1.5.0/jrl_5.0-license.txt">
|
||||||
|
Java Research License</ulink>. In addition, the source code cannot be
|
||||||
downloaded from some countries, so for users from those countries, the binary
|
downloaded from some countries, so for users from those countries, the binary
|
||||||
may be the only option.</para>
|
is the only option.</para>
|
||||||
|
|
||||||
<para>Even if you plan on compiling the <acronym>JDK</acronym> source, you will
|
<para>If you plan on compiling the <acronym>JDK</acronym> source, you
|
||||||
need to download the binary version to bootstrap the <acronym>JDK</acronym>
|
will still need to download the binary version to bootstrap the
|
||||||
build. Follow the link below to download both source and binary packages. When
|
<acronym>JDK</acronym> build. You will need to download a total of four
|
||||||
downloading the source (two files required), also download the
|
files to complete the source build:
|
||||||
<application>Mozilla</application> headers package available at the same
|
<filename>jdk-1_5_0_02-linux-i586.bin</filename>;
|
||||||
location. To build from source, you'll end up downloading a total of four
|
<filename>jdk-1_5_0-src-jrl.zip</filename>;
|
||||||
files.</para>
|
<filename>jdk-1_5_0-bin-jrl.zip</filename>;
|
||||||
|
and <filename>jdk-1_5_0-mozilla_headers-unix.zip</filename>.</para>
|
||||||
|
|
||||||
<sect3><title>Package information</title>
|
<sect3><title>Package information</title>
|
||||||
<itemizedlist spacing='compact'>
|
<itemizedlist spacing='compact'>
|
||||||
<listitem><para>Binary download:
|
<listitem><para>Binary download:
|
||||||
<ulink url="&j2sdk-download-binary;"/></para></listitem>
|
<ulink url="&jdk-download-binary;"/></para></listitem>
|
||||||
<listitem><para>Source download:
|
|
||||||
<ulink url="&j2sdk-download-source;"/></para></listitem>
|
|
||||||
<listitem><para>Version used (binary):
|
<listitem><para>Version used (binary):
|
||||||
&j2sdk-bin-version;</para></listitem>
|
&jdk-bin-version;</para></listitem>
|
||||||
<listitem><para>Download MD5 sum (binary):
|
<listitem><para>Download MD5 sum (binary):
|
||||||
&j2sdk-bin-md5sum;</para></listitem>
|
&jdk-bin-md5sum;</para></listitem>
|
||||||
|
<listitem><para>Source download:
|
||||||
|
<ulink url="&jdk-download-source;"/></para></listitem>
|
||||||
<listitem><para>Download MD5 sum (source):
|
<listitem><para>Download MD5 sum (source):
|
||||||
<ulink url="&j2sdk-source-md5sum;"/></para></listitem>
|
<ulink url="&jdk-source-md5sum;"/></para></listitem>
|
||||||
<listitem><para>Download size (binary):
|
<listitem><para>Download size (binary):
|
||||||
&j2sdk-bin-size;</para></listitem>
|
&jdk-bin-size;</para></listitem>
|
||||||
<listitem><para>Download size (source):
|
<listitem><para>Download size (source):
|
||||||
&j2sdk-src-size;</para></listitem>
|
&jdk-src-size;</para></listitem>
|
||||||
<listitem><para>Estimated disk space required:
|
<listitem><para>Estimated disk space required:
|
||||||
&j2sdk-src-buildsize;</para></listitem>
|
&jdk-src-buildsize;</para></listitem>
|
||||||
<listitem><para>Estimated build time:
|
<listitem><para>Estimated build time:
|
||||||
&j2sdk-time;</para></listitem></itemizedlist>
|
&jdk-time;</para></listitem></itemizedlist>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3><title>Additional downloads</title>
|
<sect3><title>Needed Patches</title>
|
||||||
<itemizedlist spacing='compact'>
|
<itemizedlist spacing='compact'>
|
||||||
<listitem><para><ulink
|
<listitem><para><ulink
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-fix_inline_asm-1.patch"/></para>
|
url="&patch-root;/jdk-&jdk-src-version;-gcc_3.4.2+-3.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem><para><ulink
|
<listitem><para><ulink
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-gcc33-1.patch"/></para>
|
url="&patch-root;/jdk-&jdk-src-version;-motif_mkmsgcat-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem><para><ulink
|
<listitem><para><ulink
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-motif_mkmsgcat-1.patch"/></para>
|
url="&patch-root;/jdk-&jdk-src-version;-nptl-1.patch"/></para></listitem>
|
||||||
|
<listitem><para><ulink
|
||||||
|
url="&patch-root;/jdk-&jdk-src-version;-remove_broken_demo-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem><para><ulink
|
<listitem><para><ulink
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-nptl-1.patch"/></para>
|
url="&patch-root;/jdk-&jdk-src-version;-remove_fixed_paths-1.patch"/></para>
|
||||||
</listitem>
|
|
||||||
<listitem><para><ulink
|
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_debug_image-1.patch"/></para>
|
|
||||||
</listitem>
|
|
||||||
<listitem><para><ulink
|
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-remove_fixed_paths-1.patch"/></para>
|
|
||||||
</listitem>
|
|
||||||
<listitem><para><ulink
|
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-static_cxx-1.patch"/></para>
|
|
||||||
</listitem>
|
|
||||||
<listitem><para><ulink
|
|
||||||
url="&patch-root;/j2sdk-&j2sdk-src-version;-ash-1.patch"/>
|
|
||||||
(Only required if /bin/sh is symlinked to <xref linkend="ash"/>)</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3><title><application>J2SDK</application> dependencies</title>
|
<sect3><title>Recommended Patches</title>
|
||||||
<sect4><title>Required (to build <application>J2SDK</application> from
|
<itemizedlist spacing='compact'>
|
||||||
|
<listitem><para><ulink
|
||||||
|
url="&patch-root;/jdk-&jdk-src-version;-remove_debug_image-1.patch"/>
|
||||||
|
(Skips compiling of the <application>JDK</application> debug image)</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem><para><ulink
|
||||||
|
url="&patch-root;/jdk-&jdk-src-version;-static_cxx-1.patch"/>
|
||||||
|
(Forces dynamic linking to gcc libs)</para></listitem>
|
||||||
|
<listitem><para><ulink
|
||||||
|
url="&patch-root;/jdk-&jdk-src-version;-xorg-6.8.1-1.patch"/>
|
||||||
|
(Only required if building agianst <xref linkend="xorg"/>)</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</sect3>
|
||||||
|
|
||||||
|
|
||||||
|
<sect3><title><application>JDK</application> dependencies</title>
|
||||||
|
<sect4><title>Required (to build <application>JDK</application> from
|
||||||
source)</title>
|
source)</title>
|
||||||
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
||||||
<xref linkend="zip"/>,
|
<xref linkend="zip"/>,
|
||||||
<xref linkend="unzip"/>,
|
<xref linkend="unzip"/>,
|
||||||
<xref linkend="cpio"/>,
|
<xref linkend="cpio"/>,
|
||||||
<xref linkend="alsa"/>,
|
<xref linkend="alsa"/>, and
|
||||||
<xref linkend="tcsh"/> and
|
<xref linkend="tcsh"/></para>
|
||||||
<xref linkend="gcc3"/></para>
|
|
||||||
</sect4>
|
</sect4>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of <application>J2SDK</application></title>
|
<title>Installation of <application>JDK</application></title>
|
||||||
|
|
||||||
<para>Both versions will be installed in parallel. You may choose to keep
|
<para>Both versions will be installed in parallel. You may choose to keep
|
||||||
either or both.</para>
|
either or both.</para>
|
||||||
|
|
||||||
<para>Installation of the precompiled <acronym>JDK</acronym> is easy:
|
<para>Install the precompiled <acronym>JDK</acronym> with the
|
||||||
create a directory to install from, copy the .bin there, and run the
|
|
||||||
following commands:</para>
|
following commands:</para>
|
||||||
|
|
||||||
<screen><userinput><command>export VERSION=&j2sdk-bin-version; &&
|
<screen><userinput><command>export VERSION=&jdk-bin-version; &&
|
||||||
export MV=`echo $VERSION | cut -d "_" -f 1,1` &&
|
export MV=`echo $VERSION | cut -d "_" -f 1,1` &&
|
||||||
export V=`echo ${VERSION} | sed -e "s/\./_/g"` &&
|
export V=`echo ${VERSION} | sed -e "s/\./_/g"` &&
|
||||||
sed -i "s:^PATH=.*::" j2sdk-${V}-linux-i?86.bin &&
|
sed -i "s:^PATH=.*::" jdk-${V}-linux-i?86.bin &&
|
||||||
chmod +x j2sdk-${V}-linux-i?86.bin &&
|
chmod +x jdk-${V}-linux-i?86.bin &&
|
||||||
mkdir -p bin &&
|
mkdir -p bin &&
|
||||||
ln -sf /bin/true bin/more &&
|
ln -sf /bin/true bin/more &&
|
||||||
yes | PATH=$PWD/bin:$PATH ./j2sdk-${V}-linux-i?86.bin &&
|
yes | PATH=$PWD/bin:$PATH ./jdk-${V}-linux-i?86.bin &&
|
||||||
cd j2sdk${VERSION}</command></userinput></screen>
|
cd jdk${VERSION}</command></userinput></screen>
|
||||||
|
|
||||||
<para>Now, as the root user:</para>
|
<para>Now, as the root user:</para>
|
||||||
|
|
||||||
<screen><userinput role='root'><command>install -d /opt/j2sdk/j2sdk-precompiled-${MV} &&
|
<screen><userinput role='root'><command>install -d /opt/jdk/jdk-precompiled-${MV} &&
|
||||||
mv * /opt/j2sdk/j2sdk-precompiled-${MV}
|
mv * /opt/jdk/jdk-precompiled-${MV}
|
||||||
chown -R root:root /opt/j2sdk/j2sdk-precompiled-${MV}</command></userinput></screen>
|
chown -R root:root /opt/jdk/jdk-precompiled-${MV}</command></userinput></screen>
|
||||||
|
|
||||||
<para>The binary version is now installed.</para>
|
<para>The binary version is now installed.</para>
|
||||||
|
|
||||||
@ -156,24 +161,23 @@ configuration section.</para>
|
|||||||
|
|
||||||
<para>Add the recently installed <acronym>JDK</acronym> to the path.</para>
|
<para>Add the recently installed <acronym>JDK</acronym> to the path.</para>
|
||||||
|
|
||||||
<screen><userinput><command>export JAVA_HOME=/opt/j2sdk/j2sdk-precompiled-${MV} &&
|
<screen><userinput><command>export JAVA_HOME=/opt/jdk/jdk-precompiled-${MV} &&
|
||||||
export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
|
export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
|
||||||
|
|
||||||
<para>Unzip the sources:</para>
|
<para>Unzip the sources:</para>
|
||||||
|
|
||||||
<screen><userinput><command>mkdir j2sdk-build &&
|
<screen><userinput><command>mkdir jdk-build &&
|
||||||
cd j2sdk-build &&
|
cd jdk-build &&
|
||||||
VERSION=&j2sdk-src-version; &&
|
VERSION=&jdk-src-version; &&
|
||||||
V=`echo $VERSION | sed -e "s/\./_/g"` &&
|
V=`echo $VERSION | sed -e "s/\./_/g"` &&
|
||||||
unzip ../j2sdk-${V}-src-scsl.zip &&
|
unzip ../jdk-${V}-src-jrl.zip &&
|
||||||
unzip ../j2sdk-${V}-mozilla_headers-unix.zip &&
|
unzip ../jdk-${V}-bin-jrl.zip &&
|
||||||
unzip ../j2sdk-${V}-bin-scsl.zip</command></userinput></screen>
|
unzip ../jdk-${V}-mozilla_headers-unix.zip</command></userinput></screen>
|
||||||
|
|
||||||
<para>Apply all the patches downloaded above.</para>
|
<para>Apply all the patches downloaded above.</para>
|
||||||
|
|
||||||
<screen><userinput><command>for PATCH in ../j2sdk-&j2sdk-src-version;*.patch
|
<screen><userinput><command>for PATCH in ../jdk-&jdk-src-version;*.patch
|
||||||
do
|
do patch -Np1 -i ${PATCH}
|
||||||
patch -Np1 -i $PATCH
|
|
||||||
done</command></userinput></screen>
|
done</command></userinput></screen>
|
||||||
|
|
||||||
<para>Set/unset some variables which affect the build:</para>
|
<para>Set/unset some variables which affect the build:</para>
|
||||||
@ -185,46 +189,36 @@ unset CFLAGS
|
|||||||
unset CXXFLAGS
|
unset CXXFLAGS
|
||||||
unset LDFLAGS
|
unset LDFLAGS
|
||||||
export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
export ALT_DEVTOOLS_PATH="/usr/bin" &&
|
||||||
export BUILD_NUMBER="blfs-`date +%s`" &&
|
export BUILD_NUMBER="blfs-&blfs-version;" &&
|
||||||
export DEV_ONLY=true &&
|
export DEV_ONLY=true &&
|
||||||
export ALT_MOZILLA_PATH=$PWD &&
|
export ALT_MOZILLA_PATH=$PWD &&
|
||||||
export INSANE=true &&
|
export INSANE=true &&
|
||||||
export MAKE_VERBOSE=true &&
|
export MAKE_VERBOSE=true &&
|
||||||
export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts
|
export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
|
||||||
export PATH_HOLD=$PATH
|
|
||||||
export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen>
|
|
||||||
|
|
||||||
<warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
|
<warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build
|
||||||
fail. If you are interested in optimizing the build, set
|
fail. If you are interested in optimizing the build, set
|
||||||
OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning>
|
OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS instead.</para></warning>
|
||||||
|
|
||||||
<para>Additionally, if you would like to make in parallel, add the following
|
<para>Additionally, if you would like to make in parallel, add the
|
||||||
(adjust <envar>MAKE_PARALLEL</envar> to your liking):</para>
|
following:</para>
|
||||||
|
|
||||||
<screen><userinput><command>export HOTSPOT_BUILD_JOBS=$MAKE_PARALLEL</command></userinput></screen>
|
<screen><userinput><command>export HOTSPOT_BUILD_JOBS=<replaceable>[3]</replaceable></command></userinput></screen>
|
||||||
|
|
||||||
<para>If the included <application>Motif</application> doesn't build properly,
|
<para>Build the <application>JDK</application> with the following
|
||||||
the error is noticed much later in the build. A solution is to build the
|
|
||||||
<application>Motif</application> library before compiling the
|
|
||||||
<application>J2<acronym>SDK</acronym></application>.</para>
|
|
||||||
|
|
||||||
<screen><userinput><command>cd motif/lib/Xm &&
|
|
||||||
make &&
|
|
||||||
cd ../../..</command></userinput></screen>
|
|
||||||
|
|
||||||
<para>Build <application>J2SDK</application> with the following
|
|
||||||
commands. There will be a lot of messages about missing files that look like
|
commands. There will be a lot of messages about missing files that look like
|
||||||
errors. As long as the build doesn't stop, the messages are harmless, so
|
errors. These are caused by not meeting the expected build environemnt
|
||||||
ignore them.</para>
|
(Red Hat). As long as the build doesn't stop, the messages
|
||||||
|
are harmless.</para>
|
||||||
|
|
||||||
<screen><userinput><command>cd control/make &&
|
<screen><userinput><command>cd control/make &&
|
||||||
make &&
|
make &&
|
||||||
cd ../build/linux-i?86</command></userinput></screen>
|
cd ../build/linux-i?86</command></userinput></screen>
|
||||||
|
|
||||||
<para>Now, as the root user, install <application>J2SDK</application>:</para>
|
<para>Now, as the root user, install the <application>JDK</application>:</para>
|
||||||
|
|
||||||
<screen><userinput role='root'><command>cp -a j2sdk-image /opt/j2sdk/j2sdk-&j2sdk-src-version; &&
|
<screen><userinput role='root'><command>cp -a j2sdk-image /opt/jdk/jdk-&jdk-src-version; &&
|
||||||
chown -R root:root /opt/j2sdk/j2sdk-&j2sdk-src-version;</command></userinput></screen>
|
chown -R root:root /opt/jdk/jdk-&jdk-src-version;</command></userinput></screen>
|
||||||
|
|
||||||
<para>Restore the environment using the following commands:</para>
|
<para>Restore the environment using the following commands:</para>
|
||||||
|
|
||||||
@ -238,9 +232,7 @@ unset DEV_ONLY &&
|
|||||||
unset ALT_MOZILLA_PATH &&
|
unset ALT_MOZILLA_PATH &&
|
||||||
unset INSANE &&
|
unset INSANE &&
|
||||||
unset MAKE_VERBOSE &&
|
unset MAKE_VERBOSE &&
|
||||||
unset ALT_CACERTS_FILE &&
|
unset ALT_CACERTS_FILE</command></userinput></screen>
|
||||||
export PATH=$PATH_HOLD &&
|
|
||||||
unset PATH_HOLD</command></userinput></screen>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
@ -250,20 +242,20 @@ unset PATH_HOLD</command></userinput></screen>
|
|||||||
<para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This var sets
|
<para><command>export ALT_BOOTDIR="$JAVA_HOME"</command>: This var sets
|
||||||
the location of the bootstrap <acronym>JDK</acronym>.</para>
|
the location of the bootstrap <acronym>JDK</acronym>.</para>
|
||||||
|
|
||||||
<para><command>export ALT_MOZILLA_PATH=$PWD</command>: This sets the
|
<para><command>export ALT_MOZILLA_PATH=$PWD</command>: This tells the build
|
||||||
variable that points to where you unzipped the
|
where to find the base directory of the plugin path (which contains the
|
||||||
<application>Mozilla</application> headers.</para>
|
<application>Mozilla</application> headers).</para>
|
||||||
|
|
||||||
<para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
|
<para><command>export ALT_DEVTOOLS_PATH="/usr/bin"</command>: This
|
||||||
changes the location where the build finds the needed executables.</para>
|
changes the location where the build finds the needed executables.</para>
|
||||||
|
|
||||||
<para><command>export BUILD_NUMBER="blfs-`date +%s`"</command>: This will
|
<para><command>export BUILD_NUMBER="blfs-&blfs-version;"</command>:
|
||||||
help you identify this compiled version of the runtime environment and
|
This will help you identify the compiled version of the runtime environment
|
||||||
virtual machine by appending this information to the version in the
|
and virtual machine by appending this information to the version
|
||||||
output to <command>java -version</command>.</para>
|
string.</para>
|
||||||
|
|
||||||
<para><command>export DEV_ONLY=true</command>: This command
|
<para><command>export DEV_ONLY=true</command>: This command
|
||||||
eliminates compiling the documentation and a dependency for
|
skips compiling the documentation and eliminates a dependency on
|
||||||
<application>rpm</application>.</para>
|
<application>rpm</application>.</para>
|
||||||
|
|
||||||
<para><command>unset JAVA_HOME</command>: This clears the
|
<para><command>unset JAVA_HOME</command>: This clears the
|
||||||
@ -274,74 +266,75 @@ instructions.</para>
|
|||||||
<envar>CLASSPATH</envar> variable as per the recommendations in the build
|
<envar>CLASSPATH</envar> variable as per the recommendations in the build
|
||||||
instructions.</para>
|
instructions.</para>
|
||||||
|
|
||||||
<para><command>unset CFLAGS...</command>: These flags cause miscompilation
|
<para><command>unset CFLAGS/CXXFLAGS...</command>: These variables cause
|
||||||
of the build. Never set these.</para>
|
miscompilation of the build. Never set them.</para>
|
||||||
|
|
||||||
<para><command>export INSANE=true</command>: Unless you specify that you
|
<para><command>export INSANE=true</command>: The certified platform for the
|
||||||
are insane the build will not proceed. The certified platform for the build is
|
build is Redhat Enterprise Advanced Server 2.1. This variable ensures that
|
||||||
Redhat 6.1. The above variable ensures that all the errors related to
|
all the errors related to compiling on a non-certified platform will be
|
||||||
compiling on a non-certified platform will be converted to warnings.</para>
|
displayed as warnings instead of errors.</para>
|
||||||
|
|
||||||
<para><command>export MAKE_VERBOSE=true</command>: Allows the current
|
<para><command>export MAKE_VERBOSE=true</command>: Allows the compiler
|
||||||
compilation command to be displayed on the console.</para>
|
commands to be displayed on the console.</para>
|
||||||
|
|
||||||
<para><command>export ALT_CACERTS_FILE...</command>: Specifies the
|
<para><command>export ALT_CACERTS_FILE...</command>: Specifies the
|
||||||
certificate file to use.</para>
|
certificate file to use (from the installed binary
|
||||||
|
<application>JDK</application>).</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Configuring <application>J2SDK</application></title>
|
<title>Configuring <application>JDK</application></title>
|
||||||
|
|
||||||
<sect3><title>Configuration Information</title>
|
<sect3><title>Configuration Information</title>
|
||||||
|
|
||||||
<para>There are now two Java 2 <acronym>SDK</acronym>'s installed in
|
<para>There are now two Java 2 <acronym>SDK</acronym>'s installed in
|
||||||
<filename>/opt/j2sdk</filename>. You should decide on which one you
|
<filename>/opt/jdk</filename>. You should decide on which one you
|
||||||
would like to use as the default. For example if you decide to use the source
|
would like to use as the default. For example if you decide to use the source
|
||||||
compiled <application>J2SDK</application>, do the following:</para>
|
compiled <application>JDK</application>, do the following:</para>
|
||||||
|
|
||||||
<screen><userinput><command>ln -nsf j2sdk-&j2sdk-src-version; /opt/j2sdk/j2sdk</command></userinput></screen>
|
<screen><userinput><command>ln -nsf jdk-&jdk-src-version; /opt/jdk/jdk</command></userinput></screen>
|
||||||
|
|
||||||
<para>Add the following lines to your shell startup file (e.g.,
|
<para>Add the following <filename>jdk.sh</filename> shell startup file to
|
||||||
<filename>/etc/profile</filename>).</para>
|
the <filename>/etc/profile.d</filename> directory with the following
|
||||||
|
commands:</para>
|
||||||
|
|
||||||
<screen><userinput>export JAVA_HOME=/opt/j2sdk/j2sdk
|
<screen><userinput><command>cat > /etc/profile.d/jdk.sh << "EOF"</command>
|
||||||
export PATH=$PATH:$JAVA_HOME/bin</userinput></screen>
|
# Begin /etc/profile.d/jdk.sh
|
||||||
|
|
||||||
<para>Add <filename>$JAVA_HOME/man</filename> to your
|
# Set JAVA_HOME directory
|
||||||
<envar>MANPATH</envar> variable or to
|
JAVA_HOME=/opt/jdk/jdk
|
||||||
<filename>/etc/man.conf</filename></para>
|
export JAVA_HOME
|
||||||
|
|
||||||
<para>The <application>Java</application> plugin is in the directory
|
# Adjust PATH and MANPATH
|
||||||
<filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns610/</filename>.
|
pathappend ${JAVA_HOME}/bin PATH
|
||||||
Make a symbolic link to the file in that directory from your plugins directory.
|
pathappend ${JAVA_HOME}/man MANPATH
|
||||||
Note that the plugin must be a symlink for it to work. If not, the browsers
|
|
||||||
just crash when you attempt to load a <application>Java</application>
|
|
||||||
plugin.</para>
|
|
||||||
|
|
||||||
</sect3>
|
# Auto Java Classpath Updating
|
||||||
|
# Create symlinks to this directory for auto classpath setting
|
||||||
<sect3><title>Handling CLASSPATH</title>
|
AUTO_CLASSPATH_DIR=/usr/lib/classpath
|
||||||
|
if [ -z ${CLASSPATH} ]; then
|
||||||
<para>When compiling packages, the <envar>CLASSPATH</envar> environment
|
CLASSPATH=.:${AUTO_CLASSPATH_DIR}
|
||||||
variable is used by the <acronym>JDK</acronym> to locate classes at
|
|
||||||
compile-time and run-time. It is tedious to add all the classes used to the
|
|
||||||
<envar>CLASSPATH</envar> manually. You may add the following lines to your
|
|
||||||
shell startup file to set <envar>CLASSPATH</envar> automatically to include
|
|
||||||
all JAR files in a specified directory, which in the example below is
|
|
||||||
<filename>/usr/lib/auto-java-classpath</filename>.</para>
|
|
||||||
|
|
||||||
<screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath
|
|
||||||
if [ -z $CLASSPATH ]
|
|
||||||
then
|
|
||||||
CLASSPATH=.:$AUTO_CLASSPATH_DIR
|
|
||||||
else
|
else
|
||||||
CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR
|
pathappend . CLASSPATH
|
||||||
|
pathappend ${AUTO_CLASSPATH_DIR} CLASSPATH
|
||||||
fi
|
fi
|
||||||
for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null)
|
|
||||||
do
|
for i in $(ls ${AUTO_CLASSPATH_DIR}/*.jar 2>/dev/null)
|
||||||
CLASSPATH=$CLASSPATH:$i
|
do pathappend ${i} CLASSPATH
|
||||||
done</userinput></screen>
|
done
|
||||||
|
|
||||||
|
# End /etc/profile.d/jdk.sh
|
||||||
|
<command>EOF</command></userinput></screen>
|
||||||
|
|
||||||
|
<para>The <application>Java</application> plugin is loacated in
|
||||||
|
<filename class="directory">$JAVA_HOME/jre/plugin/i?86/ns7/</filename>.
|
||||||
|
Make a symbolic link to the file in that directory from your browser
|
||||||
|
plugins directory.</para>
|
||||||
|
|
||||||
|
<note><para>The plugin must be a symlink for it to work. If not, the browsers
|
||||||
|
just crash when you attempt to load a <application>Java</application>
|
||||||
|
application.</para></note>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
@ -361,7 +354,7 @@ javah, javap, jdb, keytool, native2ascii, orbd, policytool, rmic, rmid,
|
|||||||
rmiregistry, serialver, servertool and tnameserv</seg>
|
rmiregistry, serialver, servertool and tnameserv</seg>
|
||||||
<seg><envar>$JAVA_HOME</envar>/lib/*, <envar>$JAVA_HOME</envar>/jre/lib/*
|
<seg><envar>$JAVA_HOME</envar>/lib/*, <envar>$JAVA_HOME</envar>/jre/lib/*
|
||||||
and libjavaplugin_oji.so</seg>
|
and libjavaplugin_oji.so</seg>
|
||||||
<seg>/opt/j2sdk</seg>
|
<seg>/opt/jdk</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
@ -373,7 +366,7 @@ and libjavaplugin_oji.so</seg>
|
|||||||
<term><command>appletviewer</command></term>
|
<term><command>appletviewer</command></term>
|
||||||
<listitem><para>runs <application>Java</application> applets outside of the
|
<listitem><para>runs <application>Java</application> applets outside of the
|
||||||
context of a browser.</para>
|
context of a browser.</para>
|
||||||
<indexterm zone="j2sdk appletviewer">
|
<indexterm zone="jdk appletviewer">
|
||||||
<primary sortas="b-appletviewer">appletviewer</primary>
|
<primary sortas="b-appletviewer">appletviewer</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -383,7 +376,7 @@ context of a browser.</para>
|
|||||||
<listitem><para>checks a specified <filename>JAR</filename> file for title
|
<listitem><para>checks a specified <filename>JAR</filename> file for title
|
||||||
and version conflicts with any extensions installed in the
|
and version conflicts with any extensions installed in the
|
||||||
<acronym>JDK</acronym> software.</para>
|
<acronym>JDK</acronym> software.</para>
|
||||||
<indexterm zone="j2sdk extcheck">
|
<indexterm zone="jdk extcheck">
|
||||||
<primary sortas="b-extcheck">extcheck</primary>
|
<primary sortas="b-extcheck">extcheck</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -392,7 +385,7 @@ and version conflicts with any extensions installed in the
|
|||||||
<term><command>idlj</command></term>
|
<term><command>idlj</command></term>
|
||||||
<listitem><para>generates <application>Java</application> bindings from a
|
<listitem><para>generates <application>Java</application> bindings from a
|
||||||
given <acronym>IDL</acronym> file.</para>
|
given <acronym>IDL</acronym> file.</para>
|
||||||
<indexterm zone="j2sdk idlj">
|
<indexterm zone="jdk idlj">
|
||||||
<primary sortas="b-idlj">idlj</primary>
|
<primary sortas="b-idlj">idlj</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -401,7 +394,7 @@ given <acronym>IDL</acronym> file.</para>
|
|||||||
<term><command>jar</command></term>
|
<term><command>jar</command></term>
|
||||||
<listitem><para>combines multiple files into a single <acronym>JAR</acronym>
|
<listitem><para>combines multiple files into a single <acronym>JAR</acronym>
|
||||||
archive file.</para>
|
archive file.</para>
|
||||||
<indexterm zone="j2sdk jar">
|
<indexterm zone="jdk jar">
|
||||||
<primary sortas="b-jar">jar</primary>
|
<primary sortas="b-jar">jar</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -411,7 +404,7 @@ archive file.</para>
|
|||||||
<listitem><para>signs <filename>JAR</filename> (Java ARchive) files and
|
<listitem><para>signs <filename>JAR</filename> (Java ARchive) files and
|
||||||
verifies the signatures and integrity of a signed
|
verifies the signatures and integrity of a signed
|
||||||
<filename>JAR</filename>.</para>
|
<filename>JAR</filename>.</para>
|
||||||
<indexterm zone="j2sdk jarsigner">
|
<indexterm zone="jdk jarsigner">
|
||||||
<primary sortas="b-jarsigner">jarsigner</primary>
|
<primary sortas="b-jarsigner">jarsigner</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -421,7 +414,7 @@ verifies the signatures and integrity of a signed
|
|||||||
<listitem><para>launches a <application>Java</application> application by
|
<listitem><para>launches a <application>Java</application> application by
|
||||||
starting a <application>Java</application> runtime environment, loading a
|
starting a <application>Java</application> runtime environment, loading a
|
||||||
specified class and invoking its main method.</para>
|
specified class and invoking its main method.</para>
|
||||||
<indexterm zone="j2sdk java">
|
<indexterm zone="jdk java">
|
||||||
<primary sortas="b-java">java</primary>
|
<primary sortas="b-java">java</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -431,7 +424,7 @@ specified class and invoking its main method.</para>
|
|||||||
<listitem><para>reads class and interface definitions, written in the
|
<listitem><para>reads class and interface definitions, written in the
|
||||||
<application>Java</application> programming language, and compiles them into
|
<application>Java</application> programming language, and compiles them into
|
||||||
bytecode class files.</para>
|
bytecode class files.</para>
|
||||||
<indexterm zone="j2sdk javac">
|
<indexterm zone="jdk javac">
|
||||||
<primary sortas="b-javac">javac</primary>
|
<primary sortas="b-javac">javac</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -442,7 +435,7 @@ bytecode class files.</para>
|
|||||||
<application>Java</application> source files and produces a corresponding set
|
<application>Java</application> source files and produces a corresponding set
|
||||||
of <acronym>HTML</acronym> pages describing the classes, interfaces,
|
of <acronym>HTML</acronym> pages describing the classes, interfaces,
|
||||||
constructors, methods, and fields.</para>
|
constructors, methods, and fields.</para>
|
||||||
<indexterm zone="j2sdk javadoc">
|
<indexterm zone="jdk javadoc">
|
||||||
<primary sortas="b-javadoc">javadoc</primary>
|
<primary sortas="b-javadoc">javadoc</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -451,7 +444,7 @@ constructors, methods, and fields.</para>
|
|||||||
<term><command>javah</command></term>
|
<term><command>javah</command></term>
|
||||||
<listitem><para>generates <application>C</application> header and source files
|
<listitem><para>generates <application>C</application> header and source files
|
||||||
that are needed to implement native methods.</para>
|
that are needed to implement native methods.</para>
|
||||||
<indexterm zone="j2sdk javah">
|
<indexterm zone="jdk javah">
|
||||||
<primary sortas="b-javah">javah</primary>
|
<primary sortas="b-javah">javah</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -460,7 +453,7 @@ that are needed to implement native methods.</para>
|
|||||||
<term><command>javap</command></term>
|
<term><command>javap</command></term>
|
||||||
<listitem><para>disassembles a <application>Java</application> class
|
<listitem><para>disassembles a <application>Java</application> class
|
||||||
file.</para>
|
file.</para>
|
||||||
<indexterm zone="j2sdk javap">
|
<indexterm zone="jdk javap">
|
||||||
<primary sortas="b-javap">javap</primary>
|
<primary sortas="b-javap">javap</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -469,7 +462,7 @@ file.</para>
|
|||||||
<term><command>jdb</command></term>
|
<term><command>jdb</command></term>
|
||||||
<listitem><para>is a simple command-line debugger for
|
<listitem><para>is a simple command-line debugger for
|
||||||
<application>Java</application> classes.</para>
|
<application>Java</application> classes.</para>
|
||||||
<indexterm zone="j2sdk jdb">
|
<indexterm zone="jdk jdb">
|
||||||
<primary sortas="b-jdb">jdb</primary>
|
<primary sortas="b-jdb">jdb</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -477,7 +470,7 @@ file.</para>
|
|||||||
<varlistentry id="keytool">
|
<varlistentry id="keytool">
|
||||||
<term><command>keytool</command></term>
|
<term><command>keytool</command></term>
|
||||||
<listitem><para>is a key and certificate management utility.</para>
|
<listitem><para>is a key and certificate management utility.</para>
|
||||||
<indexterm zone="j2sdk keytool">
|
<indexterm zone="jdk keytool">
|
||||||
<primary sortas="b-keytool">keytool</primary>
|
<primary sortas="b-keytool">keytool</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -486,7 +479,7 @@ file.</para>
|
|||||||
<term><command>native2ascii</command></term>
|
<term><command>native2ascii</command></term>
|
||||||
<listitem><para> converts files that contain non-supported character encoding
|
<listitem><para> converts files that contain non-supported character encoding
|
||||||
into files containing Latin-1 or Unicode-encoded characters.</para>
|
into files containing Latin-1 or Unicode-encoded characters.</para>
|
||||||
<indexterm zone="j2sdk native2ascii">
|
<indexterm zone="jdk native2ascii">
|
||||||
<primary sortas="b-native2ascii">native2ascii</primary>
|
<primary sortas="b-native2ascii">native2ascii</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -496,7 +489,7 @@ into files containing Latin-1 or Unicode-encoded characters.</para>
|
|||||||
<listitem><para>is used to enable clients to transparently locate and invoke
|
<listitem><para>is used to enable clients to transparently locate and invoke
|
||||||
persistent objects on servers in the <acronym>CORBA</acronym>
|
persistent objects on servers in the <acronym>CORBA</acronym>
|
||||||
environment.</para>
|
environment.</para>
|
||||||
<indexterm zone="j2sdk orbd">
|
<indexterm zone="jdk orbd">
|
||||||
<primary sortas="b-orbd">orbd</primary>
|
<primary sortas="b-orbd">orbd</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -504,7 +497,7 @@ environment.</para>
|
|||||||
<varlistentry id="policytool">
|
<varlistentry id="policytool">
|
||||||
<term><command>policytool</command></term>
|
<term><command>policytool</command></term>
|
||||||
<listitem><para>creates and manages a policy file graphically.</para>
|
<listitem><para>creates and manages a policy file graphically.</para>
|
||||||
<indexterm zone="j2sdk policytool">
|
<indexterm zone="jdk policytool">
|
||||||
<primary sortas="b-policytool">policytool</primary>
|
<primary sortas="b-policytool">policytool</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -514,7 +507,7 @@ environment.</para>
|
|||||||
<listitem><para>generates stub and skeleton class files for remote objects
|
<listitem><para>generates stub and skeleton class files for remote objects
|
||||||
from the names of compiled <application>Java</application> classes that
|
from the names of compiled <application>Java</application> classes that
|
||||||
contain remote object implementations.</para>
|
contain remote object implementations.</para>
|
||||||
<indexterm zone="j2sdk rmic">
|
<indexterm zone="jdk rmic">
|
||||||
<primary sortas="b-rmic">rmic</primary>
|
<primary sortas="b-rmic">rmic</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -522,7 +515,7 @@ contain remote object implementations.</para>
|
|||||||
<varlistentry id="rmid">
|
<varlistentry id="rmid">
|
||||||
<term><command>rmid</command></term>
|
<term><command>rmid</command></term>
|
||||||
<listitem><para>starts the activation system daemon.</para>
|
<listitem><para>starts the activation system daemon.</para>
|
||||||
<indexterm zone="j2sdk rmid">
|
<indexterm zone="jdk rmid">
|
||||||
<primary sortas="b-rmid">rmid</primary>
|
<primary sortas="b-rmid">rmid</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -531,7 +524,7 @@ contain remote object implementations.</para>
|
|||||||
<term><command>rmiregistry</command></term>
|
<term><command>rmiregistry</command></term>
|
||||||
<listitem><para>creates and starts a remote object registry on the specified
|
<listitem><para>creates and starts a remote object registry on the specified
|
||||||
port on the current host.</para>
|
port on the current host.</para>
|
||||||
<indexterm zone="j2sdk rmiregistry">
|
<indexterm zone="jdk rmiregistry">
|
||||||
<primary sortas="b-rmiregistry">rmiregistry</primary>
|
<primary sortas="b-rmiregistry">rmiregistry</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -540,7 +533,7 @@ port on the current host.</para>
|
|||||||
<term><command>serialver</command></term>
|
<term><command>serialver</command></term>
|
||||||
<listitem><para>returns the serialVersionUID for one or more classes in a
|
<listitem><para>returns the serialVersionUID for one or more classes in a
|
||||||
form suitable for copying into an evolving class.</para>
|
form suitable for copying into an evolving class.</para>
|
||||||
<indexterm zone="j2sdk serialver">
|
<indexterm zone="jdk serialver">
|
||||||
<primary sortas="b-serialver">serialver</primary>
|
<primary sortas="b-serialver">serialver</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -549,7 +542,7 @@ form suitable for copying into an evolving class.</para>
|
|||||||
<term><command>servertool</command></term>
|
<term><command>servertool</command></term>
|
||||||
<listitem><para>provides an ease-of-use interface for application programmers
|
<listitem><para>provides an ease-of-use interface for application programmers
|
||||||
to register, unregister, startup and shutdown a server.</para>
|
to register, unregister, startup and shutdown a server.</para>
|
||||||
<indexterm zone="j2sdk servertool">
|
<indexterm zone="jdk servertool">
|
||||||
<primary sortas="b-servertool">servertool</primary>
|
<primary sortas="b-servertool">servertool</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -558,7 +551,7 @@ to register, unregister, startup and shutdown a server.</para>
|
|||||||
<term><command>tnameserv</command></term>
|
<term><command>tnameserv</command></term>
|
||||||
<listitem><para>starts the <application>Java</application>
|
<listitem><para>starts the <application>Java</application>
|
||||||
<acronym>IDL</acronym> name server.</para>
|
<acronym>IDL</acronym> name server.</para>
|
||||||
<indexterm zone="j2sdk tnameserv">
|
<indexterm zone="jdk tnameserv">
|
||||||
<primary sortas="b-tnameserv">tnameserv</primary>
|
<primary sortas="b-tnameserv">tnameserv</primary>
|
||||||
</indexterm></listitem>
|
</indexterm></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
@ -182,7 +182,7 @@ X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
|||||||
<ulink url="http://www.boutell.com/gd/">GD</ulink>,
|
<ulink url="http://www.boutell.com/gd/">GD</ulink>,
|
||||||
<ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
|
<ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
|
||||||
<xref linkend="gnome-libs"/>,
|
<xref linkend="gnome-libs"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<xref linkend="tk"/>,
|
<xref linkend="tk"/>,
|
||||||
<xref linkend="python"/> (with the
|
<xref linkend="python"/> (with the
|
||||||
<ulink url="http://www.pfdubois.com/numpy/">Numerical Extension</ulink>),
|
<ulink url="http://www.pfdubois.com/numpy/">Numerical Extension</ulink>),
|
||||||
|
@ -22,7 +22,7 @@ system's development capabilities.</para>
|
|||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc3.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc3.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="guile.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="guile.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="j2sdk.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="jdk.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="librep.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="librep.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="nasm.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="nasm.xml"/>
|
||||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pdl.xml"/>
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="pdl.xml"/>
|
||||||
|
@ -58,7 +58,7 @@ url="&patch-root;/apache-ant-&apache-ant-version;-blfs_install-1.patch"/></para>
|
|||||||
|
|
||||||
<sect3><title><application>Apache Ant</application> dependencies</title>
|
<sect3><title><application>Apache Ant</application> dependencies</title>
|
||||||
<sect4><title>Required</title>
|
<sect4><title>Required</title>
|
||||||
<para><xref linkend="j2sdk"/></para>
|
<para><xref linkend="jdk"/></para>
|
||||||
</sect4>
|
</sect4>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ Provider Interface (<acronym>AT</acronym>-<acronym>SPI</acronym>).</para>
|
|||||||
|
|
||||||
<sect3><title><application>Java Access Bridge</application> dependencies</title>
|
<sect3><title><application>Java Access Bridge</application> dependencies</title>
|
||||||
<sect4><title>Required</title>
|
<sect4><title>Required</title>
|
||||||
<para><xref linkend="at-spi"/> and <xref linkend="j2sdk"/></para>
|
<para><xref linkend="at-spi"/> and <xref linkend="jdk"/></para>
|
||||||
</sect4>
|
</sect4>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@ who wrote what.</para>
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
|
||||||
|
<listitem><para>April 24th, 2005 [dj]: Updated to JDK-1.5.0, added gcc-3.4.2+
|
||||||
|
and jdk-1.5.0 patches to OpenOffice, and added jdk-1.5.0 patch for
|
||||||
|
fop.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>April 24th, 2005 [randy]: Fixed incorrect path pointing to the
|
<listitem><para>April 24th, 2005 [randy]: Fixed incorrect path pointing to the
|
||||||
documentation in the Cyrus-SASL configuration section and incorrect library
|
documentation in the Cyrus-SASL configuration section and incorrect library
|
||||||
versions in the chmod commands in the OpenLDAP instructions, both pointed out
|
versions in the chmod commands in the OpenLDAP instructions, both pointed out
|
||||||
|
@ -189,7 +189,7 @@ Bauscher</emphasis></para></listitem>
|
|||||||
|
|
||||||
<listitem><para>MySQL: <emphasis>Jesse Tie-Ten-Quee</emphasis></para></listitem>
|
<listitem><para>MySQL: <emphasis>Jesse Tie-Ten-Quee</emphasis></para></listitem>
|
||||||
|
|
||||||
<listitem><para>fontconfig, gcc, gcc2, j2sdk, mozilla, nas, openoffice, ispell, nail,
|
<listitem><para>fontconfig, gcc, gcc2, jdk, mozilla, nas, openoffice, ispell, nail,
|
||||||
ImageMagick, hd2u,
|
ImageMagick, hd2u,
|
||||||
STLport, tcl, tk and bind-utils: <emphasis>Tushar Teredesai</emphasis></para></listitem>
|
STLport, tcl, tk and bind-utils: <emphasis>Tushar Teredesai</emphasis></para></listitem>
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ shadow to use <acronym>PAM</acronym> is based.</para></listitem>
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
<listitem><para><emphasis>Tushar Teredesai</emphasis> for writing the
|
<listitem><para><emphasis>Tushar Teredesai</emphasis> for writing the
|
||||||
Compiling Java 2 SDK from Scratch hint on which j2sdk is based and for writing
|
Compiling Java 2 SDK from Scratch hint on which jdk is based and for writing
|
||||||
the docbook hint used throughout the typesetting chapter.</para></listitem>
|
the docbook hint used throughout the typesetting chapter.</para></listitem>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<xref linkend="GTK"/>,
|
<xref linkend="GTK"/>,
|
||||||
<xref linkend="python"/>,
|
<xref linkend="python"/>,
|
||||||
<xref linkend="ruby"/>,
|
<xref linkend="ruby"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<xref linkend="mozilla"/>,
|
<xref linkend="mozilla"/>,
|
||||||
<ulink url="http://go-mono.org">Mono</ulink>,
|
<ulink url="http://go-mono.org">Mono</ulink>,
|
||||||
<ulink url="http://www.southern-storm.com.au/portable_net.html">DotGNU Portable.NET</ulink>, and
|
<ulink url="http://www.southern-storm.com.au/portable_net.html">DotGNU Portable.NET</ulink>, and
|
||||||
|
@ -62,7 +62,7 @@ url="ftp://ftp.kde.org/pub/kde/security_patches/post-3.3.2-kdebase-htmlframes2.p
|
|||||||
<xref linkend="libart_lgpl"/>,
|
<xref linkend="libart_lgpl"/>,
|
||||||
<xref linkend="libxml2"/>,
|
<xref linkend="libxml2"/>,
|
||||||
<xref linkend="openssl"/> and
|
<xref linkend="openssl"/> and
|
||||||
<xref linkend="j2sdk"/></para>
|
<xref linkend="jdk"/></para>
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
<sect4><title>Optional</title>
|
<sect4><title>Optional</title>
|
||||||
|
@ -60,7 +60,7 @@ dependencies</title>
|
|||||||
<para><xref linkend="Linux_PAM"/>,
|
<para><xref linkend="Linux_PAM"/>,
|
||||||
<xref linkend="openldap"/>,
|
<xref linkend="openldap"/>,
|
||||||
<xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
|
<xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<xref linkend="mysql"/>,
|
<xref linkend="mysql"/>,
|
||||||
<xref linkend="postgresql"/>,
|
<xref linkend="postgresql"/>,
|
||||||
<xref linkend="db"/>,
|
<xref linkend="db"/>,
|
||||||
|
@ -63,7 +63,7 @@ in that order),
|
|||||||
<xref linkend="Linux_PAM"/>,
|
<xref linkend="Linux_PAM"/>,
|
||||||
<xref linkend="php"/>,
|
<xref linkend="php"/>,
|
||||||
<xref linkend="python"/>,
|
<xref linkend="python"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<ulink url="http://www.openslp.org/">OpenSLP</ulink>,
|
<ulink url="http://www.openslp.org/">OpenSLP</ulink>,
|
||||||
<ulink url="http://packages.debian.org/unstable/source/libpaper">
|
<ulink url="http://packages.debian.org/unstable/source/libpaper">
|
||||||
libpaper</ulink> and
|
libpaper</ulink> and
|
||||||
|
@ -57,6 +57,15 @@ representation), print, <acronym>AWT</acronym>, <acronym>MIF</acronym> and
|
|||||||
&fop-time;</para></listitem></itemizedlist>
|
&fop-time;</para></listitem></itemizedlist>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
<sect3><title>Required Patch</title>
|
||||||
|
<itemizedlist spacing='compact'>
|
||||||
|
<listitem><para><ulink
|
||||||
|
url="&patch-root;/fop_&fop-version;-jdk_&jdk-src-version;-1.patch"/> For
|
||||||
|
use with jdk-&jdk-src-version;.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</sect3>
|
||||||
|
|
||||||
<sect3><title>Additional downloads</title>
|
<sect3><title>Additional downloads</title>
|
||||||
<itemizedlist spacing="compact">
|
<itemizedlist spacing="compact">
|
||||||
<listitem><para><application>Java</application> Advanced Imaging
|
<listitem><para><application>Java</application> Advanced Imaging
|
||||||
@ -77,7 +86,7 @@ accepting the license agreement.</para>
|
|||||||
|
|
||||||
<sect3><title><application>FOP</application> dependencies</title>
|
<sect3><title><application>FOP</application> dependencies</title>
|
||||||
<sect4><title>Required</title>
|
<sect4><title>Required</title>
|
||||||
<para><xref linkend="j2sdk"/></para>
|
<para><xref linkend="jdk"/></para>
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
<sect4><title>Optional</title>
|
<sect4><title>Optional</title>
|
||||||
@ -94,10 +103,6 @@ the documentation)</para>
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of <application>FOP</application></title>
|
<title>Installation of <application>FOP</application></title>
|
||||||
|
|
||||||
<note><para>Ensure <envar>$JAVA_HOME</envar> is set correctly before beginning
|
|
||||||
the build. Additionally, the build will fail if your version of the
|
|
||||||
<acronym>JDK</acronym> is higher than 1.4.2_x.</para></note>
|
|
||||||
|
|
||||||
<para>Some versions of tar will display a message similar to
|
<para>Some versions of tar will display a message similar to
|
||||||
<quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote>
|
<quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote>
|
||||||
when unpacking the source tarball. You may safely ignore this message.</para>
|
when unpacking the source tarball. You may safely ignore this message.</para>
|
||||||
@ -119,7 +124,8 @@ required components</title>
|
|||||||
<para>Install <application><acronym>FOP</acronym></application> by running the
|
<para>Install <application><acronym>FOP</acronym></application> by running the
|
||||||
following commands:</para>
|
following commands:</para>
|
||||||
|
|
||||||
<screen><userinput><command>./build.sh &&
|
<screen><userinput><command>patch -Np1 -i ../fop_&fop-version;-jdk_&jdk-src-version;-1.patch &&
|
||||||
|
./build.sh &&
|
||||||
sed -i -e "s/build/lib/" fop.sh</command></userinput></screen>
|
sed -i -e "s/build/lib/" fop.sh</command></userinput></screen>
|
||||||
|
|
||||||
<para>Now, as the root user:</para>
|
<para>Now, as the root user:</para>
|
||||||
|
@ -45,7 +45,7 @@ url="&db-download-ftp;"/></para></listitem>
|
|||||||
|
|
||||||
<sect3><title><application>Berkeley DB</application> dependencies</title>
|
<sect3><title><application>Berkeley DB</application> dependencies</title>
|
||||||
<sect4><title>Optional</title>
|
<sect4><title>Optional</title>
|
||||||
<para><xref linkend="tcl"/> and <xref linkend="j2sdk"/></para>
|
<para><xref linkend="tcl"/> and <xref linkend="jdk"/></para>
|
||||||
</sect4>
|
</sect4>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ dependencies</title>
|
|||||||
<xref linkend="tcpwrappers"/>,
|
<xref linkend="tcpwrappers"/>,
|
||||||
X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
||||||
<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
|
<xref linkend="mitkrb"/> or <xref linkend="heimdal"/>,
|
||||||
<xref linkend="j2sdk"/>,
|
<xref linkend="jdk"/>,
|
||||||
<xref linkend="net-tools"/>,
|
<xref linkend="net-tools"/>,
|
||||||
<ulink url="http://www.opensc.org/">OpenSC</ulink> and
|
<ulink url="http://www.opensc.org/">OpenSC</ulink> and
|
||||||
<ulink url="http://sourceforge.net/projects/libedit/">libedit</ulink></para>
|
<ulink url="http://sourceforge.net/projects/libedit/">libedit</ulink></para>
|
||||||
|
@ -163,7 +163,7 @@ root user).</para>
|
|||||||
|
|
||||||
<para>For installing various <application>Firefox</application> plugins, refer
|
<para>For installing various <application>Firefox</application> plugins, refer
|
||||||
to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
||||||
Project</ulink>. If you have <xref linkend="j2sdk"/> already installed, create
|
Project</ulink>. If you have <xref linkend="jdk"/> already installed, create
|
||||||
the following link as the root user to utilize the
|
the following link as the root user to utilize the
|
||||||
<application>JAVA</application> plugin: </para>
|
<application>JAVA</application> plugin: </para>
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ root user).</para>
|
|||||||
|
|
||||||
<para>For installing various <application>Mozilla</application> plugins, refer
|
<para>For installing various <application>Mozilla</application> plugins, refer
|
||||||
to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's PluginDoc
|
||||||
Project</ulink>. If you have <xref linkend="j2sdk"/> already installed, create
|
Project</ulink>. If you have <xref linkend="jdk"/> already installed, create
|
||||||
the following link as the root user to utilize the
|
the following link as the root user to utilize the
|
||||||
<application>JAVA</application> plugin: </para>
|
<application>JAVA</application> plugin: </para>
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@ url="&openoffice-download-ftp;"/></para></listitem>
|
|||||||
<sect3><title>Additional downloads</title>
|
<sect3><title>Additional downloads</title>
|
||||||
<itemizedlist spacing='compact'>
|
<itemizedlist spacing='compact'>
|
||||||
|
|
||||||
<listitem><para>Required patch for gcc-&gcc3-version;: <ulink
|
<listitem><para>Required patch for gcc-&gcc-version;: <ulink
|
||||||
url="&patch-root;/OOo_&openoffice-version;-gcc33-1.patch"/></para>
|
url="&patch-root;/OOo_&openoffice-version;-gcc_3.4.2+_fixes-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>Required patch for use with NPTL: <ulink
|
<listitem><para>Required patch for use with NPTL: <ulink
|
||||||
@ -57,8 +57,8 @@ url="&patch-root;/OOo_&openoffice-version;-nptl-1.patch"/></para>
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>Required patch if compiling with
|
<listitem><para>Required patch if compiling with
|
||||||
<acronym>J2SDK</acronym>-&j2sdk-src-version;: <ulink
|
<acronym>JDK</acronym>-&jdk-src-version;: <ulink
|
||||||
url="&patch-root;/OOo_&openoffice-version;-jdk_&j2sdk-src-version;_fix-1.patch"/></para>
|
url="&patch-root;/OOo_&openoffice-version;-jdk_&jdk-src-version;_fix-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>Required patch (Executable <command>test</command> is in
|
<listitem><para>Required patch (Executable <command>test</command> is in
|
||||||
@ -67,6 +67,10 @@ not in <filename class="directory">/usr/bin</filename>): <ulink
|
|||||||
url="&patch-root;/OOo_&openoffice-version;-test_bin_loc-1.patch"/></para>
|
url="&patch-root;/OOo_&openoffice-version;-test_bin_loc-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem><para>Required patch for STLport-4.6.2: <ulink
|
||||||
|
url="&patch-root;/OOo_&openoffice-version;-STLport_4.6.2-1.patch"/></para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>Optional patch if you wish to use the system freetype:
|
<listitem><para>Optional patch if you wish to use the system freetype:
|
||||||
<ulink
|
<ulink
|
||||||
url="&patch-root;/OOo_&openoffice-version;-freetype-1.patch"/></para>
|
url="&patch-root;/OOo_&openoffice-version;-freetype-1.patch"/></para>
|
||||||
@ -78,9 +82,8 @@ Linux-<acronym>PAM</acronym>-&Linux_PAM-version; is not installed:
|
|||||||
url="&patch-root;/OOo_&openoffice-version;-no_pam-1.patch"/></para>
|
url="&patch-root;/OOo_&openoffice-version;-no_pam-1.patch"/></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>General Polygon Clipper Library (Optional if
|
<listitem><para>STLport-4.6.2: <ulink
|
||||||
libart_lgpl-&libart_lgpl-version; is used): <ulink
|
url="http://www.stlport.org/archive/STLport-4.6.2.tar.gz"/></para>
|
||||||
url="ftp://ftp.cs.man.ac.uk/pub/toby/gpc/gpc231.tar.Z"/></para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>The source <acronym>TAR</acronym> ball only contains English
|
<listitem><para>The source <acronym>TAR</acronym> ball only contains English
|
||||||
@ -96,24 +99,25 @@ url="http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent/"
|
|||||||
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
<para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
||||||
<xref linkend="zip"/>,
|
<xref linkend="zip"/>,
|
||||||
<xref linkend="unzip"/>,
|
<xref linkend="unzip"/>,
|
||||||
<xref linkend="tcsh"/>,
|
<xref linkend="tcsh"/>, and
|
||||||
<xref linkend="which"/> and
|
<xref linkend="which"/>.</para>
|
||||||
<xref linkend="gcc3"/>.</para>
|
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
<sect4><title>Recommended</title>
|
<sect4><title>Recommended</title>
|
||||||
<para><xref linkend="j2sdk"/>,
|
<para><xref linkend="jdk"/>,
|
||||||
<xref linkend="freetype2"/>,
|
<xref linkend="freetype2"/>,
|
||||||
<xref linkend="pkgconfig"/>,
|
<xref linkend="pkgconfig"/>,
|
||||||
<xref linkend="startup-notification"/> and
|
<xref linkend="startup-notification"/>,
|
||||||
<xref linkend="desktop-file-utils"/>.</para>
|
<xref linkend="desktop-file-utils"/>,
|
||||||
|
<xref linkend="apache-ant"/>,
|
||||||
|
<xref linkend="libart_lgpl"/>, and
|
||||||
|
<xref linkend="curl"/>.</para>
|
||||||
|
|
||||||
</sect4>
|
</sect4>
|
||||||
|
|
||||||
<sect4><title>Optional</title>
|
<sect4><title>Optional</title>
|
||||||
<para><xref linkend="Linux_PAM"/>,
|
<para><xref linkend="Linux_PAM"/> and
|
||||||
<xref linkend="libart_lgpl"/>,
|
<xref linkend="nas"/>.</para>
|
||||||
<xref linkend="apache-ant"/> and
|
|
||||||
<xref linkend="curl"/>.</para>
|
|
||||||
</sect4>
|
</sect4>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
@ -130,26 +134,25 @@ and extract the source with the following commands:</para>
|
|||||||
cd OOo-build &&
|
cd OOo-build &&
|
||||||
tar -zxf ../OOo_&openoffice-version;_source.tar.gz</command></userinput></screen>
|
tar -zxf ../OOo_&openoffice-version;_source.tar.gz</command></userinput></screen>
|
||||||
|
|
||||||
<para>Optionally, untar and move the gpc files, and apply the downloaded
|
<para>Apply all of the downloaded patches:</para>
|
||||||
patches:</para>
|
|
||||||
|
|
||||||
<screen><userinput><command>tar -zxf ../gpc231.tar.Z &&
|
<screen><userinput><command>for PATCH in ../OO_&openoffice-version;-*.patch
|
||||||
mv gpc231/* external/gpc &&
|
do patch -Np1 -i ${PATCH}
|
||||||
rmdir gpc231 &&
|
done</command></userinput></screen>
|
||||||
for patch in ../OOo_&openoffice-version;-*.patch
|
|
||||||
do patch -Np1 -i $patch
|
<para>Copy the STLport <acronym>TAR</acronym>ball into the source tree:</para>
|
||||||
done</command></userinput></screen>
|
|
||||||
|
<screen><userinput><command>cp ../STLport-4.6.2.tar.gz stlport/download/</command></userinput></screen>
|
||||||
|
|
||||||
<para>STLport looks for the c++ headers in the wrong location. Put a
|
<para>STLport looks for the c++ headers in the wrong location. Put a
|
||||||
temporary symlink in place to satisfy STLport:</para>
|
temporary symlink in place to satisfy STLport:</para>
|
||||||
|
|
||||||
<screen><userinput><command>ln -sf /opt/gcc-&gcc3-version;/include/c++/&gcc3-version; /usr/g++-v3</command></userinput></screen>
|
<screen><userinput><command>ln -sf /usr/include/c++/&gcc-version; /usr/g++-v3</command></userinput></screen>
|
||||||
|
|
||||||
<para>OpenOffice fails to build with gcc-3.4.1. Set your path to
|
<para>Create a temprorary symlink to the <acronym>JRE</acronym>'s
|
||||||
include gcc-&gcc3-version;:</para>
|
<application>motif</application> libraries:</para>
|
||||||
|
|
||||||
<screen><userinput><command>export PATH_HOLD=$PATH &&
|
<screen><userinput><command>ln -sf ${JAVA_HOME}/jre/lib/motif21/libmawt.so /usr/lib</command></userinput></screen>
|
||||||
export PATH=/opt/gcc-&gcc3-version;/bin:$PATH</command></userinput></screen>
|
|
||||||
|
|
||||||
<para>If you want to optimize the build, edit
|
<para>If you want to optimize the build, edit
|
||||||
<filename>solenv/inc/unxlngi4.mk</filename> and add the desired optimization
|
<filename>solenv/inc/unxlngi4.mk</filename> and add the desired optimization
|
||||||
@ -173,7 +176,9 @@ fail:</para>
|
|||||||
./configure --with-lang=ENUS \
|
./configure --with-lang=ENUS \
|
||||||
--with-dict=ENUS --without-fonts \
|
--with-dict=ENUS --without-fonts \
|
||||||
--enable-libsn --with-system-zlib \
|
--enable-libsn --with-system-zlib \
|
||||||
--with-system-freetype &&
|
--with-system-freetype \
|
||||||
|
--with-system-curl --disable-fontooo \
|
||||||
|
--enable-libart &&
|
||||||
cd ..</command></userinput></screen>
|
cd ..</command></userinput></screen>
|
||||||
|
|
||||||
<para><application>OpenOffice</application> fails to compile if
|
<para><application>OpenOffice</application> fails to compile if
|
||||||
@ -226,20 +231,16 @@ cp /opt/openoffice/share/gnome/net/ooo645*.desktop \
|
|||||||
/usr/share/applications/ &&
|
/usr/share/applications/ &&
|
||||||
rename ooo645 ooo /usr/share/applications/ooo645*.desktop</command></userinput></screen>
|
rename ooo645 ooo /usr/share/applications/ooo645*.desktop</command></userinput></screen>
|
||||||
|
|
||||||
<para>Finally, return your environment to it's original state:</para>
|
<para>Finally, remove the temporary symlinks:</para>
|
||||||
|
|
||||||
<screen><userinput><command>export PATH=$PATH_HOLD &&
|
<screen><userinput><command>rm /usr/g++-v3 &&
|
||||||
rm -f /usr/g++-v3</command></userinput></screen>
|
rm /usr/lib/libmawt.so</command></userinput></screen>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Command explanations</title>
|
<title>Command explanations</title>
|
||||||
|
|
||||||
<para>
|
|
||||||
<command>mv ../gpc231/gpc.* external/gpc</command>: Copy the gpc files to the
|
|
||||||
appropriate location.</para>
|
|
||||||
|
|
||||||
<para><parameter>--with-lang=ENUS</parameter>: Make install set for the
|
<para><parameter>--with-lang=ENUS</parameter>: Make install set for the
|
||||||
US English language.</para>
|
US English language.</para>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user