Changeset bba3fd3


Ignore:
Timestamp:
08/26/2018 07:05:18 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.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:
6872d73
Parents:
fbd186f
Message:

Update to Fop-2.3. Fixes #10811.

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    rfbd186f rbba3fd3  
    4545      <para>August 26th, 2018</para>
    4646      <itemizedlist>
     47        <listitem>
     48          <para>[dj] - Update to Fop-2.3. Fixes
     49          <ulink url="&blfs-ticket-root;10811">#10811</ulink>.</para>
     50        </listitem>
    4751        <listitem>
    4852          <para>[dj] - Fix build issue with junit-4.12. Fixes
  • packages.ent

    rfbd186f rbba3fd3  
    899899<!ENTITY psutils-version              "p17">
    900900<!ENTITY epdfview-version             "0.1.8">
    901 <!ENTITY fop-version                  "2.2">
     901<!ENTITY fop-version                  "2.3">
    902902<!ENTITY mupdf-version                "1.13.0">
    903903<!ENTITY paps-version                 "0.6.8">
  • pst/ps/fop.xml

    rfbd186f rbba3fd3  
    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        "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)">
    13 
    14   <!ENTITY jai-version       "1_1_3">
    15   <!ENTITY jai-download      "http://download.java.net/media/jai/builds/release/&jai-version;/jai-&jai-version;-lib-linux-i586.tar.gz">
    16   <!ENTITY jai-md5sum        "a2cbc155ef3899bcde9c74a8035764b3">
    17   <!ENTITY jai-size          "3.4 MB">
    18 
    19   <!ENTITY jai64-download    "http://download.java.net/media/jai/builds/release/&jai-version;/jai-&jai-version;-lib-linux-amd64.tar.gz">
    20   <!ENTITY jai64-md5sum      "4a906db35612f668aeef2c0606d7075b">
    21   <!ENTITY jai64-size        "3.4 MB">
     9  <!ENTITY fop-md5sum        "fc95040a8db4a7f22c6f26e18fd6d033">
     10  <!ENTITY fop-size          "26 MB">
     11  <!ENTITY fop-buildsize     "497 MB ">
     12  <!ENTITY fop-time          "1.1 SBU">
     13
     14  <!ENTITY pdfbox-version    "2.0.11">
     15  <!ENTITY pdfbox-download   "http://mirror.reverse.net/pub/apache/pdfbox/&pdfbox-version;/pdfbox-&pdfbox-version;.jar">
     16  <!ENTITY pdfbox-md5sum     "93fbcf37217d0caab35f79476f2ffd1d">
     17  <!ENTITY pdfbox-size       "2.4 MB">
     18
     19  <!ENTITY fontbox-download  "http://mirror.reverse.net/pub/apache/pdfbox/&pdfbox-version;/fontbox-&pdfbox-version;.jar">
     20  <!ENTITY fontbox-md5sum    "4e139453c2bda1e4ce1ff1e90acae04b">
     21  <!ENTITY fontbox-size      "1.5 MB">
    2222
    2323  <!ENTITY offo-download     "&sourceforge-dl;/offo/2.2/offo-hyphenation.zip">
     
    5353    </para>
    5454
    55     &lfs82_checked;
     55    &lfs83_checked;
    5656
    5757    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    7979    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    8080    <itemizedlist spacing="compact">
     81      <title>Required Additonal Downloads:</title>
     82      <listitem>
     83        <para>PDFBox:
     84          <simplelist>
     85            <member><ulink url="&pdfbox-download;"/></member>
     86            <member>&pdfbox-md5sum;</member>
     87            <member>&pdfbox-size;</member>
     88          </simplelist>
     89        </para>
     90      </listitem>
     91      <listitem>
     92        <para>PDFBox Fonts:
     93          <simplelist>
     94            <member><ulink url="&fontbox-download;"/></member>
     95            <member>&fontbox-md5sum;</member>
     96            <member>&fontbox-size;</member>
     97          </simplelist>
     98        </para>
     99      </listitem>
     100    </itemizedlist>
     101
     102    <itemizedlist spacing="compact">
    81103      <title>Recommended packages</title>
    82 
    83104      <listitem>
    84105        <para>Objects for Formatting Objects (OFFO) hyphenation patterns:
     
    146167
    147168      <para>
    148         The <command>javadoc</command> command coming with OpenJDK 9 has
    149         become much stricter than before regarding the conformance of the
    150         Javadoc comments in source code to HTML. The FOP documentation does
    151         not meet those standard, so the conformance checks have to be
     169        The <command>javadoc</command> command that ships with OpenJDK 10 has
     170        become much more strict than previous versions regarding conformance of
     171        the Javadoc comments in source code to HTML. The FOP documentation does
     172        not meet those standards, so the conformance checks have to be
    152173        disabled. This can be done with the following command:
    153174      </para>
     
    161182      <para>
    162183        The stack size set in <filename>build.xml</filename> for building the
    163         hyphenation patterns is not enough. Change it by running:
     184        hyphenation patterns is not large enough. Change it by running:
    164185      </para>
    165186
    166187<screen><userinput>sed -e '/hyph\.stack/s/512k/1M/' \
    167188    -i fop/build.xml</userinput></screen>
    168       <para>
    169         Then, compile <application>fop</application> by running the
    170         following commands:
     189
     190      <para>
     191        The <filename>build.xml</filename> file calls for an old version of
     192        <application>PDFBox</application> components that are no longer
     193        available. Copy the updated PDFBox components into the source tree:
     194      </para>
     195
     196<screen><userinput>cp ../{pdf,font}box-&pdfbox-version;.jar fop/lib</userinput></screen>
     197
     198      <para>
     199        Compile <application>fop</application> by running the following
     200        commands:
    171201      </para>
    172202
     
    177207
    178208      <para>
    179         To test the application, first modify <filename>build.xml</filename>
    180         so that tests do not stop when an error is encountered:
     209        The <application>junit</application> test suite was run as part of the
     210        above commands.
    181211      </para>
    182212 
    183 <screen><userinput>sed -e '/haltonfailure/s/yes/off/' \
    184     -i build.xml</userinput></screen>
    185 
    186       <para>
    187         Then, run <command>ant junit</command>. The hyphenation tests will
    188         fail if OFFO hyphenation has not been compiled. To see a list of other
    189         test targets, use <command>ant -p</command>. You must run the tests
    190         from an X-window using a GL-aware <application>Xorg</application>
    191         server or some of the <application>JUnit</application> tests will hang.
    192       </para>
    193 
    194       <para>
    195         Now, as the <systemitem class="username">root</systemitem> user:
     213      <para>
     214        Now, install <application>Fop</application> as the
     215        <systemitem class="username">root</systemitem> user:
    196216      </para>
    197217
    198218<screen role="root"><userinput>install -v -d -m755 -o root -g root          /opt/fop-&fop-version; &amp;&amp;
    199 cp -v  ../{KEYS,LICENSE,NOTICE,README}       /opt/fop-&fop-version; &amp;&amp;
    200219cp -vR build conf examples fop* javadocs lib /opt/fop-&fop-version; &amp;&amp;
    201220chmod a+x /opt/fop-&fop-version;/fop                                &amp;&amp;
    202 
    203221ln -v -sfn fop-&fop-version; /opt/fop</userinput></screen>
    204222
     
    226244      </option> compiles the java sources, <option>jar-main</option> generates
    227245      jar archives, <option>jar-hyphenation</option> generates the hyphenation
    228       patterns for FOP, and <option>javadocs</option> builds the documentation.
     246      patterns for FOP, <option>junit</option> runs the
     247      <application>junit</application> tests, and <option>javadocs</option>
     248      builds the documentation. The <option>all</option> target runs all of the
     249      above.
    229250    </para>
    230251
Note: See TracChangeset for help on using the changeset viewer.