Changeset 2037ec4 for general/prog/openjdk.xml
- Timestamp:
- 01/27/2016 11:21:15 PM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 1e76622
- Parents:
- a7e1ac8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/openjdk.xml
ra7e1ac8 r2037ec4 5 5 %general-entities; 6 6 7 <!ENTITY ojdk-upd " 51">8 <!ENTITY ojdk-bd "b1 6">7 <!ENTITY ojdk-upd "66"> 8 <!ENTITY ojdk-bd "b17"> 9 9 <!ENTITY ojdk-tarball "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2"> 10 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk8u/jdk8u 60">10 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk8u/jdk8u"> 11 11 <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;"> 12 12 13 13 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;"> 14 14 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"> 50 31 51 32 <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz"> 52 33 53 <!ENTITY ojdk-buildsize "3. 6 GB (additional 536 MB for tests)">54 <!ENTITY ojdk-time "1 0 SBU (additional 105SBU 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)"> 55 36 ]> 56 37 … … 81 62 </para> 82 63 83 &lfs7 7_checked;64 &lfs78_checked; 84 65 85 66 <note> … … 151 132 </para> 152 133 </listitem> 153 </itemizedlist>154 155 <para>156 The following files may be downladed from the OpenJDK mercurial157 repository using the addresses <ulink158 url="&ojdk-repo;/<component>/archive/&ojdk-tarball;"/>,159 where <component> 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 LFS163 website.164 </para>165 166 <itemizedlist spacing="compact">167 134 <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;. 228 139 </para> 229 140 </listitem> … … 240 151 <itemizedlist spacing='compact'> 241 152 <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> 242 162 <para> 243 163 Optional package (to get an icon for the 244 164 <filename>openjdk-8-policytool.desktop</filename> file): 245 165 <ulink url="&icedtea-web-download;"/> 246 </para>247 </listitem>248 <listitem>249 <para>250 Recommended test harness: <ulink url="&jtreg-download;"/>251 166 </para> 252 167 </listitem> … … 270 185 <bridgehead renderas="sect4">Recommended</bridgehead> 271 186 <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"/> 274 190 </para> 275 191 … … 296 212 </para> 297 213 298 <screen><userinput>tar -xf ../corba.tar.xz && 299 tar -xf ../hotspot.tar.xz && 300 tar -xf ../jaxp.tar.xz && 301 tar -xf ../jaxws.tar.xz && 302 tar -xf ../jdk.tar.xz && 303 tar -xf ../langtools.tar.xz && 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 > subprojects.md5 << EOF && 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 222 EOF 223 224 for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do 225 wget -c &ojdk-repo;/${subproject}/archive/&ojdk-tarball; \ 226 -O ${subproject}.tar.bz2 227 done && 228 229 md5sum -c subprojects.md5 && 230 231 for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do 232 mkdir -pv ${subproject} && 233 tar -xf ${subproject}.tar.bz2 --strip-components=1 -C ${subproject} 234 done</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> 311 241 312 242 <!--TODO: it might be better to add instructions for the cacerts file at 313 243 this 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/&, 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-normative325 compiler behavior, which has changed with GCC version 5. Note that the change326 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>332 244 333 245 <note> … … 339 251 installations do not need <envar>JAVA_HOME</envar> and 340 252 <envar>CLASSPATH</envar> is not used here. Furthermore, OpenJDK 341 developers recomm and to unset <envar>JAVA_HOME</envar>.253 developers recommend to unset <envar>JAVA_HOME</envar>. 342 254 </para> 343 255 … … 348 260 </note> 349 261 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> 352 266 353 267 <screen><userinput>unset JAVA_HOME && … … 359 273 --with-zlib=system \ 360 274 --with-giflib=system && 361 make DEBUG_BINARIES=true \ 362 DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \ 363 all && 275 make DEBUG_BINARIES=true all && 364 276 find build/*/images/j2sdk-image -iname \*.diz -delete 365 277 </userinput></screen> … … 384 296 "export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand" 385 297 but not to the current environment, and 386 "echo $! .... &&" does not echo the right PID. S Oall && suppressed.-->298 "echo $! .... &&" does not echo the right PID. So all && suppressed.--> 387 299 <screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then 388 300 OLD_DISP=$DISPLAY … … 450 362 451 363 <para> 452 The test results can be compared to 453 <ulinkurl="http://download.java.net/openjdk/testresults/8/">these454 results</ulink>, although they usually are run on a newer version. 455 Somefailures can be expected, the number of which depends on various364 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 456 368 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. 458 371 </para> 459 372 460 373 <para> 461 374 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 running463 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: 464 377 </para> 465 378 … … 487 400 </para> 488 401 489 <screen role="root"><userinput>ln - sfvnOpenJDK-&openjdk-version; /opt/jdk</userinput></screen>402 <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen> 490 403 491 404 <para>If desired, you may install a .desktop file corresponding to an entry … … 514 427 EOF 515 428 516 install -v -Dm 644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>429 install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen> 517 430 518 431 <para>The choice of pt_BR is just an example. You can add any translation … … 587 500 588 501 <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. 594 504 </para> 595 505 … … 609 519 <title>Configuration Information</title> 610 520 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> 619 533 620 534 </sect3> … … 626 540 <para> 627 541 <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 generated630 from the one installed using the instructions on the <xref631 linkend="cacerts"/> page, usingthe 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. 632 546 First, generate the <command>mkcacerts</command> script 633 547 as the <systemitem class="username">root</systemitem> user: … … 851 765 EOF 852 766 853 chmod - v755 /opt/jdk/bin/mkcacerts</userinput></screen>767 chmod -c 0755 /opt/jdk/bin/mkcacerts</userinput></screen> 854 768 855 769 <note>
Note:
See TracChangeset
for help on using the changeset viewer.