- Timestamp:
- 02/19/2018 05:46:45 AM (7 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gimp3, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 46cfa88
- Parents:
- eab496c5
- Location:
- general/prog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/apache-ant.xml
reab496c5 rd61ead0a 7 7 <!ENTITY apache-ant-download-http "https://archive.apache.org/dist/ant/source/apache-ant-&apache-ant-version;-src.tar.xz"> 8 8 <!ENTITY apache-ant-download-ftp " "> 9 <!ENTITY apache-ant-md5sum " ebecbe7488c624b06bc6a264a3a7c4ec">10 <!ENTITY apache-ant-size "3. 4MB">11 <!ENTITY apache-ant-buildsize " 121MB">9 <!ENTITY apache-ant-md5sum "57235f3dccfc4b18a260862905ce6c04"> 10 <!ENTITY apache-ant-size "3.6 MB"> 11 <!ENTITY apache-ant-buildsize "262 MB"> 12 12 <!ENTITY apache-ant-time "0.3 SBU (with a JVM using 4 cores)"> 13 13 ]> … … 69 69 <para> 70 70 Required file: <ulink 71 url="http ://repo1.maven.org/maven2/junit/junit/&junit-version;/junit-&junit-version;.jar"/>71 url="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/javax/media/jai-core/1.1.3/jai-core-1.1.3.jar"/> 72 72 </para> 73 73 </listitem> … … 75 75 <para> 76 76 Required file: <ulink 77 url="http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/&hamcrest-version;/hamcrest-core-&hamcrest-version;.jar"/> 77 url="https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.jar"/> 78 </para> 79 </listitem> 80 <listitem> 81 <para> 82 Required file: <ulink 83 url="http://central.maven.org/maven2/org/tukaani/xz/1.0/xz-1.0.jar"/> 84 </para> 85 </listitem> 86 <listitem> 87 <para> 88 Required file: <ulink 89 url="http://www.netrexx.org/files/NetRexx-3.06-GA.zip"/> 78 90 </para> 79 91 </listitem> … … 101 113 <title>Installation of Apache Ant</title> 102 114 103 <note> 104 <para>You may need additional libraries to satisfy the build 105 requirements of various packages installed using 106 <application>Apache Ant</application>. Review the table at 107 <ulink url="http://ant.apache.org/manual/install.html#librarydependencies"/> 108 for any prerequisite libraries you may need. Place any needed libraries 109 in <filename>lib/optional</filename>.</para> 110 </note> 111 112 <!-- <para>If it is not possible to install the recommended 113 <application>JUnit</application> package, install 114 <application>Apache Ant</application> by removing the reference to the test 115 instructions (note that the tests will not be performed):</para> 116 117 <screen><userinput>sed -i 's/jars,test-jar/jars/' build.xml</userinput></screen> 118 --> 119 <para>Unpack and copy the <application>junit</application> and 120 <application>hamcrest</application> jar files to the 121 local directory tree.</para> 122 123 <screen><userinput>cp -v ../junit-&junit-version;.jar \ 124 ../hamcrest-core-&hamcrest-version;.jar lib/optional</userinput></screen> 125 126 <para>Install <application>Apache Ant</application> by running the following 127 commands:</para> 128 129 <para>The unit regression tests are performed during the build step below 130 unless <application>JUnit</application> is not installed. Now, as the 131 <systemitem class="username">root</systemitem> user:</para> 132 133 <screen role="root"><userinput>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; dist && 134 ln -v -sfn ant-&apache-ant-version; /opt/ant</userinput></screen> 135 136 <note><para>Make sure the JAVA_HOME environment variable is set for the 137 <systemitem class="username">root</systemitem> user.</para></note> 115 <note><para>Several dependent packages have moved since the packaging of 116 <application>Ant</application> requiring download of the above extra files. 117 Copy those files into the source tree with the following 118 commands:</para></note> 119 120 <screen><userinput>cp -v ../jai-core-1.1.3.jar \ 121 ../jai-codec-1.1.3.jar \ 122 ../xz-1.0.jar lib && 123 unzip -p ../NetRexx-3.06-GA.zip lib/NetRexxC.jar > lib/NetRexxC.jar</userinput></screen> 124 125 <para>Build a limited bootstrap version of <application>Apache 126 Ant</application> using the following command:</para> 127 128 <screen><userinput>./bootstrap.sh</userinput></screen> 129 130 <para>Download the rest of the runtime dependencies using the 131 <filename>fetch.xml</filename> ant build script:</para> 132 133 <screen><userinput>bootstrap/bin/ant -f fetch.xml -Ddest=system || true && 134 cp -v lib/*.jar lib/optional/</userinput></screen> 135 136 <para>Build <application>Apache Ant</application> by running the following 137 command:</para> 138 139 <screen><userinput>./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; dist</userinput></screen> 140 141 <para>Install, as the <systemitem class="username">root</systemitem> user:</para> 142 143 <screen role="root"><userinput>cp -rv ant-&apache-ant-version; /opt/ && 144 chown -R root:root /opt/ant-&apache-ant-version; && 145 ln -sfv ant-&apache-ant-version; /opt/ant</userinput></screen> 138 146 139 147 </sect2> … … 142 150 <title>Command Explanations</title> 143 151 144 <para><command>cp -v ... lib/optional</command>: 145 This command copies the JUnit and hamcrest jar files into the directory 146 where Apache Ant will look for them.</para> 147 148 <para><command>./build.sh -Ddist.dir=/opt/ant-&apache-ant-version; 149 dist</command>: This command does everything. It builds, tests, then 152 <para><command>bootstrap/bin/ant -f fetch.xml -Ddest=system || 153 true</command>: These commands download the rest of the missing dependencies 154 into the source tree (in the <filename>lib/</filename> directory).</para> 155 156 <para><command>cp -v ... lib/optional</command>: This command copies the 157 previously downloaded jar files to the expected place in the source 158 tree so that <command>ant</command> picks them up at buld time.</para> 159 160 <para><command>./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; 161 dist</command>: This command builds, tests, then 150 162 installs the package into 151 <filename class='directory'>/opt/ant-&apache-ant-version;</filename>.</para> 152 153 <para><command>ln -v -sfn ant-&apache-ant-version; /opt/ant</command>: This 154 command is optional, and creates a convenience symlink.</para> 163 <filename class='directory'>a temporary directory.</filename>.</para> 155 164 156 165 </sect2> -
general/prog/java.xml
reab496c5 rd61ead0a 6 6 7 7 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;"> 8 <!ENTITY openjdk-download-binary-x86 "&anduin-download;/OpenJDK-&openjdk-version; -i686-bin.tar.xz">9 <!ENTITY openjdk-bin-md5sum-x86 " 08ea7bd6d308382d9fb605ffe1599d15">10 <!ENTITY openjdk-bin-size-x86 " 57 MB">11 <!ENTITY openjdk-bin-buildsize-x86 " 167MB">8 <!ENTITY openjdk-download-binary-x86 "&anduin-download;/OpenJDK-&openjdk-version;+&openjdk-build;-i686-bin.tar.xz"> 9 <!ENTITY openjdk-bin-md5sum-x86 "1d7b1412aec6931a4b267e6b04d4103e"> 10 <!ENTITY openjdk-bin-size-x86 "157 MB"> 11 <!ENTITY openjdk-bin-buildsize-x86 "303 MB"> 12 12 13 13 14 <!ENTITY openjdk-download-binary-x64 "&anduin-download;/OpenJDK-&openjdk-version; -x86_64-bin.tar.xz">15 <!ENTITY openjdk-bin-md5sum-x64 "e 924a6923dc156e9f65ca53fffcdcf30">16 <!ENTITY openjdk-bin-size-x64 " 58MB">17 <!ENTITY openjdk-bin-buildsize-x64 " 170MB">14 <!ENTITY openjdk-download-binary-x64 "&anduin-download;/OpenJDK-&openjdk-version;+&openjdk-build;-x86_64-bin.tar.xz"> 15 <!ENTITY openjdk-bin-md5sum-x64 "ef09e8b2990341587fae2a5d51d5bdea"> 16 <!ENTITY openjdk-bin-size-x64 "169 MB"> 17 <!ENTITY openjdk-bin-buildsize-x64 "331 MB"> 18 18 ]> 19 19 … … 83 83 version.</para> 84 84 85 &lfs8 1_checked;85 &lfs82_checked; 86 86 87 87 <bridgehead renderas="sect3">Binary Package Information</bridgehead> … … 134 134 <systemitem class="username">root</systemitem> user:</para> 135 135 136 <screen role="root"><userinput>install -vdm755 /opt/OpenJDK-&openjdk-version; -bin &&137 mv -v * /opt/OpenJDK-&openjdk-version; -bin &&138 chown -R root:root /opt/OpenJDK-&openjdk-version; -bin</userinput></screen>136 <screen role="root"><userinput>install -vdm755 /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin && 137 mv -v * /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin && 138 chown -R root:root /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin</userinput></screen> 139 139 140 140 <para> … … 144 144 </para> 145 145 146 <screen role="root"><userinput>ln -sfn OpenJDK-&openjdk-version; -bin /opt/jdk</userinput></screen>146 <screen role="root"><userinput>ln -sfn OpenJDK-&openjdk-version;+&openjdk-build;-bin /opt/jdk</userinput></screen> 147 147 148 148 <para> -
general/prog/openjdk.xml
reab496c5 rd61ead0a 5 5 %general-entities; 6 6 7 <!ENTITY ojdk-upd "141"> 8 <!ENTITY ojdk-bd "b15"> 9 <!ENTITY ojdk-tarball "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2"> 10 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk8u/jdk8u"> 7 <!ENTITY ojdk-tarball "jdk-&openjdk-version;+&openjdk-build;.tar.bz2"> 8 <!ENTITY ojdk-repo "http://hg.openjdk.java.net/jdk-updates/jdk9u"> 11 9 <!ENTITY ojdk-download "&ojdk-repo;/archive/&ojdk-tarball;"> 12 10 13 11 <!ENTITY anduin-download "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;"> 14 12 15 <!ENTITY ojdk-md5sum "df3504e95d6e88924babb3821d4210a6"> 16 <!ENTITY ojdk-size "498 KB"> 17 18 <!ENTITY corba-md5sum "4061c0f2dc553cf92847e4a39a03ea4e"> 19 <!ENTITY hotspot-md5sum "269a0fde90b9ab5ca19fa82bdb3d6485"> 20 <!ENTITY jaxp-md5sum "a1dfcd15119dd10db6e91dc2019f14e7"> 21 <!ENTITY jaxws-md5sum "16f904d990cb6a3c84ebb81bd6bea1e7"> 22 <!ENTITY jdk-md5sum "c4a99c9c5293bb5c174366664843c8ce"> 23 <!ENTITY langtools-md5sum "4fb652cdd6fee5f2873b00404e9a01f3"> 24 <!ENTITY nashorn-md5sum "c2f06cd8d6e90f3dcc57bec53f419afe"> 25 <!ENTITY total-download-size "63 MB"> 26 27 <!ENTITY jtreg-version "4.2-b08-891"> 28 <!ENTITY jtreg-download "&anduin-download;/jtreg-&jtreg-version;.tar.gz"> 29 <!ENTITY jtreg-md5sum "f409d5313b5d9aa81bb6868082fda161"> 30 <!ENTITY jtreg-size "6.8 MB"> 31 32 <!ENTITY icedtea-web-download "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz"> 33 34 <!ENTITY ojdk-buildsize "3.5 GB (additional 529 MB for tests)"> 35 <!ENTITY ojdk-time "4.3 SBU with 8 jobs in parallel (up to 120 SBU for tests, see below)"> 13 <!ENTITY ojdk-md5sum "174205155c001cf0cc5d3250d86cfb69"> 14 <!ENTITY ojdk-size "812 KB"> 15 16 <!ENTITY corba-md5sum "dbc62e27a93686a9aea12e9c97c2f765"> 17 <!ENTITY hotspot-md5sum "25853ba33123397b2e755249f102ae73"> 18 <!ENTITY jaxp-md5sum "f5ab5e468565e1ab3a181d2efb45b51f"> 19 <!ENTITY jaxws-md5sum "520ff49cb470fbcec2f46cbb3fdb377d"> 20 <!ENTITY jdk-md5sum "be9f261b19451ab1300c5842188e3fe2"> 21 <!ENTITY langtools-md5sum "22b65322d04c8ffafd77230dbe5f178f"> 22 <!ENTITY nashorn-md5sum "729d03b0cede2f697ad77170a9d89095"> 23 <!ENTITY total-download-size "83 MB"> 24 25 <!ENTITY jtreg-version "4.2-b12"> 26 <!ENTITY jtreg-download "https://ci.adoptopenjdk.net/view/all/job/jtreg/lastSuccessfulBuild/artifact/jtreg-&jtreg-version;.tar.gz"> 27 <!ENTITY jtreg-md5sum "630ac0b2108a48a85d71dc1fba856fda"> 28 <!ENTITY jtreg-size "7.3 MB"> 29 30 <!ENTITY ojdk-bdsize "4.6 GB (additional 676 MB for tests)"> 31 <!ENTITY ojdk-time "3.8 SBU with 4 jobs (additonal 12.1 SBU for tests with 4 jobs)"> 36 32 ]> 37 33 … … 61 57 </para> 62 58 63 &lfs8 1_checked;59 &lfs82_checked; 64 60 65 61 <note> … … 122 118 <itemizedlist spacing="compact"> 123 119 <listitem> 124 <para>OpenJDK Root Package 125 <simplelist> 126 <member>Download: <ulink url="&ojdk-download;"/></member> 127 <member>Download MD5 sum: &ojdk-md5sum;</member> 128 <member>Download Size: &ojdk-size;</member> 129 </simplelist> 120 <para> 121 Download (HTTP): <ulink url="&ojdk-download;"/> 122 </para> 123 </listitem> 124 <listitem> 125 <para> 126 Download (FTP): <ulink url=" "/> 127 </para> 128 </listitem> 129 <listitem> 130 <para> 131 Download MD5 sum: &ojdk-md5sum; 132 </para> 133 </listitem> 134 <listitem> 135 <para> 136 Download Size: &ojdk-size; 130 137 </para> 131 138 </listitem> … … 138 145 </listitem> 139 146 <listitem> 140 <para>Estimated disk space required: &ojdk-b uildsize;</para>147 <para>Estimated disk space required: &ojdk-bdsize;</para> 141 148 </listitem> 142 149 <listitem> … … 147 154 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 148 155 156 <bridgehead renderas="sect4">Optional test harness</bridgehead> 157 149 158 <itemizedlist spacing='compact'> 150 159 <listitem> 151 <para>Optional test harness 152 <simplelist> 153 <member>Download: <ulink url="&jtreg-download;"/></member> 154 <member>Download MD5 sum: &jtreg-md5sum;</member> 155 <member>Download Size: &jtreg-size;</member> 156 </simplelist> 160 <para> 161 <ulink url="&jtreg-download;"/> 157 162 </para> 158 163 </listitem> 159 164 <listitem> 160 165 <para> 161 Optional package (to get an icon for the 162 <filename>openjdk-8-policytool.desktop</filename> file): 163 <ulink url="&icedtea-web-download;"/> 166 Download MD5 sum: &jtreg-md5sum; 167 </para> 168 </listitem> 169 <listitem> 170 <para> 171 Download Size: &jtreg-size; 164 172 </para> 165 173 </listitem> … … 185 193 <para role="recommended"> 186 194 <xref linkend="cacerts"/>, 187 <xref linkend="giflib"/>, and 195 <xref linkend="giflib"/>, 196 <xref linkend="lcms2"/>, 197 <xref linkend="libjpeg"/>, 198 <xref linkend="libpng"/>, and 188 199 <xref linkend="wget"/> 189 200 </para> … … 216 227 &jaxp-md5sum; jaxp.tar.bz2 217 228 &jaxws-md5sum; jaxws.tar.bz2 229 &jdk-md5sum; jdk.tar.bz2 218 230 &langtools-md5sum; langtools.tar.bz2 219 &jdk-md5sum; jdk.tar.bz2220 231 &nashorn-md5sum; nashorn.tar.bz2 221 232 EOF 222 233 223 for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do 234 for subproject in corba hotspot jaxp jaxws jdk langtools nashorn; do 235 224 236 wget -c &ojdk-repo;/${subproject}/archive/&ojdk-tarball; \ 225 237 -O ${subproject}.tar.bz2 … … 228 240 md5sum -c subprojects.md5 && 229 241 230 for subproject in corba hotspot jaxp jaxws langtools jdknashorn; do242 for subproject in corba hotspot jaxp jaxws jdk langtools nashorn; do 231 243 mkdir -pv ${subproject} && 232 244 tar -xf ${subproject}.tar.bz2 --strip-components=1 -C ${subproject} … … 238 250 239 251 <screen><userinput>tar -xf ../jtreg-&jtreg-version;.tar.gz</userinput></screen> 240 241 <!--TODO: it might be better to add instructions for the cacerts file at242 this place and to use the switch "with-cacerts-file" -->243 252 244 253 <note> … … 264 273 </para> 265 274 266 <screen><userinput>unset JAVA_HOME && 267 sh ./configure \ 268 --with-update-version=&ojdk-upd; \ 269 --with-build-number=&ojdk-bd; \ 270 --with-milestone=BLFS \ 271 --enable-unlimited-crypto \ 272 --with-zlib=system \ 273 --with-giflib=system \ 274 --with-extra-cflags="-std=c++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse" \ 275 --with-extra-cxxflags="-std=c++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" && 276 make DEBUG_BINARIES=true SCTP_WERROR= all && 277 find build/*/images/j2sdk-image -iname \*.diz -delete 278 </userinput></screen> 275 <screen><userinput>unset JAVA_HOME && 276 bash configure --enable-unlimited-crypto \ 277 --disable-warnings-as-errors \ 278 --with-stdc++lib=dynamic \ 279 --with-giflib=system \ 280 --with-jtreg=$PWD/jtreg \ 281 --with-lcms=system \ 282 --with-libjpeg=system \ 283 --with-libpng=system \ 284 --with-zlib=system \ 285 --with-version-build="11" \ 286 --with-version-pre="" \ 287 --with-version-opt="" \ 288 --with-cacerts-file=/etc/ssl/java/cacerts.jks && 289 make images</userinput></screen> 279 290 280 291 <note> 281 292 <para> 282 Testing will involve the interplay of pairs of JVMs using the 283 networking interface, so networking must be started. If it 284 isn't, not only will these tests fail, but the test cleanup 285 will leave orphaned JVMs running. There will be many of 286 them. Rebooting may be the easiest recovery. 293 By default, the build system will use (NUMCPU - 1) jobs. To 294 override, set <envar>JOBS=<X></envar> on make invocation. 287 295 </para> 288 296 </note> 289 297 290 298 <para> 291 Testing the newly built JVM involves several steps. 292 First, it is better to run the test suite in a frame buffer on a 293 different display, using Xvfb: 294 </para> 295 296 <!-- Careful with the && below: 297 "export DISPLAY=... && somecommand &" exports only DISPLAY to "somecommand" 298 but not to the current environment, and 299 "echo $! .... &&" does not echo the right PID. So all && suppressed.--> 300 <screen role='nodump'><userinput>if [ -n "$DISPLAY" ]; then 301 OLD_DISP=$DISPLAY 302 fi 303 export DISPLAY=:20 304 nohup Xvfb $DISPLAY \ 305 -fbdir $(pwd) \ 306 -pixdepths 8 16 24 32 > Xvfb.out 2>&1 & 307 echo $! > Xvfb.pid 308 echo Waiting for Xvfb to initialize; sleep 1 309 nohup twm -display $DISPLAY \ 310 -f /dev/null > twm.out 2>&1 & 311 echo $! > twm.pid 312 echo Waiting for twm to initialize; sleep 1 313 xhost +</userinput></screen> 314 315 <para> 316 Then, it is necessary to modify some files: 317 </para> 318 319 <screen role='nodump'><userinput>echo -e " 320 jdk_all = :jdk_core \\ 321 :jdk_svc \\ 322 :jdk_beans \\ 323 :jdk_imageio \\ 324 :jdk_sound \\ 325 :jdk_sctp \\ 326 com/sun/awt \\ 327 javax/accessibility \\ 328 javax/print \\ 329 sun/pisces \\ 330 com/sun/java/swing" >> jdk/test/TEST.groups && 331 sed -e 's/all:.*jck.*/all: jtreg/' \ 332 -e '/^JTREG /s@\$(JT_PLATFORM)/@@' \ 333 -i langtools/test/Makefile</userinput></screen> 334 335 <para> 336 Some variables have to be set: 337 </para> 338 339 <screen role='nodump'><userinput>JT_JAVA=$(type -p javac | sed 's@/bin.*@@') && 340 JT_HOME=$(pwd)/jtreg && 341 PRODUCT_HOME=$(echo $(pwd)/build/*/images/j2sdk-image)</userinput></screen> 342 343 <para> 344 The tests are run as follows: 345 </para> 346 347 <screen role='nodump'><userinput>LANG=C make -k -C test \ 348 JT_HOME=${JT_HOME} \ 349 JT_JAVA=${JT_JAVA} \ 350 PRODUCT_HOME=${PRODUCT_HOME} all || true 351 LANG=C ${JT_HOME}/bin/jtreg -a -v:fail,error \ 352 -dir:$(pwd)/hotspot/test \ 353 -k:\!ignore \ 354 -jdk:${PRODUCT_HOME} \ 355 :jdk || true</userinput></screen> 356 357 <para> 358 Tests duration depends on various factors such as the network speed 359 and the number of concurrent VM, which is computed from the number 360 of cores and threads, and the amount of RAM installed. A maximum of 361 120 SBU has been observed, but it may be as <quote>low</quote> as 80 SBU. 362 </para> 363 364 <para> 365 The test results can be compared to <ulink 366 url="http://download.java.net/openjdk/testresults/8/">these 367 results</ulink>, although they usually are run on a newer version. About 368 30 tests are known to fail, but the exact number depends on various 369 conditions, like whether the computer is connected to network, or to a 370 printer, and on the options given to configure 371 (<parameter>--enable-unlimited-crypto</parameter> is known to trigger 372 failures, but those come from the code in the tests, not from the 373 installation). Also, some tests may timeout if the machine is under load. 374 </para> 375 376 <para> 377 Next some cleanup has to be done. The instructions below only stop the 378 frame buffer, but it has been reported that some java VM may be left 379 running after the tests, so it is necessary to check orphaned processes: 380 </para> 381 382 <screen role='nodump'><userinput>kill -9 `cat twm.pid` && 383 kill -9 `cat Xvfb.pid` && 384 rm -f Xvfb.out twm.out && 385 rm -f Xvfb.pid twm.pid && 386 if [ -n "$OLD_DISP" ]; then 387 DISPLAY=$OLD_DISP 388 fi</userinput></screen> 299 To test the results, issue: <command>make run-test-tier1</command>. Seven 300 tests are expected to fail, and 11 to error when building only the server 301 target. You can limit the number of concurrent tests by setting 302 <envar>JTREG="JOBS=<X>"</envar> where <X> is the number of 303 jobs. 304 </para> 389 305 390 306 <para>Install the package with the following commands as the 391 307 <systemitem class="username">root</systemitem> user:</para> 392 308 393 <screen role="root"><userinput>cp -RT build/*/images/j2sdk-image /opt/OpenJDK-&openjdk-version; && 394 chown -R root:root /opt/OpenJDK-&openjdk-version;</userinput></screen> 395 309 <screen role="root"><userinput>install -vdm755 /opt/jdk-&openjdk-version;+&openjdk-build; && 310 cp -Rv build/*/images/jdk/* /opt/jdk-&openjdk-version;+&openjdk-build; && 311 chown -R root:root /opt/jdk-&openjdk-version;+&openjdk-build; && 312 find /opt/jdk-&openjdk-version;+&openjdk-build; -name \*.diz -delete && 313 for s in 16 24 32 48; do 314 install -Dm 644 jdk/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \ 315 /usr/share/icons/hicolor/${s}x${s}/apps/java9.png 316 done 317 </userinput></screen> 318 319 <note> 320 <para> 321 If you only wish to install the Java Runtime Environment, you can 322 substitue <filename>build/*/images/jre</filename> in the above 323 <command>cp</command> command. 324 </para> 325 </note> 326 396 327 <para> 397 328 There are now two <application>OpenJDK</application> SDKs installed … … 403 334 </para> 404 335 405 <screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen> 406 407 <para> 408 If desired, you may install a .desktop file corresponding to an entry 409 in a desktop menu for <command>policytool</command>. First, you need to 410 obtain an icon from <xref linkend="icedtea-web"/>: 411 </para> 412 413 <screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz \ 414 icedtea-web-&icedtea-web-version;/javaws.png \ 415 --strip-components=1</userinput></screen> 416 417 <para> 418 Now, as <systemitem class="username">root</systemitem> user: 336 <screen role="root"><userinput>ln -v -nsf jdk-&openjdk-version;+&openjdk-build; /opt/jdk</userinput></screen> 337 338 <para> 339 If desired, you may create .desktop files to add entries 340 in the menu for <command>java</command>, <command>policytool</command>, 341 and <command>jconsole</command>. The needed icons have already been 342 installed. As the <systemitem class="username">root</systemitem> user: 419 343 </para> 420 344 421 345 <screen role="root"><userinput>mkdir -pv /usr/share/applications && 422 346 423 cat > /usr/share/applications/openjdk- 8-policytool.desktop << "EOF" &&347 cat > /usr/share/applications/openjdk-9-java.desktop << "EOF" && 424 348 <literal>[Desktop Entry] 425 Name=OpenJDK Java Policy Tool 426 Name[pt_BR]=OpenJDK Java - Ferramenta de Política 427 Comment=OpenJDK Java Policy Tool 428 Comment[pt_BR]=OpenJDK Java - Ferramenta de Política 349 Name=OpenJDK Java 9 Runtime 350 Comment=OpenJDK Java 9 Runtime 351 Exec=/opt/jdk/bin/java -jar 352 Terminal=false 353 Type=Application 354 Icon=java9 355 MimeType=application/x-java-archive;application/java-archive;application/x-jar; 356 NoDisplay=true</literal> 357 EOF 358 359 cat > /usr/share/applications/openjdk-9-policytool.desktop << "EOF" && 360 <literal>[Desktop Entry] 361 Name=OpenJDK Java 9 Policy Tool 362 Name[pt_BR]=OpenJDK Java 9 - Ferramenta de Política 363 Comment=OpenJDK Java 9 Policy Tool 364 Comment[pt_BR]=OpenJDK Java 9 - Ferramenta de Política 429 365 Exec=/opt/jdk/bin/policytool 430 366 Terminal=false 431 367 Type=Application 432 Icon=java ws368 Icon=java9 433 369 Categories=Settings;</literal> 434 370 EOF 435 371 436 install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen> 372 cat > /usr/share/applications/openjdk-9-jconsole.desktop << "EOF" 373 <literal>[Desktop Entry] 374 Name=OpenJDK Java 9 Console 375 Comment=OpenJDK Java 9 Console 376 Keywords=java;console;monotoring 377 Exec=/opt/jdk/bin/jconsole 378 Terminal=false 379 Type=Application 380 Icon=java9 381 Categories=Application;System;</literal> 382 EOF</userinput></screen> 437 383 438 384 <para> … … 449 395 450 396 <para> 451 <command> sh configure...</command>: the top level397 <command>bash configure...</command>: the top level 452 398 <filename>configure</filename> is a wrapper around the autotools one. 453 It is not executable and must be run through <command>sh</command>. 454 </para> 455 456 <para> 457 <option>--with-boot-jdk</option>: This switch provides the 458 location of the temporary <application>JDK</application>. It is normally 459 not needed if <command>java</command> is found in the <envar>PATH</envar>. 460 </para> 461 462 <para> 463 <parameter>--with-update-version</parameter>: Currently, the build 464 system does not include the update number in the version string. It has 465 to be specified here. 466 </para> 467 468 <para> 469 <parameter>--with-build-number</parameter>: Again, the build 470 system does not include the build number in the version string. It has 471 to be specified here too. 472 </para> 473 474 <para> 475 <parameter>--with-milestone</parameter>: Used to customize the 476 version string. 399 It is not executable and must be run through <command>bash</command>. 477 400 </para> 478 401 … … 487 410 488 411 <para> 489 <parameter>--with-zlib=system, --with-giflib=system</parameter>: Allows 490 to use the system libraries instead of the bundled ones. 491 </para> 492 493 <para> 494 <parameter>--with-extra-cflags=... --with-extra-cxxflags=...</parameter>: 495 Works around some defects in the code brought to light by the GCC 6 496 more rigorous checking of the C/C++ constructs. Remove those switches 497 if compiling with GCC 5. 498 </para> 499 500 <para> 501 <option>--with-jobs=N</option>: Allows setting the number 502 of jobs for <command>make</command> equal to N. The default is the 503 result of a calculation involving the available memory and the number 504 of processors. Note that even if you specify N=1, some parallelization 505 may be used during the build. The SBU given above are with N=4, on 506 a single processor, 4-core, virtual machine, with 4 GB of memory. 507 </para> 508 509 <para> 510 <option>--with-cacerts-file=...</option>: Specifies where to find a 511 <filename>cacerts</filename> file, <filename class="directory"> 512 /etc/ssl/java/cacerts</filename> on a BLFS system. Otherwise, an empty 513 one is created. You can use the 412 <parameter>--disable-warnings-as-errors</parameter>: This switch disables 413 use of <envar>-Werror</envar> in the build. 414 </para> 415 416 <para> 417 <parameter>--with-stdc++lib=dynamic</parameter>: This switch forces the 418 build system to link to <filename>libstdc++.so</filename> (dynamic) 419 instead of <filename>libstdc++.a</filename> (static). 420 </para> 421 422 <para> 423 <parameter>--with-jtreg=$PWD/jtreg</parameter>: This switch tells 424 configure where to find jtreg. Omit if you have not downloaded the 425 optional test suite. 426 </para> 427 428 <para> 429 <parameter>--with-{giflib,lcms,libjpeg,libpng,zlib}=system</parameter>: 430 These switches force the build system to use the system libraries instead 431 of the bundled versions. 432 </para> 433 434 <para> 435 <parameter>--with-version-build</parameter>: Currently, the build 436 system does not include the build number in the version string. It has 437 to be specified here. 438 </para> 439 440 <para> 441 <parameter>--with-version-pre</parameter>: This switch allows you to 442 prefix the version string with a custom string. 443 </para> 444 445 <para> 446 <parameter>--with-version-opt</parameter>: This switch allows you to add 447 an optional build description to the version string. 448 </para> 449 450 <para> 451 <parameter>--with-cacerts-file=/etc/ssl/java/cacerts.jks</parameter>: 452 Specifies where to find a <filename>cacerts</filename> file, 453 <filename class="directory">/etc/ssl/java/cacerts</filename> on a BLFS 454 system. Otherwise, an empty one is created. You can use the 514 455 <command>/usr/sbin/make-ca --force</command> command to generate it, once 515 456 you have installed the Java binaries. … … 517 458 518 459 <para> 519 <command>make DEBUG_BINARIES=true SCTP_WERROR= all</command>: The build 520 fails on 32 bit machines if DEBUG_BINARIES is not set to true. Unsetting 521 SCTP_WERROR is part of the workarounds needed to use GCC 6. You may omit 522 that part of the command if using GCC 5. 460 <option>--with-boot-jdk</option>: This switch provides the 461 location of the temporary <application>JDK</application>. It is normally 462 not needed if <command>java</command> is found in the <envar>PATH</envar>. 523 463 </para> 524 464 … … 560 500 <application>OpenJDK</application> uses its own format for the 561 501 CA certificates. Those certificates are located in a file named 562 <filename>/etc/ssl/java/cacerts </filename>. That file should be502 <filename>/etc/ssl/java/cacerts.jks</filename>. That file should be 563 503 generated using the system PKI trust store. The instructions 564 504 on the <xref linkend="cacerts"/> page should be used to update the file … … 568 508 </para> 569 509 570 <screen role="root"><userinput>ln -sfv /etc/ssl/java/cacerts /opt/jdk/jre/lib/security/cacerts</userinput></screen>510 <screen role="root"><userinput>ln -sfv /etc/ssl/java/cacerts.jks /opt/jdk/lib/security/cacerts</userinput></screen> 571 511 572 512 <para>
Note:
See TracChangeset
for help on using the changeset viewer.