Changeset 5aa8088 for general/prog


Ignore:
Timestamp:
09/13/2015 06:00:43 PM (9 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.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, 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:
a1f5cc1
Parents:
1590eb9
Message:

Update to OpenJDK-1.8.0.60

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

Location:
general/prog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/prog/java.xml

    r1590eb9 r5aa8088  
    77  <!ENTITY anduin-download             "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;">
    88  <!ENTITY openjdk-download-binary-x86 "&anduin-download;/OpenJDK-&openjdk-version;-i686-bin.tar.xz">
    9   <!ENTITY openjdk-bin-md5sum-x86      "752a869d9dfb6c3a978f59f87eedafbf">
     9  <!ENTITY openjdk-bin-md5sum-x86      "38296c3c879afde561726fa8505016f1">
    1010  <!ENTITY openjdk-bin-size-x86        "57 MB">
    1111  <!ENTITY openjdk-bin-buildsize-x86   "166 MB">
    1212
    1313  <!ENTITY openjdk-download-binary-x64 "&anduin-download;/OpenJDK-&openjdk-version;-x86_64-bin.tar.xz">
    14   <!ENTITY openjdk-bin-md5sum-x64      "91331d899c4f42dfe5f4016e173cafab">
     14  <!ENTITY openjdk-bin-md5sum-x64      "82e13c0ff68e8f3ac8d1a5cd32f1f65c">
    1515  <!ENTITY openjdk-bin-size-x64        "58 MB">
    1616  <!ENTITY openjdk-bin-buildsize-x64   "169 MB">
  • general/prog/openjdk.xml

    r1590eb9 r5aa8088  
    55  %general-entities;
    66
    7   <!ENTITY ojdk-upd                  "51">
    8   <!ENTITY ojdk-bd                   "b16">
     7  <!ENTITY ojdk-upd                  "60">
     8  <!ENTITY ojdk-bd                   "b27">
    99  <!ENTITY ojdk-tarball              "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2">
    1010  <!ENTITY ojdk-repo                 "http://hg.openjdk.java.net/jdk8u/jdk8u60">
     
    1313  <!ENTITY anduin-download           "http://anduin.linuxfromscratch.org/files/BLFS/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                "0c0b0c3a4698ca8669e78251327ec3ad">
    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               "bcaf6f51627e8f052eff0fdcd8578b4f">
     16  <!ENTITY ojdk-size                 "395 KB">
     17
     18  <!ENTITY corba-md5sum              "002432f496bab8c85f6baf61d65dca27">
     19  <!ENTITY hotspot-md5sum            "a4ebec7c61aa154804761127a1f75eae">
     20  <!ENTITY jaxp-md5sum               "9a7b2a534b4a01ebb559b60023882809">
     21  <!ENTITY jaxws-md5sum              "7ff3e1154d79d208ae89c24355254b49">
     22  <!ENTITY jdk-md5sum                "2f5874a62c2bc74b99118f66d82886da">
     23  <!ENTITY langtools-md5sum          "57ccac8dc86d993e64ff920feb9e54ab">
     24  <!ENTITY nashorn-md5sum            "a8fccf7be7451205e6048b9b2fcd5b24">
     25  <!ENTITY total-download-size       "52 MB">
     26
     27  <!ENTITY jtreg-version             "4.1-b12-389">
     28  <!ENTITY jtreg-download            "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
     29  <!ENTITY jtreg-md5sum              "30a99ab95186741778ae3fa2b248b83b">
     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 371 MB for tests)">
     35  <!ENTITY ojdk-time                "12 SBU (additional 100 SBU for tests)">
    5536]>
    5637
     
    8162    </para>
    8263
    83     &lfs77_checked;&gcc5_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>
     
    270181    <bridgehead renderas="sect4">Recommended</bridgehead>
    271182    <para role="recommended">
    272       <xref linkend="cacerts"/> and
    273       <xref linkend="giflib"/>
     183      <xref linkend="cacerts"/>,
     184      <xref linkend="giflib"/>, and
     185      <xref linkend="wget"/>
    274186    </para>
    275187
     
    296208    </para>
    297209
    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>
     210<screen><userinput>cat &gt; subprojects.md5 &lt;&lt; EOF &amp;&amp;
     211&corba-md5sum;  corba.tar.bz2
     212&hotspot-md5sum;  hotspot.tar.bz2
     213&jaxp-md5sum;  jaxp.tar.bz2
     214&jaxws-md5sum;  jaxws.tar.bz2
     215&langtools-md5sum;  langtools.tar.bz2
     216&jdk-md5sum;  jdk.tar.bz2
     217&nashorn-md5sum;  nashorn.tar.bz2
     218EOF
     219
     220for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     221  wget -c &ojdk-repo;/${subproject}/archive/&ojdk-tarball; \
     222       -O ${subproject}.tar.bz2
     223done &amp;&amp;
     224
     225md5sum -c subprojects.md5 &amp;&amp;
     226
     227for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     228  mkdir -pv ${subproject} &amp;&amp;
     229  tar -xf ${subproject}.tar.bz2 --strip-components=1 -C ${subproject}
     230done</userinput></screen>
    305231
    306232    <para>
     
    308234    </para>
    309235
    310 <screen><userinput>tar -xf ../jtreg&jtreg-version;.tar.xz</userinput></screen>
     236<screen><userinput>tar -xf ../jtreg-&jtreg-version;.tar.gz</userinput></screen>
    311237
    312238<!--TODO: it might be better to add instructions for the cacerts file at
    313239this 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>
    332240
    333241    <note>
     
    348256    </note>
    349257
    350     <para>Configure and build the package with the following commands
    351     (--with-milestone value can be modified to fit user preferences):</para>
     258    <para>
     259      Configure and build the package with the following commands
     260      (--with-milestone value can be modified to fit user preferences):
     261    </para>
    352262
    353263<screen><userinput>unset JAVA_HOME               &amp;&amp;
     
    359269   --with-zlib=system         \
    360270   --with-giflib=system       &amp;&amp;
    361 make DEBUG_BINARIES=true                 \
    362      DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \
    363      all  &amp;&amp;
     271make DEBUG_BINARIES=true all  &amp;&amp;
    364272find build/*/images/j2sdk-image -iname \*.diz -delete
    365273</userinput></screen>
     
    384292"export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand"
    385293but not to the current environment, and
    386 "echo $! .... &&" does not echo the right PID. SO all && suppressed.-->
     294"echo $! .... &&" does not echo the right PID. So all && suppressed.-->
    387295<screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then
    388296  OLD_DISP=$DISPLAY
     
    460368    <para>
    461369      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:
     370      frame buffer, but it has been reported that some java VM may be left
     371      running after the tests, so it is necessary to check orphaned processes:
    464372    </para>
    465373
     
    587495
    588496    <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. Furthermore, OS
    592       version checking in hotspot's Makefile does not account for Linux version
    593       4.x. Disabling the test is harmless and allows building.
     497      <command>make DEBUG_BINARIES=true all</command>: The build fails on
     498      32 bit machines if DEBUG_BINARIES is not set to true.
    594499    </para>
    595500
     
    609514      <title>Configuration Information</title>
    610515
    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>
     516      <para>
     517        Normally, the JAVA environment has been configured after installing
     518        the binary version, and can be used with the just built package as well.
     519        Review <xref linkend="ojdk-conf"/> in case you want to modify
     520        something.
     521      </para>
     522
     523      <para>
     524        To test if the man pages are correctly installed, issue
     525        <command>source /etc/profile</command> and <command>man java</command>
     526        to display the respective man page.
     527      </para>
    619528
    620529    </sect3>
     
    626535      <para>
    627536        <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.
     537        CA certificates. Those certificates are located in a file named
     538        <filename>/opt/jdk/jre/lib/security/cacerts</filename>. That file
     539        may be generated from the one installed using the instructions on the
     540        <xref linkend="cacerts"/> page, with the following procedure.
    632541        First, generate the <command>mkcacerts</command> script
    633542        as the <systemitem class="username">root</systemitem> user:
Note: See TracChangeset for help on using the changeset viewer.