Changeset bf7a1821


Ignore:
Timestamp:
04/29/2017 08:22:32 PM (7 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, 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:
6d5acf3
Parents:
d24954f
Message:

OpenJDK-1.8.0.131
FOP-2.2

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

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • general/prog/java.xml

    rd24954f rbf7a1821  
    77  <!ENTITY anduin-download             "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
    88  <!ENTITY openjdk-download-binary-x86 "&anduin-download;/OpenJDK-&openjdk-version;-i686-bin.tar.xz">
    9   <!ENTITY openjdk-bin-md5sum-x86      "69a1c15a7381fd8de4a7d019971c078e">
     9  <!ENTITY openjdk-bin-md5sum-x86      "e3e114790aca548785be9f9c9657dcff">
    1010  <!ENTITY openjdk-bin-size-x86        "57 MB">
    11   <!ENTITY openjdk-bin-buildsize-x86   "166 MB">
     11  <!ENTITY openjdk-bin-buildsize-x86   "167 MB">
    1212
    1313
    1414  <!ENTITY openjdk-download-binary-x64 "&anduin-download;/OpenJDK-&openjdk-version;-x86_64-bin.tar.xz">
    15   <!ENTITY openjdk-bin-md5sum-x64      "1aec751c6f406cbf1f48fc98ab7ead1c">
     15  <!ENTITY openjdk-bin-md5sum-x64      "645098b95f596fd733db8590405edb2a">
    1616  <!ENTITY openjdk-bin-size-x64        "58 MB">
    1717  <!ENTITY openjdk-bin-buildsize-x64   "170 MB">
  • general/prog/openjdk.xml

    rd24954f rbf7a1821  
    55  %general-entities;
    66
    7   <!ENTITY ojdk-upd                  "121">
    8   <!ENTITY ojdk-bd                   "b13">
     7  <!ENTITY ojdk-upd                  "131">
     8  <!ENTITY ojdk-bd                   "b11">
    99  <!ENTITY ojdk-tarball              "jdk8u&ojdk-upd;-&ojdk-bd;.tar.bz2">
    1010  <!ENTITY ojdk-repo                 "http://hg.openjdk.java.net/jdk8u/jdk8u">
     
    1313  <!ENTITY anduin-download           "&sources-anduin-http;/OpenJDK/OpenJDK-&openjdk-version;">
    1414
    15   <!ENTITY ojdk-md5sum               "5f3def798fa3a0b2c60ae891856dc9c5">
     15  <!ENTITY ojdk-md5sum               "10f8bc31c15a976dabef42b78222041a">
    1616  <!ENTITY ojdk-size                 "401 KB">
    1717
    18   <!ENTITY corba-md5sum              "9c052259b93646687fdcfb71643b69b4">
    19   <!ENTITY hotspot-md5sum            "0ca6e85dcbd96dfa24ac1bdd833aab2e">
    20   <!ENTITY jaxp-md5sum               "c2b5c1947c4aef684b27a463e4149d06">
    21   <!ENTITY jaxws-md5sum              "5a83842eca3881c7bf6abeaccac8f05d">
    22   <!ENTITY jdk-md5sum                "0325b88a2b39d7d72ef0726e91ea4a1d">
    23   <!ENTITY langtools-md5sum          "4dbe002af94423cbe382dda03e3e6a9d">
    24   <!ENTITY nashorn-md5sum            "c87f96bc7ba9596fb5587e307a8f1ec6">
     18  <!ENTITY corba-md5sum              "56ef949b915e684feb9ff22eb6843d4f">
     19  <!ENTITY hotspot-md5sum            "73c46cf954de8c7636f2fc32ed818cc0">
     20  <!ENTITY jaxp-md5sum               "536dd3733705f6588add4eaa40cd9a48">
     21  <!ENTITY jaxws-md5sum              "7c5f85ee99f0e300344a07a5f39bb1fe">
     22  <!ENTITY jdk-md5sum                "9ead63f267880850c7747d49b0b84797">
     23  <!ENTITY langtools-md5sum          "1c6ef3557e00f744bb4c99a10365c3c3">
     24  <!ENTITY nashorn-md5sum            "0206d4536358723ec0a941471a176db4">
    2525  <!ENTITY total-download-size       "63 MB">
    2626
    27   <!ENTITY jtreg-version             "4.2-b05-747">
     27  <!ENTITY jtreg-version             "4.2-b07-816">
    2828  <!ENTITY jtreg-download            "&anduin-download;/jtreg-&jtreg-version;.tar.gz">
    29   <!ENTITY jtreg-md5sum              "560d275d055112487ea879c44a985b30">
    30   <!ENTITY jtreg-size                "7.2 MB">
     29  <!ENTITY jtreg-md5sum              "e4d2b65faf86bd0d108d42aae1d1c124">
     30  <!ENTITY jtreg-size                "6.9 MB">
    3131
    3232  <!ENTITY icedtea-web-download      "http://icedtea.classpath.org/download/source/icedtea-web-&icedtea-web-version;.tar.gz">
    3333
    34   <!ENTITY ojdk-buildsize           "3.5 GB (additional 420 MB for tests)">
    35   <!ENTITY ojdk-time                "5 SBU with 4 jobs in parallel (up to 120 SBU for tests, see below)">
     34  <!ENTITY ojdk-buildsize           "3.1 GB (additional 495 MB for tests)">
     35  <!ENTITY ojdk-time                "5.2 SBU with 4 jobs in parallel (up to 120 SBU for tests, see below)">
    3636]>
    3737
    38 <sect1 id="openjdk"
    39        xreflabel="OpenJDK-&openjdk-version;">
     38<sect1 id="openjdk" xreflabel="OpenJDK-&openjdk-version;">
    4039  <?dbhtml filename="openjdk.html" ?>
    4140
     
    134133        <para>
    135134          In addition to the root package, the instructions below first
    136           download seven subproject tarballs,
    137           whose total size is &total-download-size;.
     135          download seven subproject tarballs, whose total size is
     136          &total-download-size;.
    138137        </para>
    139138      </listitem>
     
    206205    <para>
    207206      Unlike other packages in BLFS, the <application>OpenJDK</application>
    208       source packages are distributed in multiple tar balls. You need to first
     207      source packages are distributed in multiple tarballs. You need to first
    209208      extract the source root from <filename>&ojdk-tarball;</filename>, change
    210209      into the extracted directory, then proceed with the following
     
    247246        Before proceeding, you should ensure that your environment
    248247        <envar>PATH</envar> variable contains the location of the Java
    249         compilers used for bootstrapping <application>OpenJDK</application>.
     248        compiler used for bootstrapping <application>OpenJDK</application>.
    250249        This is the only requirement for the environment. Modern Java
    251250        installations do not need <envar>JAVA_HOME</envar> and
     
    267266<screen><userinput>unset JAVA_HOME               &amp;&amp;
    268267sh ./configure                \
    269    --with-update-version=&ojdk-upd;   \
     268   --with-update-version=&ojdk-upd;  \
    270269   --with-build-number=&ojdk-bd;    \
    271270   --with-milestone=BLFS      \
     
    346345    </para>
    347346
    348 <!-- no && here either, because the first "make" may return an error -->
    349 <screen role='nodump'><userinput>LANG=C make -k -C test                      \
    350             JT_HOME=${JT_HOME}              \
    351             JT_JAVA=${JT_JAVA}              \
    352             PRODUCT_HOME=${PRODUCT_HOME} all
     347<screen role='nodump'><userinput>
     348LANG=C make -k -C test                       \
     349            JT_HOME=${JT_HOME}               \
     350            JT_JAVA=${JT_JAVA}               \
     351            PRODUCT_HOME=${PRODUCT_HOME} all || true
    353352LANG=C ${JT_HOME}/bin/jtreg -a -v:fail,error \
    354353                -dir:$(pwd)/hotspot/test     \
    355354                -k:\!ignore                  \
    356355                -jdk:${PRODUCT_HOME}         \
    357                 :jdk</userinput></screen>
     356                :jdk || true</userinput></screen>
    358357
    359358    <para>
     
    367366      The test results can be compared to <ulink
    368367      url="http://download.java.net/openjdk/testresults/8/">these
    369       results</ulink>, although they usually are run on a newer version.  Some
    370       failures can be expected, the number of which depends on various
    371       conditions, like whether the computer is connected to network. Also, some
    372       tests may timeout if the machine is under load. Those are the reasons for
    373       considering the tests optional, although we would rather recommend them.
     368      results</ulink>, although they usually are run on a newer version. About
     369      30 tests are known to fail, but the exact number  depends on various
     370      conditions, like whether the computer is connected to network, or to a
     371      printer, and on the options given to configure
     372      (<parameter>--enable-unlimited-crypto</parameter> is known to trigger
     373      failures, but those come from the code in the tests, not from the
     374      installation). Also, some tests may timeout if the machine is under load.
    374375    </para>
    375376
     
    405406<screen role="root"><userinput>ln -v -nsf OpenJDK-&openjdk-version; /opt/jdk</userinput></screen>
    406407
    407     <para>If desired, you may install a .desktop file corresponding to an entry
    408     in a desktop menu for <command>policytool</command>. First, you need to
    409     obtain an icon from <xref linkend="icedtea-web"/>:</para>
     408    <para>
     409      If desired, you may install a .desktop file corresponding to an entry
     410      in a desktop menu for <command>policytool</command>. First, you need to
     411      obtain an icon from <xref linkend="icedtea-web"/>:
     412    </para>
    410413
    411414<screen><userinput>tar -xf ../icedtea-web-&icedtea-web-version;.tar.gz  \
     
    413416        --strip-components=1</userinput></screen>
    414417
    415     <para>Now, as <systemitem class="username">root</systemitem> user:</para>
     418    <para>
     419      Now, as <systemitem class="username">root</systemitem> user:
     420    </para>
    416421
    417422<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
     
    432437install -v -Dm0644 javaws.png /usr/share/pixmaps/javaws.png</userinput></screen>
    433438
    434     <para>The choice of pt_BR is just an example. You can add any translation
    435     by adding lines corresponding to your locale, e.g. for fr_FR,
    436     <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
    437     appropriate text as values.</para>
     439    <para>
     440      The choice of pt_BR is just an example. You can add any translation
     441      by adding lines corresponding to your locale, e.g. for fr_FR,
     442      <quote>Name[fr_FR]=</quote> and <quote>Comment[fr_FR]=</quote> with the
     443      appropriate text as values.
     444    </para>
    438445
    439446  </sect2>
     
    503510    <para>
    504511      <option>--with-cacerts-file=...</option>: Specifies where to find a
    505       <filename>cacerts</filename> file, typically <filename>
    506       /opt/jdk/jre/lib/security</filename>. Otherwise, an empty one is created.
    507       You can get it from an earlier version of the package, or use the
    508       script below to generate one.
     512      <filename>cacerts</filename> file, <filename class="directory">
     513      /etc/ssl/java/cacerts</filename> on a BLFS system. Otherwise, an empty
     514      one is created. You can use the <command>make-ca.sh --force</command>
     515      command to generate it, once you have installed the Java binaries.
    509516    </para>
    510517
     
    563570<screen role="root"><userinput>ln -sfv /etc/ssl/java/cacerts /opt/jdk/jre/lib/security/cacerts</userinput></screen>
    564571
    565     <para>Use the following commands to check if the
    566     <filename>cacerts</filename> file has been successfully installed:</para>
     572      <para>
     573        Use the following commands to check if the <filename>cacerts</filename>
     574        file has been successfully installed:
     575      </para>
    567576
    568577<screen role="root"><userinput>cd /opt/jdk
    569578bin/keytool -list -keystore /etc/ssl/java/cacerts</userinput></screen>
    570579
    571     <para>At the prompt "Enter keystore password:", enter "changeit" (the
    572     default). If the <filename>cacerts</filename> file was installed
    573     correctly, you will see a list of the certificates with related
    574     information for each one. If not, you need to reinstall them.</para>
     580      <para>
     581        At the prompt "Enter keystore password:", enter "changeit" (the
     582        default). If the <filename>cacerts</filename> file was installed
     583        correctly, you will see a list of the certificates with related
     584        information for each one. If not, you need to reinstall them.
     585      </para>
    575586
    576587    </sect3>
  • introduction/welcome/changelog.xml

    rd24954f rbf7a1821  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[pierre] - Update to FOP-2.2, reinstate OFFO hyphenation
     49          patterns and fix tests running. Fixes
     50          <ulink url="&blfs-ticket-root;9117">#9117</ulink>.</para>
     51        </listitem>
     52        <listitem>
     53          <para>[pierre] - Update to OpenJDK-1.8.0.131. Fixes
     54          <ulink url="&blfs-ticket-root;9144">#9144</ulink>.</para>
     55        </listitem>
     56        <listitem>
    4857          <para>[bdubbs] - Update to unbound-1.6.1. Fixes
    4958          <ulink url="&blfs-ticket-root;8910">#8910</ulink>.</para>
  • packages.ent

    rd24954f rbf7a1821  
    331331<!ENTITY junit-version                "4.11">
    332332<!ENTITY hamcrest-version             "1.3">
    333 <!ENTITY openjdk-version              "1.8.0.121">
     333<!ENTITY openjdk-version              "1.8.0.131">
    334334
    335335<!ENTITY python2-majorver             "2.7">
     
    866866<!ENTITY psutils-version              "p17">
    867867<!ENTITY epdfview-version             "0.1.8">
    868 <!ENTITY fop-version                  "2.1">
     868<!ENTITY fop-version                  "2.2">
    869869<!ENTITY mupdf-version                "1.11">
    870870<!ENTITY paps-version                 "0.6.8">
  • pst/ps/fop.xml

    rd24954f rbf7a1821  
    77  <!ENTITY fop-download-http "https://archive.apache.org/dist/xmlgraphics/fop/source/fop-&fop-version;-src.tar.gz">
    88  <!ENTITY fop-download-ftp  " ">
    9   <!ENTITY fop-md5sum        "13b5b497dfb0ba8a01093dfc1a89d106">
    10   <!ENTITY fop-size          "23 MB">
    11   <!ENTITY fop-buildsize     "342 MB">
    12   <!ENTITY fop-time          "0.3 SBU">
     9  <!ENTITY fop-md5sum        "6d2388bd8851b4883d3258c0afc96895">
     10  <!ENTITY fop-size          "24 MB">
     11  <!ENTITY fop-buildsize     "493 MB (add 39 MB for tests)">
     12  <!ENTITY fop-time          "0.7 SBU (add 0.7 SBU for tests)">
    1313
    1414  <!ENTITY jai-version       "1_1_3">
     
    2020  <!ENTITY jai64-md5sum      "4a906db35612f668aeef2c0606d7075b">
    2121  <!ENTITY jai64-size        "3.4 MB">
    22 <!--
    23   <!ENTITY offo-download     "&sourceforge-repo;/offo/offo-hyphenation_v2.0.zip">
    24   <!ENTITY offo-md5sum       "a78171d47c9af223c51bbd42df36f26d">
    25   <!ENTITY offo-size         "858 KB">
    26 -->
     22  <!ENTITY offo-download     "&sourceforge-repo;/projects/offo/files/offo-hyphenation/2.2/offo-hyphenation.zip">
     23  <!ENTITY offo-md5sum       "bf9c09bf05108ef9661b8f08d91c2336">
     24  <!ENTITY offo-size         "862 KB">
    2725]>
    2826
     
    8280      <title>Recommended packages</title>
    8381
    84 <!--
    8582      <listitem>
    8683        <para>Objects for Formatting Objects (OFFO) hyphenation patterns:
     
    9289        </para>
    9390      </listitem>
    94 -->
     91
    9592      <listitem>
    9693        <para>Java Advanced Imaging (JAI) API components (architecture dependent):
     
    109106      </listitem>
    110107    </itemizedlist>
    111     <itemizedlist spacing="compact">
     108<!--    <itemizedlist spacing="compact">
    112109      <title>Required patch</title>
    113110      <listitem>
     
    116113        </para>
    117114      </listitem>
    118     </itemizedlist>
     115    </itemizedlist>-->
    119116
    120117    <bridgehead renderas="sect3">fop Dependencies</bridgehead>
     
    129126      <xref linkend="junit"/> (to run tests),
    130127      <xref linkend="x-window-system"/> (to run tests),
    131       <ulink url="http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html">JIMI SDK</ulink>,
    132       <ulink url="http://www.xmlunit.org/">XMLUnit</ulink>,
    133       <ulink url="https://java.net/projects/jai-imageio">JAI Image I/O Tools</ulink>,
    134       <ulink url="http://jeuclid.sourceforge.net/">JEuclid</ulink>,
    135       <ulink url="https://pmd.github.io/">PMD</ulink>
    136           (requires <ulink url="http://jaxen.org/">Jaxen</ulink>), and
    137       <ulink url="http://forrest.apache.org/">Forrest</ulink> (Forrest used only
    138       to build the documentation)
     128      <ulink url="https://maven.apache.org/">Maven</ulink>,
     129      <ulink url="https://java.net/projects/jai-imageio">JAI Image I/O Tools</ulink>, and
     130      <ulink url="http://jeuclid.sourceforge.net/">JEuclid</ulink>
     131<!-- [pierre 2017-04-29] Note to devs: there are a lot of bundled dependencies.
     132     Some were listed here, but not all. I am not sure it is possible to
     133     use system ones. So, I have removed them, an kept only those which
     134     are not bundled. -->
    139135    </para>
    140136
     
    154150      found via the <envar>CLASSPATH</envar> environment variable.
    155151    </para>
    156 <!--
     152
    157153    <sect3>
    158154      <title>Installing OFFO Hyphenation Patterns</title>
    159155
    160156      <para>
    161         First, unpack the <application>fop</application> source tarball and
    162         the hyphenation zipfile from the same directory, then change directories
    163         into the root of the <application>fop</application> source tree. Copy
    164         the XML hyphenation patterns into the <application>fop</application>
    165         source tree by running the following commands:
    166       </para>
    167 
    168 <screen><userinput>cp ../offo-hyphenation/hyph/* hyph &amp;&amp;
    169 rm -rf ../offo-hyphenation</userinput></screen>
     157        Copy the XML hyphenation patterns into the fop source tree by running
     158        the following commands:
     159      </para>
     160
     161<screen><userinput>unzip ../offo-hyphenation.zip &amp;&amp;
     162cp offo-hyphenation/hyph/* fop/hyph &amp;&amp;
     163rm -rf offo-hyphenation</userinput></screen>
    170164
    171165    </sect3>
    172 -->
     166
    173167    <sect3>
    174168      <title>Installing Java Advanced Imaging (JAI) API components</title>
     
    207201<screen><userinput>sed -i '\@&lt;/javad@i\
    208202&lt;arg value="-Xdoclint:none"/&gt;\
    209 &lt;arg value="--allow-script-in-comments"/&gt;' build.xml</userinput></screen>
    210 
     203&lt;arg value="--allow-script-in-comments"/&gt;' fop/build.xml</userinput></screen>
     204
     205      <para>
     206        The stack size set in <filename>build.xml</filename> for building the
     207        hyphenation patterns is not enough. Change it by running:
     208      </para>
     209
     210<screen><userinput>sed -e '/hyph\.stack/s/512k/1M/' \
     211    -i fop/build.xml</userinput></screen>
    211212      <para>
    212213        Then, compile <application>fop</application> by running the
     
    214215      </para>
    215216
    216 <screen><userinput>patch -Np1 -i ../fop-&fop-version;-listNPE-1.patch &amp;&amp;
    217 
    218 ant compile &amp;&amp;
    219 ant jar-main &amp;&amp;
    220 ant javadocs &amp;&amp;
     217<screen><userinput>cd fop                    &amp;&amp;
     218export LC_ALL=en_US.UTF-8 &amp;&amp;
     219
     220ant compile               &amp;&amp;
     221ant jar-main              &amp;&amp;
     222ant jar-hyphenation       &amp;&amp;
     223ant javadocs              &amp;&amp;
    221224mv build/javadocs .</userinput></screen>
    222225
    223 <!-- ant docs target is not present anymore in fop-2.0
    224       <para>
    225         If <application>Forrest</application> is installed,
    226         build the full set of documentation:
    227       </para>
    228 
    229 <screen><userinput>ant docs</userinput></screen>
    230 -->
    231       <para>
    232         To test the application, run <command>ant junit-all</command>. The
    233         hyphenation tests will fail.  To see a list of other test targets, use
    234         <command>ant -p</command>. You must run the tests from an X-window using
    235         a GL-aware <application>Xorg</application> server or some of the
    236         <application>JUnit</application> tests will hang.
     226      <para>
     227        To test the application, first modify <filename>build.xml</filename>
     228        so that tests do not stop when an error is encountered:
     229      </para>
     230 
     231<screen><userinput>sed -e '/haltonfailure/s/yes/off/' \
     232    -i build.xml</userinput></screen>
     233
     234      <para>
     235        Then, run <command>ant junit</command>. The hyphenation tests will
     236        fail if OFFO hyphenation has not been compiled. To see a list of other
     237        test targets, use <command>ant -p</command>. You must run the tests
     238        from an X-window using a GL-aware <application>Xorg</application>
     239        server or some of the <application>JUnit</application> tests will hang.
    237240      </para>
    238241
     
    242245
    243246<screen role="root"><userinput>install -v -d -m755 -o root -g root          /opt/fop-&fop-version; &amp;&amp;
    244 cp -v  KEYS LICENSE NOTICE README            /opt/fop-&fop-version; &amp;&amp;
     247cp -v  ../{KEYS,LICENSE,NOTICE,README}       /opt/fop-&fop-version; &amp;&amp;
    245248cp -vR build conf examples fop* javadocs lib /opt/fop-&fop-version; &amp;&amp;
    246 
    247 ln -v -sf fop-&fop-version; /opt/fop</userinput></screen>
     249chmod a+x /opt/fop-&fop-version;/fop                                &amp;&amp;
     250
     251ln -v -sfn fop-&fop-version; /opt/fop</userinput></screen>
    248252
    249253    </sect3>
     
    261265
    262266    <para>
    263       <command>patch -Np1 -i ../fop-2.1-listNPE-1.patch</command>: This patch
    264       fixes a bug leading to segmentation faults when processing some inputs.
     267      <command>export LC_ALL=en_US.UTF-8</command>: the compiler fails if using
     268      an ASCII locale.
    265269    </para>
    266270
     
    269273      <filename>build.xml</filename> and builds the target: <option>compile
    270274      </option> compiles the java sources, <option>jar-main</option> generates
    271       jar archives, and <option>javadocs</option> builds the documentation.
     275      jar archives, <option>jar-hyphenation</option> generates the hyphenation
     276      patterns for FOP, and <option>javadocs</option> builds the documentation.
    272277    </para>
    273278
Note: See TracChangeset for help on using the changeset viewer.