Changeset d61ead0a


Ignore:
Timestamp:
02/19/2018 05:46:45 AM (6 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.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, 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:
46cfa88
Parents:
eab496c5
Message:

Update to OpenJDK-9.0.4.
Update to make-ca-0.7.
Update to Apache-Ant-1.10.2.

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

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    reab496c5 rd61ead0a  
    11<!-- $LastChangedBy$ $Date$ -->
    22
    3 <!ENTITY day          "18">                   <!-- Always 2 digits -->
     3<!ENTITY day          "19">                   <!-- Always 2 digits -->
    44<!ENTITY month        "02">                   <!-- Always 2 digits -->
    55<!ENTITY year         "2018">
     
    77<!ENTITY copyholder   "The BLFS Development Team">
    88<!ENTITY version      "&year;-&month;-&day;">
    9 <!ENTITY releasedate  "February 18th, &year;">
     9<!ENTITY releasedate  "February 19th, &year;">
    1010<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    1111<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
  • general/prog/apache-ant.xml

    reab496c5 rd61ead0a  
    77  <!ENTITY apache-ant-download-http "https://archive.apache.org/dist/ant/source/apache-ant-&apache-ant-version;-src.tar.xz">
    88  <!ENTITY apache-ant-download-ftp  " ">
    9   <!ENTITY apache-ant-md5sum        "ebecbe7488c624b06bc6a264a3a7c4ec">
    10   <!ENTITY apache-ant-size          "3.4 MB">
    11   <!ENTITY apache-ant-buildsize     "121 MB">
     9  <!ENTITY apache-ant-md5sum        "57235f3dccfc4b18a260862905ce6c04">
     10  <!ENTITY apache-ant-size          "3.6 MB">
     11  <!ENTITY apache-ant-buildsize     "262 MB">
    1212  <!ENTITY apache-ant-time          "0.3 SBU (with a JVM using 4 cores)">
    1313]>
     
    6969        <para>
    7070          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"/>
    7272        </para>
    7373      </listitem>
     
    7575        <para>
    7676          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"/>
    7890        </para>
    7991      </listitem>
     
    101113    <title>Installation of Apache Ant</title>
    102114
    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 &amp;&amp;
    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     &amp;&amp;
     123unzip -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 &amp;&amp;
     134cp -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/            &amp;&amp;
     144chown -R root:root /opt/ant-&apache-ant-version; &amp;&amp;
     145ln -sfv ant-&apache-ant-version; /opt/ant</userinput></screen>
    138146
    139147  </sect2>
     
    142150    <title>Command Explanations</title>
    143151
    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
    150162    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>
    155164
    156165  </sect2>
  • general/prog/java.xml

    reab496c5 rd61ead0a  
    66
    77  <!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   "167 MB">
     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">
    1212
    1313
    14   <!ENTITY openjdk-download-binary-x64 "&anduin-download;/OpenJDK-&openjdk-version;-x86_64-bin.tar.xz">
    15   <!ENTITY openjdk-bin-md5sum-x64      "e924a6923dc156e9f65ca53fffcdcf30">
    16   <!ENTITY openjdk-bin-size-x64        "58 MB">
    17   <!ENTITY openjdk-bin-buildsize-x64   "170 MB">
     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">
    1818]>
    1919
     
    8383    version.</para>
    8484
    85     &lfs81_checked;
     85    &lfs82_checked;
    8686
    8787    <bridgehead renderas="sect3">Binary Package Information</bridgehead>
     
    134134    <systemitem class="username">root</systemitem> user:</para>
    135135
    136 <screen role="root"><userinput>install -vdm755 /opt/OpenJDK-&openjdk-version;-bin &amp;&amp;
    137 mv -v * /opt/OpenJDK-&openjdk-version;-bin         &amp;&amp;
    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 &amp;&amp;
     137mv -v * /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin         &amp;&amp;
     138chown -R root:root /opt/OpenJDK-&openjdk-version;+&openjdk-build;-bin</userinput></screen>
    139139
    140140    <para>
     
    144144    </para>
    145145
    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>
    147147
    148148    <para>
  • general/prog/openjdk.xml

    reab496c5 rd61ead0a  
    55  %general-entities;
    66
    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">
    119  <!ENTITY ojdk-download             "&ojdk-repo;/archive/&ojdk-tarball;">
    1210
    1311  <!ENTITY anduin-download           "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
    1412
    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)">
    3632]>
    3733
     
    6157    </para>
    6258
    63     &lfs81_checked;
     59    &lfs82_checked;
    6460
    6561    <note>
     
    122118    <itemizedlist spacing="compact">
    123119      <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;
    130137        </para>
    131138      </listitem>
     
    138145      </listitem>
    139146      <listitem>
    140         <para>Estimated disk space required: &ojdk-buildsize;</para>
     147        <para>Estimated disk space required: &ojdk-bdsize;</para>
    141148      </listitem>
    142149      <listitem>
     
    147154    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    148155
     156    <bridgehead renderas="sect4">Optional test harness</bridgehead>
     157
    149158    <itemizedlist spacing='compact'>
    150159      <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;"/>
    157162        </para>
    158163      </listitem>
    159164      <listitem>
    160165        <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;
    164172        </para>
    165173      </listitem>
     
    185193    <para role="recommended">
    186194      <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
    188199      <xref linkend="wget"/>
    189200    </para>
     
    216227&jaxp-md5sum;  jaxp.tar.bz2
    217228&jaxws-md5sum;  jaxws.tar.bz2
     229&jdk-md5sum;  jdk.tar.bz2
    218230&langtools-md5sum;  langtools.tar.bz2
    219 &jdk-md5sum;  jdk.tar.bz2
    220231&nashorn-md5sum;  nashorn.tar.bz2
    221232EOF
    222233
    223 for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     234for subproject in corba hotspot jaxp jaxws jdk langtools nashorn; do
     235
    224236  wget -c &ojdk-repo;/${subproject}/archive/&ojdk-tarball; \
    225237       -O ${subproject}.tar.bz2
     
    228240md5sum -c subprojects.md5 &amp;&amp;
    229241
    230 for subproject in corba hotspot jaxp jaxws langtools jdk nashorn; do
     242for subproject in corba hotspot jaxp jaxws jdk langtools nashorn; do
    231243  mkdir -pv ${subproject} &amp;&amp;
    232244  tar -xf ${subproject}.tar.bz2 --strip-components=1 -C ${subproject}
     
    238250
    239251<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 at
    242 this place and to use the switch "with-cacerts-file" -->
    243252
    244253    <note>
     
    264273    </para>
    265274
    266 <screen><userinput>unset JAVA_HOME               &amp;&amp;
    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" &amp;&amp;
    276 make DEBUG_BINARIES=true SCTP_WERROR= all  &amp;&amp;
    277 find build/*/images/j2sdk-image -iname \*.diz -delete
    278 </userinput></screen>
     275<screen><userinput>unset JAVA_HOME                             &amp;&amp;
     276bash 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 &amp;&amp;
     289make images</userinput></screen>
    279290
    280291    <note>
    281292      <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=&lt;X&gt;</envar> on make invocation.
    287295      </para>
    288296    </note>
    289297
    290298    <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>&amp;1 &amp;
    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>&amp;1            &amp;
    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 &amp;&amp;
    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.*@@') &amp;&amp;
    340 JT_HOME=$(pwd)/jtreg                        &amp;&amp;
    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`  &amp;&amp;
    383 kill -9 `cat Xvfb.pid` &amp;&amp;
    384 rm -f Xvfb.out twm.out &amp;&amp;
    385 rm -f Xvfb.pid twm.pid &amp;&amp;
    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=&lt;X&gt;"</envar> where &lt;X&gt; is the number of
     303      jobs.
     304    </para>
    389305
    390306    <para>Install the package with the following commands as the
    391307    <systemitem class="username">root</systemitem> user:</para>
    392308
    393 <screen role="root"><userinput>cp -RT build/*/images/j2sdk-image /opt/OpenJDK-&openjdk-version; &amp;&amp;
    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;             &amp;&amp;
     310cp -Rv build/*/images/jdk/* /opt/jdk-&openjdk-version;+&openjdk-build; &amp;&amp;
     311chown -R root:root /opt/jdk-&openjdk-version;+&openjdk-build;          &amp;&amp;
     312find /opt/jdk-&openjdk-version;+&openjdk-build; -name \*.diz -delete   &amp;&amp;
     313for 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
     316done
     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 
    396327    <para>
    397328      There are now two <application>OpenJDK</application> SDKs installed
     
    403334    </para>
    404335
    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:
    419343    </para>
    420344
    421345<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
    422346
    423 cat &gt; /usr/share/applications/openjdk-8-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
     347cat &gt; /usr/share/applications/openjdk-9-java.desktop &lt;&lt; "EOF" &amp;&amp;
    424348<literal>[Desktop Entry]
    425 Name=OpenJDK Java Policy Tool
    426 Name[pt_BR]=OpenJDK Java - Ferramenta de Pol&#237;tica
    427 Comment=OpenJDK Java Policy Tool
    428 Comment[pt_BR]=OpenJDK Java - Ferramenta de Pol&#237;tica
     349Name=OpenJDK Java 9 Runtime
     350Comment=OpenJDK Java 9 Runtime
     351Exec=/opt/jdk/bin/java -jar
     352Terminal=false
     353Type=Application
     354Icon=java9
     355MimeType=application/x-java-archive;application/java-archive;application/x-jar;
     356NoDisplay=true</literal>
     357EOF
     358
     359cat &gt; /usr/share/applications/openjdk-9-policytool.desktop &lt;&lt; "EOF" &amp;&amp;
     360<literal>[Desktop Entry]
     361Name=OpenJDK Java 9 Policy Tool
     362Name[pt_BR]=OpenJDK Java 9 - Ferramenta de Pol&#237;tica
     363Comment=OpenJDK Java 9 Policy Tool
     364Comment[pt_BR]=OpenJDK Java 9 - Ferramenta de Pol&#237;tica
    429365Exec=/opt/jdk/bin/policytool
    430366Terminal=false
    431367Type=Application
    432 Icon=javaws
     368Icon=java9
    433369Categories=Settings;</literal>
    434370EOF
    435371
    436 install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
     372cat &gt; /usr/share/applications/openjdk-9-jconsole.desktop &lt;&lt; "EOF"
     373<literal>[Desktop Entry]
     374Name=OpenJDK Java 9 Console
     375Comment=OpenJDK Java 9 Console
     376Keywords=java;console;monotoring
     377Exec=/opt/jdk/bin/jconsole
     378Terminal=false
     379Type=Application
     380Icon=java9
     381Categories=Application;System;</literal>
     382EOF</userinput></screen>
    437383
    438384    <para>
     
    449395
    450396    <para>
    451       <command>sh configure...</command>: the top level
     397      <command>bash configure...</command>: the top level
    452398      <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>.
    477400    </para>
    478401
     
    487410
    488411    <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
    514455      <command>/usr/sbin/make-ca --force</command> command to generate it, once
    515456      you have installed the Java binaries.
     
    517458
    518459    <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>.
    523463    </para>
    524464
     
    560500        <application>OpenJDK</application> uses its own format for the
    561501        CA certificates. Those certificates are located in a file named
    562         <filename>/etc/ssl/java/cacerts</filename>. That file should be
     502        <filename>/etc/ssl/java/cacerts.jks</filename>. That file should be
    563503        generated using the system PKI trust store. The instructions
    564504        on the <xref linkend="cacerts"/> page should be used to update the file
     
    568508      </para>
    569509
    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>
    571511
    572512      <para>
  • introduction/welcome/changelog.xml

    reab496c5 rd61ead0a  
    4242    </listitem>
    4343-->
     44    <listitem>
     45      <para>February 19th, 2018</para>
     46      <itemizedlist>
     47        <listitem>
     48          <para>[dj] - Update to OpenJDK-9.0.4. Fixes
     49          <ulink url="&blfs-ticket-root;9929">#9929</ulink>.</para>
     50        </listitem>
     51        <listitem>
     52          <para>[dj] - Update to make-ca-0.7.</para>
     53        </listitem>
     54        <listitem>
     55          <para>[dj] - Update to Apache-Ant-1.10.2. Fixes
     56          <ulink url="&blfs-ticket-root;10377">#10377</ulink>.</para>
     57        </listitem>
     58      </itemizedlist>
     59    </listitem>
     60
    4461    <listitem>
    4562      <para>February 18th, 2018</para>
  • packages.ent

    reab496c5 rd61ead0a  
    2525<!ENTITY linux-pam-docs-version       "1.2.0">
    2626<!ENTITY libpwquality-version         "1.4.0">
    27 <!ENTITY make-ca-version              "0.6">
     27<!ENTITY make-ca-version              "0.7">
    2828<!ENTITY mitkrb-major-version         "1.16">
    2929<!ENTITY mitkrb-version               "1.16">
     
    345345<!ENTITY yasm-version                 "1.3.0">
    346346
    347 <!ENTITY apache-ant-version           "1.10.1">
     347<!ENTITY apache-ant-version           "1.10.2">
    348348<!ENTITY junit-version                "4.11">
    349349<!ENTITY hamcrest-version             "1.3">
    350 <!ENTITY openjdk-version              "1.8.0.141">
     350<!ENTITY openjdk-version              "9.0.4">
     351<!ENTITY openjdk-build                "11">
    351352
    352353<!ENTITY python2-majorver             "2.7">
  • postlfs/security/cacerts.xml

    reab496c5 rd61ead0a  
    77  <!ENTITY certhost              "https://hg.mozilla.org/">
    88  <!ENTITY certpath              "/lib/ckfw/builtins/certdata.txt">
    9   <!ENTITY cacerts-buildsize     "6.5 MB (with all runtime deps)">
    10   <!ENTITY cacerts-time          "0.2 SBU (with all runtime deps)">
     9  <!ENTITY cacerts-buildsize     "6.6 MB (with all runtime deps)">
     10  <!ENTITY cacerts-time          "0.3 SBU (with all runtime deps)">
    1111
    1212  <!ENTITY make-ca-download      "https://github.com/djlucas/make-ca/archive/v&make-ca-version;/make-ca-&make-ca-version;.tar.gz">
    1313  <!ENTITY make-ca-size          "36 KB">
    14   <!ENTITY make-ca-md5sum        "851f9e267f343c54db8caa87ec5b3d75">
     14  <!ENTITY make-ca-md5sum        "4f180b9bf3b11f29d6a79e6022aeae23">
    1515]>
    1616
  • pst/ps/fop.xml

    reab496c5 rd61ead0a  
    9090        </para>
    9191      </listitem>
    92 
    93       <listitem>
    94         <para>Java Advanced Imaging (JAI) API components (architecture dependent):
    95           <simplelist>
    96             <member><ulink url="&jai-download;"/></member>
    97             <member>&jai-md5sum;</member>
    98             <member>&jai-size;</member>
    99           </simplelist>
    100           <literallayout>or</literallayout> <!-- Force some space -->
    101           <simplelist>
    102             <member><ulink url="&jai64-download;"/></member>
    103             <member>&jai64-md5sum;</member>
    104             <member>&jai64-size;</member>
    105           </simplelist>
    106         </para>
    107       </listitem>
    10892    </itemizedlist>
    109 <!--    <itemizedlist spacing="compact">
    110       <title>Required patch</title>
    111       <listitem>
    112         <para>
    113           <ulink url="&patch-root;/fop-&fop-version;-listNPE-1.patch"/>
    114         </para>
    115       </listitem>
    116     </itemizedlist>-->
    11793
    11894    <bridgehead renderas="sect3">fop Dependencies</bridgehead>
     
    167143
    168144    <sect3>
    169       <title>Installing Java Advanced Imaging (JAI) API components</title>
    170 
    171       <para>
    172         Install the JAI API components. As the <systemitem
    173         class="username">root</systemitem> user:
    174       </para>
    175 
    176 <screen role="root"><userinput>case `uname -m` in
    177   i?86)
    178     tar -xf ../jai-&jai-version;-lib-linux-i586.tar.gz
    179     cp -v jai-&jai-version;/lib/{jai*,mlibwrapper_jai.jar} $JAVA_HOME/jre/lib/ext/
    180     cp -v jai-&jai-version;/lib/libmlib_jai.so             $JAVA_HOME/jre/lib/i386/
    181     ;;
    182 
    183   x86_64)
    184     tar -xf ../jai-&jai-version;-lib-linux-amd64.tar.gz
    185     cp -v jai-&jai-version;/lib/{jai*,mlibwrapper_jai.jar} $JAVA_HOME/jre/lib/ext/
    186     cp -v jai-&jai-version;/lib/libmlib_jai.so             $JAVA_HOME/jre/lib/amd64/
    187     ;;
    188 esac</userinput></screen>
    189     </sect3>
    190 
    191     <sect3>
    192145      <title>Installing fop Components</title>
    193146
    194147      <para>
    195         The <command>javadoc</command> command coming with OpenJDK 8 has
     148        The <command>javadoc</command> command coming with OpenJDK 9 has
    196149        become much stricter than before regarding the conformance of the
    197150        Javadoc comments in source code to HTML. The FOP documentation does
     
    202155<screen><userinput>sed -i '\@&lt;/javad@i\
    203156&lt;arg value="-Xdoclint:none"/&gt;\
    204 &lt;arg value="--allow-script-in-comments"/&gt;' fop/build.xml</userinput></screen>
     157&lt;arg value="--allow-script-in-comments"/&gt;\
     158&lt;arg value="--ignore-source-errors"/&gt;' \
     159    fop/build.xml</userinput></screen>
    205160
    206161      <para>
     
    218173<screen><userinput>cd fop                    &amp;&amp;
    219174export LC_ALL=en_US.UTF-8 &amp;&amp;
    220 
    221 ant compile               &amp;&amp;
    222 ant jar-main              &amp;&amp;
    223 ant jar-hyphenation       &amp;&amp;
    224 ant javadocs              &amp;&amp;
     175ant all javadocs          &amp;&amp;
    225176mv build/javadocs .</userinput></screen>
    226177
     
    357308      <para>
    358309        To include the <command>fop</command> script in your path,
    359         update your personal or system-wide profile with the following:
    360       </para>
    361 
    362 <screen><literal>PATH=$PATH:/opt/fop</literal></screen>
     310        update the system-wide profile with the following command as the
     311        <systemitem class="username">root</systemitem> user:
     312      </para>
     313
     314<screen><literal>cat &gt; /etc/profile.d/fop.sh &lt;&lt; "EOF"
     315# Begin /etc/profile.d/fop.sh
     316
     317pathappend /opt/fop
     318
     319# End /etc/profile.d/fop.sh
     320EOF</literal></screen>
    363321
    364322      <note>
Note: See TracChangeset for help on using the changeset viewer.