Ignore:
Timestamp:
01/27/2016 11:21:15 PM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
systemd-13485
Children:
1e76622
Parents:
a7e1ac8
Message:

Merge Chapter 13 from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16861 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/openjdk.xml

    ra7e1ac8 r2037ec4  
    55  %general-entities;
    66
    7   <!ENTITY ojdk-upd                  "51">
    8   <!ENTITY ojdk-bd                   "b16">
     7  <!ENTITY ojdk-upd                  "66">
     8  <!ENTITY ojdk-bd                   "b17">
    99  <!ENTITY ojdk-tarball              "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2">
    10   <!ENTITY ojdk-repo                 "http://hg.openjdk.java.net/jdk8u/jdk8u60">
     10  <!ENTITY ojdk-repo                 "http://hg.openjdk.java.net/jdk8u/jdk8u">
    1111  <!ENTITY ojdk-download             "&ojdk-repo;/archive/&ojdk-tarball;">
    1212
    1313  <!ENTITY anduin-download           "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
    1414
    15   <!ENTITY ojdk-md5sum               "b7ff36d84ddef546ea84e7e05c19a43f">
    16   <!ENTITY ojdk-size                 "388 KB">
    17 
    18   <!ENTITY corba-download            "&anduin-download;/corba.tar.xz">
    19   <!ENTITY corba-md5sum              "90bf1db1628913a590b1be044dc61569">
    20   <!ENTITY corba-size                "918 KB">
    21 
    22   <!ENTITY hotspot-download          "&anduin-download;/hotspot.tar.xz">
    23   <!ENTITY hotspot-md5sum            "5702b0b10817111fd2136e9abc82f4d8">
    24   <!ENTITY hotspot-size              "6.3 MB">
    25 
    26   <!ENTITY jaxp-download             "&anduin-download;/jaxp.tar.xz">
    27   <!ENTITY jaxp-md5sum               "37afb7eea36dd0443baa6de379f441b1">
    28   <!ENTITY jaxp-size                 "2.2 MB">
    29 
    30   <!ENTITY jaxws-download            "&anduin-download;/jaxws.tar.xz">
    31   <!ENTITY jaxws-md5sum              "180c01db60522f2e349348cca72ff90c">
    32   <!ENTITY jaxws-size                "2.2 MB">
    33 
    34   <!ENTITY jdk-download              "&anduin-download;/jdk.tar.xz">
    35   <!ENTITY jdk-md5sum                "0c0b0c2a4698ca8669e78251327ec3ad">
    36   <!ENTITY jdk-size                  "36.4 MB">
    37 
    38   <!ENTITY langtools-download        "&anduin-download;/langtools.tar.xz">
    39   <!ENTITY langtools-md5sum          "b2f3787e284e1df1abe66d728e290abb">
    40   <!ENTITY langtools-size            "2.0 MB">
    41 
    42   <!ENTITY nashorn-download          "&anduin-download;/nashorn.tar.xz">
    43   <!ENTITY nashorn-md5sum            "9c9882d6b603274be3e9c7def0edba40">
    44   <!ENTITY nashorn-size              "2.1 MB">
    45 
    46   <!ENTITY jtreg-version             "4.1-b12-356">
    47   <!ENTITY jtreg-download            "&anduin-download;/jtreg&jtreg-version;.tar.xz">
    48   <!ENTITY jtreg-md5sum              "1c8609e1078411a4f6efdd0c194c1716">
    49   <!ENTITY jtreg-size                "7.2 MB">
     15  <!ENTITY ojdk-md5sum               "8b363a941ca813739f63ef81c8b58cb3">
     16  <!ENTITY ojdk-size                 "396 KB">
     17
     18  <!ENTITY corba-md5sum              "c99a63dfaf2b2f8cc549e65b790a2e7a">
     19  <!ENTITY hotspot-md5sum            "d15561707ce64419f36c18e4fba6cbbe">
     20  <!ENTITY jaxp-md5sum               "5b32371928b7aa67646b560e5c89dcde">
     21  <!ENTITY jaxws-md5sum              "05f7c3c91f3a6a38316bb4f406798b61">
     22  <!ENTITY jdk-md5sum                "6d737d1623b83a7acca8c18d0e08dd3d">
     23  <!ENTITY langtools-md5sum          "07223640c22b3ea75f3df81876622ba5">
     24  <!ENTITY nashorn-md5sum            "d5e109b7e2b2daab5874d650293321c8">
     25  <!ENTITY total-download-size       "62 MB">
     26
     27  <!ENTITY jtreg-version             "4.1-b12-420">
     28  <!ENTITY jtreg-download            "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
     29  <!ENTITY jtreg-md5sum              "99bd63afc9f809928073efad0a933697">
     30  <!ENTITY jtreg-size                "7.4 MB">
    5031
    5132  <!ENTITY icedtea-web-download      "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
    5233
    53   <!ENTITY ojdk-buildsize           "3.6 GB (additional 536 MB for tests)">
    54   <!ENTITY ojdk-time                "10 SBU (additional 105 SBU for tests)">
     34  <!ENTITY ojdk-buildsize           "3.7 GB (additional 546 MB for tests)">
     35  <!ENTITY ojdk-time                "11 SBU (additional 104 SBU for tests)">
    5536]>
    5637
     
    8162    </para>
    8263
    83     &lfs77_checked;
     64    &lfs78_checked;
    8465
    8566    <note>
     
    151132        </para>
    152133      </listitem>
    153     </itemizedlist>
    154 
    155     <para>
    156       The following files may be downladed from the OpenJDK mercurial
    157       repository using the addresses <ulink
    158       url="&ojdk-repo;/&lt;component&gt;/archive/&ojdk-tarball;"/>,
    159       where &lt;component&gt; is the name of the JVM component (corba,
    160       hostspot, and so on), but that involves renaming the downloaded files,
    161       and renaming the extracted directories.
    162       For convenience, the BLFS editors have made the files available in an LFS
    163       website.
    164     </para>
    165 
    166     <itemizedlist spacing="compact">
    167134      <listitem>
    168         <para>Corba Source
    169           <simplelist>
    170             <member>Download: <ulink url="&corba-download;"/></member>
    171             <member>Download MD5 sum: &corba-md5sum;</member>
    172             <member>Download Size: &corba-size;</member>
    173           </simplelist>
    174         </para>
    175       </listitem>
    176       <listitem>
    177         <para>Hotspot Source
    178           <simplelist>
    179             <member>Download: <ulink url="&hotspot-download;"/></member>
    180             <member>Download MD5 sum: &hotspot-md5sum;</member>
    181             <member>Download Size: &hotspot-size;</member>
    182           </simplelist>
    183         </para>
    184       </listitem>
    185       <listitem>
    186         <para>JAXP Source
    187           <simplelist>
    188             <member>Download: <ulink url="&jaxp-download;"/></member>
    189             <member>Download MD5 sum: &jaxp-md5sum;</member>
    190             <member>Download Size: &jaxp-size;</member>
    191           </simplelist>
    192         </para>
    193       </listitem>
    194       <listitem>
    195         <para>JAXWS Source
    196           <simplelist>
    197             <member>Download: <ulink url="&jaxws-download;"/></member>
    198             <member>Download MD5 sum: &jaxws-md5sum;</member>
    199             <member>Download Size: &jaxws-size;</member>
    200           </simplelist>
    201         </para>
    202       </listitem>
    203       <listitem>
    204         <para>Langtools Source
    205           <simplelist>
    206             <member>Download: <ulink url="&langtools-download;"/></member>
    207             <member>Download MD5 sum: &langtools-md5sum;</member>
    208             <member>Download Size: &langtools-size;</member>
    209           </simplelist>
    210         </para>
    211       </listitem>
    212       <listitem>
    213         <para>JDK Source
    214           <simplelist>
    215             <member>Download: <ulink url="&jdk-download;"/></member>
    216             <member>Download MD5 sum: &jdk-md5sum;</member>
    217             <member>Download Size: &jdk-size;</member>
    218           </simplelist>
    219         </para>
    220       </listitem>
    221       <listitem>
    222         <para>Nashorn Source
    223           <simplelist>
    224             <member>Download: <ulink url="&nashorn-download;"/></member>
    225             <member>Download MD5 sum: &nashorn-md5sum;</member>
    226             <member>Download Size: &nashorn-size;</member>
    227           </simplelist>
     135        <para>
     136          In addition to the root package, the instructions below first
     137          download seven subproject tarballs,
     138          whose total size is &total-download-size;.
    228139        </para>
    229140      </listitem>
     
    240151    <itemizedlist spacing='compact'>
    241152      <listitem>
     153        <para>Otional test harness
     154          <simplelist>
     155            <member>Download: <ulink url="&jtreg-download;"/></member>
     156            <member>Download MD5 sum: &jtreg-md5sum;</member>
     157            <member>Download Size: &jtreg-size;</member>
     158          </simplelist>
     159        </para>
     160      </listitem>
     161      <listitem>
    242162        <para>
    243163          Optional package (to get an icon for the
    244164          <filename>openjdk-8-policytool.desktop</filename> file):
    245165          <ulink url="&icedtea-web-download;"/>
    246         </para>
    247       </listitem>
    248       <listitem>
    249         <para>
    250           Recommended test harness: <ulink url="&jtreg-download;"/>
    251166        </para>
    252167      </listitem>
     
    270185    <bridgehead renderas="sect4">Recommended</bridgehead>
    271186    <para role="recommended">
    272       <xref linkend="cacerts"/> and
    273       <xref linkend="giflib"/>
     187      <xref linkend="cacerts"/>,
     188      <xref linkend="giflib"/>, and
     189      <xref linkend="wget"/>
    274190    </para>
    275191
     
    296212    </para>
    297213
    298 <screen><userinput>tar -xf ../corba.tar.xz      &amp;&amp;
    299 tar -xf ../hotspot.tar.xz    &amp;&amp;
    300 tar -xf ../jaxp.tar.xz       &amp;&amp;
    301 tar -xf ../jaxws.tar.xz      &amp;&amp;
    302 tar -xf ../jdk.tar.xz        &amp;&amp;
    303 tar -xf ../langtools.tar.xz  &amp;&amp;
    304 tar -xf ../nashorn.tar.xz</userinput></screen>
    305 
    306     <para>
    307       If you have downloaded the recommended test harness, unpack it too:
    308     </para>
    309 
    310 <screen><userinput>tar -xf ../jtreg&jtreg-version;.tar.xz</userinput></screen>
     214<screen><userinput>cat &gt; subprojects.md5 &lt;&lt; EOF &amp;&amp;
     215&corba-md5sum;  corba.tar.bz2
     216&hotspot-md5sum;  hotspot.tar.bz2
     217&jaxp-md5sum;  jaxp.tar.bz2
     218&jaxws-md5sum;  jaxws.tar.bz2
     219&langtools-md5sum;  langtools.tar.bz2
     220&jdk-md5sum;  jdk.tar.bz2
     221&nashorn-md5sum;  nashorn.tar.bz2
     222EOF
     223
     224for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     225  wget -c &ojdk-repo;/${subproject}/archive/&ojdk-tarball; \
     226       -O ${subproject}.tar.bz2
     227done &amp;&amp;
     228
     229md5sum -c subprojects.md5 &amp;&amp;
     230
     231for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     232  mkdir -pv ${subproject} &amp;&amp;
     233  tar -xf ${subproject}.tar.bz2 --strip-components=1 -C ${subproject}
     234done</userinput></screen>
     235
     236    <para>
     237      If you have downloaded the optional test harness, unpack it too:
     238    </para>
     239
     240<screen><userinput>tar -xf ../jtreg-&jtreg-version;.tar.gz</userinput></screen>
    311241
    312242<!--TODO: it might be better to add instructions for the cacerts file at
    313243this place and to use the switch "with-cacerts-file" -->
    314 
    315     <para>
    316       Fix an issue with the new (since 5.1.0) giflib API:
    317     </para>
    318 
    319 <screen><userinput>sed -e 's/DGifCloseFile(gif/&amp;, NULL/' \
    320     -e '/DGifOpen/s/c)/c, NULL)/'     \
    321     -i jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c</userinput></screen>
    322 
    323     <para>
    324       One file in hotspot needs a change, since it relies on a non-normative
    325       compiler behavior, which has changed with GCC version 5. Note that the change
    326       works also with previous versions.
    327     </para>
    328 
    329 <screen><userinput>sed -e 's/(hi - lo)/ hi - lo /' \
    330     -e 's/(lo - hi)/ lo - hi /' \
    331     -i hotspot/src/share/vm/opto/type.cpp</userinput></screen>
    332244
    333245    <note>
     
    339251        installations do not need <envar>JAVA_HOME</envar> and
    340252        <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK
    341         developers recommand to unset <envar>JAVA_HOME</envar>.
     253        developers recommend to unset <envar>JAVA_HOME</envar>.
    342254      </para>
    343255
     
    348260    </note>
    349261
    350     <para>Configure and build the package with the following commands
    351     (--with-milestone value can be modified to fit user preferences):</para>
     262    <para>
     263      Configure and build the package with the following commands
     264      (--with-milestone value can be modified to fit user preferences):
     265    </para>
    352266
    353267<screen><userinput>unset JAVA_HOME               &amp;&amp;
     
    359273   --with-zlib=system         \
    360274   --with-giflib=system       &amp;&amp;
    361 make DEBUG_BINARIES=true                 \
    362      DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \
    363      all  &amp;&amp;
     275make DEBUG_BINARIES=true all  &amp;&amp;
    364276find build/*/images/j2sdk-image -iname \*.diz -delete
    365277</userinput></screen>
     
    384296"export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand"
    385297but not to the current environment, and
    386 "echo $! .... &&" does not echo the right PID. SO all && suppressed.-->
     298"echo $! .... &&" does not echo the right PID. So all && suppressed.-->
    387299<screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then
    388300  OLD_DISP=$DISPLAY
     
    450362
    451363    <para>
    452       The test results can be compared to
    453       <ulink url="http://download.java.net/openjdk/testresults/8/">these
    454       results</ulink>, although they usually are run on a newer version.
    455       Some failures can be expected, the number of which depends on various
     364      The test results can be compared to <ulink
     365      url="http://download.java.net/openjdk/testresults/8/">these
     366      results</ulink>, although they usually are run on a newer version.  Some
     367      failures can be expected, the number of which depends on various
    456368      conditions, like whether the computer is connected to network. Also, some
    457       tests may timeout if the machine is under load.
     369      tests may timeout if the machine is under load. Those are the reasons for
     370      considering the tests optional, although we would rather recommend them.
    458371    </para>
    459372
    460373    <para>
    461374      Next some cleanup has to be done. The instructions below only stop the
    462       frame buffer, but it has been reported that some java VM may be left running
    463       after the tests, so it is necessary to check orphaned processes:
     375      frame buffer, but it has been reported that some java VM may be left
     376      running after the tests, so it is necessary to check orphaned processes:
    464377    </para>
    465378
     
    487400    </para>
    488401
    489 <screen role="root"><userinput>ln -sfvn OpenJDK-&openjdk-version; /opt/jdk</userinput></screen>
     402<screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen>
    490403
    491404    <para>If desired, you may install a .desktop file corresponding to an entry
     
    514427EOF
    515428
    516 install -v -Dm644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
     429install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
    517430
    518431    <para>The choice of pt_BR is just an example. You can add any translation
     
    587500
    588501    <para>
    589       <command>make DEBUG_BINARIES=true
    590       DISABLE_HOTSPOT_OS_VERSION_CHECK=ok all</command>: The build fails on
    591       32-bit machines if DEBUG_BINARIES is not set to true.
    592       Furthermore, OS version checking in hotspot's Makefile does not account
    593       for Linux version 4.x. Disabling the test is harmless and allows building.
     502      <command>make DEBUG_BINARIES=true all</command>: The build fails on
     503      32 bit machines if DEBUG_BINARIES is not set to true.
    594504    </para>
    595505
     
    609519      <title>Configuration Information</title>
    610520
    611     <para>Normally, the JAVA environment has been configured after installing
    612     the binary version, and can be used with the just built package as well.
    613     Review <xref linkend="ojdk-conf"/> in case you want to modify
    614     something.</para>
    615 
    616     <para>To test if the man pages are correctly installed, issue
    617     <command>source /etc/profile</command> and <command>man java</command> to
    618     display the respective man page.</para>
     521      <para>
     522        Normally, the JAVA environment has been configured after installing
     523        the binary version, and can be used with the just built package as well.
     524        Review <xref linkend="ojdk-conf"/> in case you want to modify
     525        something.
     526      </para>
     527
     528      <para>
     529        To test if the man pages are correctly installed, issue
     530        <command>source /etc/profile</command> and <command>man java</command>
     531        to display the respective man page.
     532      </para>
    619533
    620534    </sect3>
     
    626540      <para>
    627541        <application>OpenJDK</application> uses its own format for the
    628         CA certificates. Those certificates are located in a file named <filename>
    629         /opt/jdk/jre/lib/security/cacerts</filename>. That file may be generated
    630         from the one installed using the instructions on the <xref
    631         linkend="cacerts"/> page, using the following procedure.
     542        CA certificates. Those certificates are located in a file named
     543        <filename>/opt/jdk/jre/lib/security/cacerts</filename>. That file
     544        may be generated from the one installed using the instructions on the
     545        <xref linkend="cacerts"/> page, with the following procedure.
    632546        First, generate the <command>mkcacerts</command> script
    633547        as the <systemitem class="username">root</systemitem> user:
     
    851765EOF
    852766
    853 chmod -v 755 /opt/jdk/bin/mkcacerts</userinput></screen>
     767chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen>
    854768
    855769  <note>
Note: See TracChangeset for help on using the changeset viewer.