Ignore:
Timestamp:
08/26/2014 01:41:36 PM (10 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, 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, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
eeddb259
Parents:
cc2a12d
Message:

Minor changes to the OpenJDK/Icedtea page

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/openjdk.xml

    rcc2a12d rb1129a10  
    4343  <!ENTITY rhino-size                    "6.2 MB">
    4444
     45  <!ENTITY icedtea-web-download          "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
     46
    4547  <!ENTITY openjdk-buildsize             "8-10 GB">
    4648  <!ENTITY openjdk-time                  "26-27 SBU (an additional 90 SBU for testsuite)">
    4749]>
    4850
    49 <sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;">
     51<sect1 id="openjdk"
     52       xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;">
    5053  <?dbhtml filename="openjdk.html" ?>
    5154
     
    8891    General Public License, version 2, with the Classpath Exception</ulink>
    8992    allows third party programs to use classes provided by free software
    90     without the requirement that the third party software also be free.  As with
     93    without the requirement that the third party software also be free. As with
    9194    the LGPL, any modifications made to the free software portions of a
    9295    third party application, must also be made freely available.</para>
     
    215218    <itemizedlist spacing='compact'>
    216219      <listitem>
    217         <para><ulink
    218         url="&patch-root;/icedtea-&icedtea-version;-add_cacerts-1.patch"/></para>
    219       </listitem>
    220       <listitem>
    221         <para><ulink
    222         url="&patch-root;/icedtea-&icedtea-version;-fixed_paths-1.patch"/></para>
    223       </listitem>
    224       <listitem>
    225         <para><ulink
    226         url="&patch-root;/icedtea-&icedtea-version;-fix_new_giflib-1.patch"/></para>
    227       </listitem>
    228       <listitem>
    229         <para><ulink
    230         url="&patch-root;/icedtea-&icedtea-version;-fix_tests-1.patch"/></para>
     220        <para>
     221          <ulink
     222            url="&patch-root;/icedtea-&icedtea-version;-add_cacerts-1.patch"/>
     223        </para>
     224      </listitem>
     225      <listitem>
     226        <para>
     227          <ulink
     228            url="&patch-root;/icedtea-&icedtea-version;-fixed_paths-1.patch"/>
     229        </para>
     230      </listitem>
     231      <listitem>
     232        <para>
     233          <ulink
     234            url="&patch-root;/icedtea-&icedtea-version;-fix_new_giflib-1.patch"/>
     235        </para>
     236      </listitem>
     237      <listitem>
     238        <para>
     239          <ulink
     240            url="&patch-root;/icedtea-&icedtea-version;-fix_tests-1.patch"/>
     241        </para>
    231242      </listitem>
    232243    </itemizedlist>
     
    241252            <member>Download Size: &rhino-size;</member>
    242253          </simplelist>
     254        </para>
     255      </listitem>
     256    </itemizedlist>
     257
     258    <bridgehead renderas="sect4">Optional package (to obtain an icon for the
     259      <filename>openjdk-7-policytool.desktop</filename> file)</bridgehead>
     260    <itemizedlist spacing='compact'>
     261      <listitem>
     262        <para>
     263          <ulink url="&icedtea-web-download;"/>
    243264        </para>
    244265      </listitem>
     
    272293    <bridgehead renderas="sect4">Optional</bridgehead>
    273294    <para role="optional">
    274       <xref linkend="icedtea-web"/> (to obtain one icon for the
    275       <filename>openjdk-7-policytool.desktop</filename> file),
    276295      <xref linkend="libxslt"/>,
    277296      <xref linkend="lsb-release"/>,
     
    316335    <application>JDK</application> that have been relicensed under an open
    317336    source license.  If you have already downloaded all of the individual
    318     components, place them into the source tree with the following commands:</para>
     337    components, place them into the source tree with the following
     338    commands:</para>
    319339
    320340<screen><userinput>cp -v ../corba.tar.bz2     . &amp;&amp;
     
    340360<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_new_giflib-1.patch</userinput></screen>
    341361
    342     <para>Apply a patch to exclude known broken tests from the test suite:</para>
     362    <para>Apply a patch to exclude known broken tests from the test
     363    suite:</para>
    343364
    344365<screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_tests-1.patch</userinput></screen>
     
    396417    obtain an icon from <xref linkend="icedtea-web"/>:</para>
    397418
    398 <screen role="root"><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz  \
     419<screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz  \
    399420        icedtea-web-&icedtea-web-version;/javaws.png \
    400421        --strip-components=1</userinput></screen>
     
    402423    <para>Now, as <systemitem class="username">root</systemitem> user:</para>
    403424
    404 <screen role="root"><userinput>cat &gt;&gt; /usr/share/applications/openjdk-7-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
     425<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
     426
     427cat &gt; /usr/share/applications/openjdk-7-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
    405428<literal>[Desktop Entry]
    406429Name=OpenJDK Java 7 Policy Tool
     
    417440install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
    418441
    419     <para>The choice of pt_BR is just an example. You can delete those lines
    420     or replace them by corresponding ones in your locale, e.g. fr_FR, with the
    421     "Name[fr_FR]" and "Comment[fr_FR]" values given by your translations.</para>
     442    <para>The choice of pt_BR is just an example. You can add any translation
     443    by adding lines corresponding to your locale, e.g. for fr_FR,
     444    "Name[fr_FR]=" and "Comment[fr_FR]=" with the appropriate text as
     445    values.</para>
    422446
    423447  </sect2>
     
    463487  </sect2>
    464488
    465   <sect2 role="configuration" id="openjdk-config" xreflabel="Configuring OpenJDK" >
     489  <sect2 role="configuration"
     490         id="openjdk-config"
     491         xreflabel="Configuring OpenJDK">
    466492    <title>Configuring OpenJDK</title>
    467493
     
    488514      user:</para>
    489515
    490 <screen role="root"><userinput>cat &gt;&gt; /etc/profile.d/openjdk.sh &lt;&lt; "EOF"
     516<screen role="root"><userinput>cat &gt; /etc/profile.d/openjdk.sh &lt;&lt; "EOF"
    491517<literal># Begin /etc/profile.d/openjdk.sh
    492518
     
    494520JAVA_HOME=/opt/jdk
    495521
     522# Set ANT_HOME directory
     523ANT_HOME=/opt/ant
     524
    496525# Adjust PATH
    497526pathappend $JAVA_HOME/bin PATH
     527pathappend $ANT_HOME/bin PATH
    498528
    499529# Auto Java CLASSPATH
     
    512542done
    513543
    514 export JAVA_HOME CLASSPATH
     544export JAVA_HOME ANT_HOME CLASSPATH
    515545unset AUTO_CLASSPATH_DIR dir jar
    516546
     
    546576
    547577    <sect3 id='ojdk-certs'>
    548       <title>Install or update the JRE Certificate Authority Certificates (cacerts) file</title>
     578      <title>Install or update the JRE Certificate Authority Certificates
     579      (cacerts) file</title>
    549580
    550581      <para>Use the following procedure to check if the
     
    657688        echo "`basename ${0}` creates a valid cacerts file for use with IcedTea."
    658689        echo ""
    659         echo "        -f  --cafile        The path to a file containing PEM formated CA"
    660         echo "                            certificates.  May not be used with -d/--cadir."
    661         echo "        -d  --cadir         The path to a diectory of PEM formatted CA"
    662         echo "                            certificates.  May not be used with -f/--cafile."
    663         echo "        -o  --outfile       The path to the output file."
     690        echo "        -f  --cafile     The path to a file containing PEM"
     691        echo "                         formated CA certificates. May not be"
     692        echo "                         used with -d/--cadir."
    664693        echo ""
    665         echo "        -k  --keytool       The path to the java keytool utility."
     694        echo "        -d  --cadir      The path to a directory of PEM formatted"
     695        echo "                         CA certificates. May not be used with"
     696        echo "                         -f/--cafile."
    666697        echo ""
    667         echo "        -s  --openssl       The path to the openssl utility."
     698        echo "        -o  --outfile    The path to the output file."
    668699        echo ""
    669         echo "        -h  --help          Show this help message and exit."
     700        echo "        -k  --keytool    The path to the java keytool utility."
     701        echo ""
     702        echo "        -s  --openssl    The path to the openssl utility."
     703        echo ""
     704        echo "        -h  --help       Show this help message and exit."
    670705        echo ""
    671706        echo ""
     
    765800    certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1`
    766801    sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}"
    767     echo yes | env LC_ALL=C "${KEYTOOL}" -import -alias `basename "${cert}"` -keystore \
    768                    "${OUTFILE}" -storepass 'changeit' -file "${tempfile}"
     802    echo yes | env LC_ALL=C "${KEYTOOL}" -import                     \
     803                                         -alias `basename "${cert}"` \
     804                                         -keystore "${OUTFILE}"      \
     805                                         -storepass 'changeit'       \
     806                                         -file "${tempfile}"
    769807    rm "${tempfile}"
    770808done
     
    791829    <systemitem class="username">root</systemitem> user:</para>
    792830
    793 <screen role="root"><userinput>/opt/jdk/bin/mkcacerts -d "/etc/ssl/certs/"  -k "/opt/jdk/bin/keytool" \
    794                        -s "/usr/bin/openssl" -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
     831<screen role="root"><userinput>/opt/jdk/bin/mkcacerts            \
     832        -d "/etc/ssl/certs/"      \
     833        -k "/opt/jdk/bin/keytool" \
     834        -s "/usr/bin/openssl"     \
     835        -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen>
    795836
    796837    </sect3>
Note: See TracChangeset for help on using the changeset viewer.