Changeset 9255931 for general


Ignore:
Timestamp:
01/25/2004 02:38:24 AM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
7426781
Parents:
1fdbdb4
Message:

Updated to j2sdk-1.4.2

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1718 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
general/prog/jdk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • general/prog/jdk/j2sdk-config.xml

    r1fdbdb4 r9255931  
    2828</sect3>
    2929
     30<sect3><title>Handling CLASSPATH</title>
     31
     32<para>When compiling packages, the <envar>CLASSPATH</envar> environment variable
     33is used JDK to locate classes at compile-time and run-time. It is tedious to
     34add all the classes used to the <envar>CLASSPATH</envar> manually. You may add
     35the following lines to your shell startup file to set <envar>CLASSPATH</envar>
     36automatically to include all JAR files in a specified directory, which in
     37the example below is <filename>/usr/lib/auto-java-classpath</filename>.</para>
     38
     39<screen><userinput>AUTO_CLASSPATH_DIR=/usr/lib/auto-java-classpath
     40if [ -z $CLASSPATH ]
     41then
     42  CLASSPATH=.:$AUTO_CLASSPATH_DIR
     43else
     44  CLASSPATH=$CLASSPATH:.:$AUTO_CLASSPATH_DIR
     45fi
     46for i in $(ls $AUTO_CLASSPATH_DIR/*.jar 2>/dev/null)
     47do
     48  CLASSPATH=$CLASSPATH:$i
     49done</userinput></screen>
     50
     51</sect3>
     52
    3053</sect2>
    3154
  • general/prog/jdk/j2sdk-inst.xml

    r1fdbdb4 r9255931  
    77<para>Installation of the precompiled <acronym>JDK</acronym> is easy, change
    88the executable bit for the downloaded file, change to the directory where you
    9 want it installed and execute the downloaded file.</para>
     9want it installed and execute the downloaded file. The following (slightly
     10cryptic version) allows automatic installation.</para>
    1011
    1112<screen><userinput><command>VERSION=&j2sdk-bin-version; &amp;&amp;
    1213MV=`echo $VERSION | cut -d "_" -f 1,1` &amp;&amp;
    1314V=`echo ${VERSION} | sed -e "s/\./_/g"` &amp;&amp;
     15sed -i "s:^PATH=.*::" j2sdk-${V}-linux-i?86.bin &amp;&amp;
    1416chmod +x j2sdk-${V}-linux-i?86.bin &amp;&amp;
    15 ./j2sdk-${V}-linux-i?86.bin &amp;&amp;
     17mkdir -p bin &amp;&amp;
     18ln -sf /bin/true bin/more &amp;&amp;
     19yes | PATH=$PWD/bin:$PATH ./j2sdk-${V}-linux-i?86.bin &amp;&amp;
    1620cd j2sdk${VERSION} &amp;&amp;
    1721install -d /opt/j2sdk/j2sdk-precompiled-${MV} &amp;&amp;
     
    2832export PATH=$PATH:${JAVA_HOME}/bin</command></userinput></screen>
    2933
    30 <para>Unzip and patch the source:</para>
     34<para>Unzip the source:</para>
    3135
    3236<screen><userinput><command>VERSION=&j2sdk-src-version; &amp;&amp;
     
    3438unzip j2sdk-${V}-src-scsl.zip &amp;&amp;
    3539unzip j2sdk-${V}-mozilla_headers-unix.zip &amp;&amp;
    36 patch -Np1 -i j2sdk-${VERSION}-gcc33-1.patch &amp;&amp;
    37 patch -Np1 -i j2sdk-${VERSION}-fix-intl-files.patch &amp;&amp;
    38 patch -Np1 -i j2sdk-${VERSION}-link-missing-libs.patch &amp;&amp;
    39 patch -Np1 -i j2sdk-${VERSION}-remove-fixed-paths.patch &amp;&amp;
    40 patch -Np1 -i j2sdk-${VERSION}-syntax-fixes.patch &amp;&amp;
    41 patch -Np1 -i j2sdk-${VERSION}-motif-mkmsgcat.patch &amp;&amp;
    42 patch -Np1 -i j2sdk-${VERSION}-use-included-motif.patch</command></userinput></screen>
     40unzip j2sdk-${V}-bin-scsl.zip</command></userinput></screen>
    4341
    44 <para>Set some variables which affect the build:</para>
     42<para>Apply all the patches downloaded above.</para>
     43
     44<screen><userinput><command>for PATCH in fix-inline-asm-1 gcc3-1 motif-mkmsgcat \
     45             remove-debug-image remove-fixed-paths-1 \
     46             static_cxx
     47do
     48   patch -Np1 -i j2sdk-1.4.2-$PATCH.patch &amp;&amp;
     49done</command></userinput></screen>
     50
     51<para>Set/unset some variables which affect the build:</para>
    4552<screen><userinput><command>export ALT_BOOTDIR="$JAVA_HOME" &amp;&amp;
    4653unset JAVA_HOME &amp;&amp;
     
    5663export MAKE_VERBOSE=true &amp;&amp;
    5764export ALT_CACERTS_FILE=${ALT_BOOTDIR}/jre/lib/security/cacerts</command></userinput></screen>
     65
     66<warning><para>Setting CFLAGS/CXXFLAGS/LDFLAGS is guaranteed to make the build fail.
     67If you are interested in optimizing the build, set OTHER_CFLAGS/OTHER_CXXFLAGS/OTHER_LDFLAGS
     68instead.</para></warning>
    5869
    5970<para>Additionally, if you would like to make in parallel, add the following
  • general/prog/jdk/j2sdk-intro.xml

    r1fdbdb4 r9255931  
    3838<listitem><para>Download (HTTP): <ulink
    3939url="&j2sdk-download-http;"/></para></listitem>
     40<!--
    4041<listitem><para>Download (FTP): <ulink
    4142url="&j2sdk-download-ftp;"/></para></listitem>
     43-->
    4244<listitem><para>Version used (binary):
    4345&j2sdk-bin-version;</para></listitem>
     
    5254<sect3><title>Additional downloads</title>
    5355<itemizedlist spacing='compact'>
    54 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-fix-intl-files.patch"/></para></listitem>
    55 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-gcc33-1.patch"/></para></listitem>
    56 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-link-missing-libs.patch"/></para></listitem>
    57 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-motif-mkmsgcat.patch"/></para></listitem>
    58 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-remove-fixed-paths.patch"/></para></listitem>
    59 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-syntax-fixes.patch"/></para></listitem>
    60 <listitem><para><ulink url="&patch-root;/j2sdk-1.4.1-use-included-motif.patch"/></para></listitem>
     56<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-fix-inline-asm-1.patch"/></para></listitem>
     57<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-gcc33-1.patch"/></para></listitem>
     58<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-motif-mkmsgcat.patch"/></para></listitem>
     59<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove-debug-image.patch"/></para></listitem>
     60<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-remove-fixed-paths-1.patch"/></para></listitem>
     61<listitem><para><ulink url="&patch-root;/j2sdk-1.4.2-static_cxx.patch"/></para></listitem>
    6162</itemizedlist>
    6263</sect3>
     
    6667<sect4><title>Required</title>
    6768<para><xref linkend="xfree86"/>, <xref linkend="zip"/>, <xref
    68 linkend="unzip"/>, <xref linkend="cpio"/>, and <xref linkend="tcsh"/>
     69linkend="unzip"/>, <xref linkend="cpio"/>, <xref linkend="alsa"/>,
     70and <xref linkend="tcsh"/>
    6971</para></sect4>
    7072</sect3>
  • general/prog/jdk/j2sdk.ent

    r1fdbdb4 r9255931  
    55<!ENTITY j2sdk-config SYSTEM "j2sdk-config.xml">
    66<!ENTITY j2sdk-desc SYSTEM "j2sdk-desc.xml">
    7 <!ENTITY j2sdk-bin-version "1.4.2_01">
    8 <!ENTITY j2sdk-src-version "1.4.1">
     7<!ENTITY j2sdk-bin-version "1.4.2_03">
     8<!ENTITY j2sdk-src-version "1.4.2">
    99<!ENTITY j2sdk-download-http "http://freshmeat.net/projects/sunjdk">
    1010<!ENTITY j2sdk-download-ftp "">
Note: See TracChangeset for help on using the changeset viewer.