Changeset 64135787 for general/prog/openjdk.xml
- Timestamp:
- 04/13/2021 09:31:15 PM (3 years ago)
- Branches:
- kde5-14269
- Parents:
- 1ec0251
- git-author:
- Krejzi <krejzi@…> (09/13/2014 05:36:06 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (04/13/2021 09:31:15 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/openjdk.xml
r1ec0251 r64135787 5 5 %general-entities; 6 6 7 <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version; ">7 <!ENTITY anduin-download "http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-&openjdk-version;-&icedtea-version;"> 8 8 <!ENTITY icedtea-download "http://icedtea.classpath.org/download/source/icedtea-&icedtea-version;.tar.xz"> 9 9 10 <!ENTITY icedtea-md5sum " de88ab45dcea7a4c2088f845b0dfe542">10 <!ENTITY icedtea-md5sum "6c57b54ab8b7916425d567dbb478ad73"> 11 11 <!ENTITY icedtea-size "1.9 MB"> 12 12 13 13 <!ENTITY corba-download "&anduin-download;/corba.tar.bz2"> 14 <!ENTITY corba-md5sum " 381f9c3694b302064520b603feb8aba3">14 <!ENTITY corba-md5sum "86cf23060d726aa55d77bffedb8b6a99"> 15 15 <!ENTITY corba-size "1.0 MB"> 16 16 17 17 <!ENTITY hotspot-download "&anduin-download;/hotspot.tar.bz2"> 18 <!ENTITY hotspot-md5sum " 79442639a24fedefe0ca5c3a66f87fe1">18 <!ENTITY hotspot-md5sum "026bb8ca9e764fe53b8a19f1ddad1479"> 19 19 <!ENTITY hotspot-size "7.4 MB"> 20 20 21 21 <!ENTITY jaxp-download "&anduin-download;/jaxp.tar.bz2"> 22 <!ENTITY jaxp-md5sum " 0c11aeb494fb76143ccf0b58b0b6ac96">22 <!ENTITY jaxp-md5sum "cbd3226b916fe9e6c7e9f1cd15e54d55"> 23 23 <!ENTITY jaxp-size "2.6 MB"> 24 24 25 25 <!ENTITY jaxws-download "&anduin-download;/jaxws.tar.bz2"> 26 <!ENTITY jaxws-md5sum " ab102f6a0e4bb56a5153d0a005451566">26 <!ENTITY jaxws-md5sum "84b921fc3e328eea770dc1a092e240dc"> 27 27 <!ENTITY jaxws-size "1.9 MB"> 28 28 29 29 <!ENTITY jdk-download "&anduin-download;/jdk.tar.bz2"> 30 <!ENTITY jdk-md5sum " 5183620f97e366267568f4e613b71f28">30 <!ENTITY jdk-md5sum "b5a4703501bf4a6adeaa614e6d2345b3"> 31 31 <!ENTITY jdk-size "30.2 MB"> 32 32 33 33 <!ENTITY langtools-download "&anduin-download;/langtools.tar.bz2"> 34 <!ENTITY langtools-md5sum " 04b5c20b2320f75c1f510e0b53f6480c">34 <!ENTITY langtools-md5sum "e104e60e44aba0a8bc60c48df1d859b9"> 35 35 <!ENTITY langtools-size "1.6 MB"> 36 36 37 37 <!ENTITY openjdk-download "&anduin-download;/openjdk.tar.bz2"> 38 <!ENTITY openjdk-md5sum " 9a599c97007df0f6156767e914063956">38 <!ENTITY openjdk-md5sum "f48d6f8b748f869a5624d2c44998d54c"> 39 39 <!ENTITY openjdk-size "122 KB"> 40 40 … … 43 43 <!ENTITY rhino-size "6.2 MB"> 44 44 45 <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz"> 46 45 47 <!ENTITY openjdk-buildsize "8-10 GB"> 46 <!ENTITY openjdk-time "2 6-27 SBU (an additional 90 SBU for testsuite)">48 <!ENTITY openjdk-time "28-36 SBU (an additional 100 SBU for testsuite)"> 47 49 ]> 48 50 49 <sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;"> 51 <sect1 id="openjdk" 52 xreflabel="OpenJDK-&openjdk-version;/IcedTea-&icedtea-version;"> 50 53 <?dbhtml filename="openjdk.html" ?> 51 54 … … 75 78 programs.</para> 76 79 77 &lfs7 6_checked;80 &lfs75_checked; 78 81 79 82 <note><para>The browser plugin and webstart implementation have been split … … 88 91 General Public License, version 2, with the Classpath Exception</ulink> 89 92 allows third party programs to use classes provided by free software 90 without the requirement that the third party software also be free. 93 without the requirement that the third party software also be free. As with 91 94 the LGPL, any modifications made to the free software portions of a 92 95 third party application, must also be made freely available.</para> … … 215 218 <itemizedlist spacing='compact'> 216 219 <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> 231 242 </listitem> 232 243 </itemizedlist> … … 241 252 <member>Download Size: &rhino-size;</member> 242 253 </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;"/> 243 264 </para> 244 265 </listitem> … … 272 293 <bridgehead renderas="sect4">Optional</bridgehead> 273 294 <para role="optional"> 274 <xref linkend="icedtea-web"/> (to obtain icon file for the275 <command>policytool</command> menu entry),276 295 <xref linkend="libxslt"/>, 277 296 <xref linkend="lsb-release"/>, … … 316 335 <application>JDK</application> that have been relicensed under an open 317 336 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> 319 339 320 340 <screen><userinput>cp -v ../corba.tar.bz2 . && … … 340 360 <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_new_giflib-1.patch</userinput></screen> 341 361 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> 343 364 344 365 <screen><userinput>patch -Np1 -i ../icedtea-&icedtea-version;-fix_tests-1.patch</userinput></screen> 345 366 367 <note> 368 <para> 369 Before proceeding, you should ensure that your environment is 370 properly set for building <application>OpenJDK</application>. First, 371 review the content of the <envar>ANT_HOME</envar> variable. 372 Second, the <envar>PATH</envar> variable should contain the paths to 373 the <command>java</command> and <command>ant</command> executables. 374 Last, the <envar>CLASSPATH</envar> variable should be set as 375 explained on the <xref linkend="java"/> and <xref linkend="junit"/> 376 pages. 377 </para> 378 </note> 346 379 <para>Configure and build the package with the following commands 347 380 (--with-pkgversion and --with-version-suffix values can be modified to fit … … 392 425 chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen> 393 426 394 <para>If desired, you may install a <filename class="extension">.desktop</filename> 395 file so <command>policytool</command> can be accessed from a desktop menu. First, 396 you need to obtain an icon from the <xref linkend="icedtea-web"/> 397 tarball:</para> 398 399 <screen role="root"><userinput>tar -xf icedtea-web-&icedtea-web-version;.tar.gz \ 427 <para>If desired, you may install a .desktop file corresponding to an entry 428 in a desktop menu for <command>policytool</command>. First, you need to 429 obtain an icon from <xref linkend="icedtea-web"/>:</para> 430 431 <screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \ 400 432 icedtea-web-&icedtea-web-version;/javaws.png \ 401 433 --strip-components=1</userinput></screen> … … 403 435 <para>Now, as <systemitem class="username">root</systemitem> user:</para> 404 436 405 <screen role="root"><userinput>cat ;> /usr/share/applications/openjdk-7-policytool.desktop << "EOF" && 437 <screen role="root"><userinput>mkdir -pv /usr/share/applications && 438 439 cat > /usr/share/applications/openjdk-7-policytool.desktop << "EOF" && 406 440 <literal>[Desktop Entry] 407 441 Name=OpenJDK Java 7 Policy Tool … … 416 450 EOF 417 451 418 install -v -Dm644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen> 419 420 <para>The choice of pt_BR is just an example. You can delete those lines 421 or replace them by corresponding ones in your locale, e.g. fr_FR, with the 422 "Name[fr_FR]" and "Comment[fr_FR]" values given by your translations.</para> 452 install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen> 453 454 <para>The choice of pt_BR is just an example. You can add any translation 455 by adding lines corresponding to your locale, e.g. for fr_FR, 456 <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the 457 appropriate text as values.</para> 423 458 424 459 </sect2> … … 443 478 security provider.</para> 444 479 445 <para><parameter>--disable-system-kerberos</parameter>: Remove this switch 480 <para><parameter>--disable-system-kerberos</parameter>: Remove this switch, 446 481 if <xref linkend="mitkrb"/> is installed.</para> 447 482 … … 464 499 </sect2> 465 500 466 <sect2 role="configuration" id="openjdk-config" xreflabel="Configuring OpenJDK" > 501 <sect2 role="configuration" 502 id="openjdk-config" 503 xreflabel="Configuring OpenJDK"> 467 504 <title>Configuring OpenJDK</title> 468 505 … … 476 513 the <systemitem class="username">root</systemitem> user:</para> 477 514 478 <screen role="root"><userinput>ln - sfvOpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen>515 <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version;-bin /opt/jdk</userinput></screen> 479 516 480 517 <para>The information below assumes your system is set up using the … … 489 526 user:</para> 490 527 491 <screen role="root"><userinput>cat > >/etc/profile.d/openjdk.sh << "EOF"528 <screen role="root"><userinput>cat > /etc/profile.d/openjdk.sh << "EOF" 492 529 <literal># Begin /etc/profile.d/openjdk.sh 493 530 … … 495 532 JAVA_HOME=/opt/jdk 496 533 534 # Set ANT_HOME directory 535 ANT_HOME=/opt/ant 536 497 537 # Adjust PATH 498 538 pathappend $JAVA_HOME/bin PATH 539 pathappend $ANT_HOME/bin PATH 499 540 500 541 pathappend $JAVA_HOME/include C_INCLUDE_PATH … … 545 586 mandb -c /opt/jdk/man</userinput></screen> 546 587 547 <para>To test the man pages are correctly installed, issue <command>source /etc/profile</command> and <command>man java</command> to display the respective man page.</para> 588 <para>To test if the man pages are correctly installed, issue 589 <command>source /etc/profile</command> and <command>man java</command> to 590 display the respective man page.</para> 548 591 549 592 </sect3> 550 593 551 594 <sect3 id='ojdk-certs'> 552 <title>Install or update the JRE Certificate Authority Certificates (cacerts) file</title> 595 <title>Install or update the JRE Certificate Authority Certificates 596 (cacerts) file</title> 553 597 554 598 <para>Use the following procedure to check if the … … 661 705 echo "`basename ${0}` creates a valid cacerts file for use with IcedTea." 662 706 echo "" 663 echo " -f --cafile The path to a file containing PEM formated CA" 664 echo " certificates. May not be used with -d/--cadir." 665 echo " -d --cadir The path to a diectory of PEM formatted CA" 666 echo " certificates. May not be used with -f/--cafile." 667 echo " -o --outfile The path to the output file." 707 echo " -f --cafile The path to a file containing PEM" 708 echo " formated CA certificates. May not be" 709 echo " used with -d/--cadir." 668 710 echo "" 669 echo " -k --keytool The path to the java keytool utility." 711 echo " -d --cadir The path to a directory of PEM formatted" 712 echo " CA certificates. May not be used with" 713 echo " -f/--cafile." 670 714 echo "" 671 echo " - s --openssl The path to the openssl utility."715 echo " -o --outfile The path to the output file." 672 716 echo "" 673 echo " -h --help Show this help message and exit." 717 echo " -k --keytool The path to the java keytool utility." 718 echo "" 719 echo " -s --openssl The path to the openssl utility." 720 echo "" 721 echo " -h --help Show this help message and exit." 674 722 echo "" 675 723 echo "" … … 769 817 certend=`grep -n "^-----END" "${cert}" | cut -d ":" -f 1` 770 818 sed -n "${certbegin},${certend}p" "${cert}" > "${tempfile}" 771 echo yes | env LC_ALL=C "${KEYTOOL}" -import -alias `basename "${cert}"` -keystore \ 772 "${OUTFILE}" -storepass 'changeit' -file "${tempfile}" 819 echo yes | env LC_ALL=C "${KEYTOOL}" -import \ 820 -alias `basename "${cert}"` \ 821 -keystore "${OUTFILE}" \ 822 -storepass 'changeit' \ 823 -file "${tempfile}" 773 824 rm "${tempfile}" 774 825 done … … 795 846 <systemitem class="username">root</systemitem> user:</para> 796 847 797 <screen role="root"><userinput>/opt/jdk/bin/mkcacerts -d "/etc/ssl/certs/" -k "/opt/jdk/bin/keytool" \ 798 -s "/usr/bin/openssl" -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen> 848 <screen role="root"><userinput>/opt/jdk/bin/mkcacerts \ 849 -d "/etc/ssl/certs/" \ 850 -k "/opt/jdk/bin/keytool" \ 851 -s "/usr/bin/openssl" \ 852 -o "/opt/jdk/jre/lib/security/cacerts"</userinput></screen> 799 853 800 854 </sect3> … … 814 868 jarsigner, java, javac, javadoc, javah, javap, java-rmi.cgi, 815 869 jcmd, jconsole, jdb, jhat, jinfo, jmap, jps, 816 jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, 870 jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, mkcacerts, 817 871 native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry, 818 872 schemagen, serialver, servertool, tnameserv, unpack200, … … 1098 1152 </varlistentry> 1099 1153 1154 <varlistentry id="mkcacerts"> 1155 <term><command>mkcacerts</command></term> 1156 <listitem> 1157 <para> is a simple script to extract x509 certificates and create 1158 a JRE cacerts file using <command>keytool</command>.</para> 1159 <indexterm zone="openjdk mkcacerts"> 1160 <primary sortas="b-mkcacerts">mkcacerts</primary> 1161 </indexterm> 1162 </listitem> 1163 </varlistentry> 1164 1100 1165 <varlistentry id="native2ascii"> 1101 1166 <term><command>native2ascii</command></term>
Note:
See TracChangeset
for help on using the changeset viewer.