Changeset 1265b05


Ignore:
Timestamp:
04/04/2012 01:06:59 PM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
793d016
Parents:
e01e550b
Message:

Xulrunner tweaks

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/xulrunner.xml

    re01e550b r1265b05  
    7373        <para>
    7474          Estimated build time: &xulrunner-time;
     75        </para>
     76      </listitem>
     77    </itemizedlist>
     78
     79    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
     80    <itemizedlist spacing="compact">
     81      <listitem>
     82        <para>
     83          Required patch if you're using <application>GCC-4.7</application>:
     84          <ulink url="&patch-root;/xulrunner-&xulrunner-version;_gcc-4.7-1.patch"/>
    7585        </para>
    7686      </listitem>
     
    189199    </para>
    190200
    191 <screen><userinput>sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &amp;&amp;
     201<screen><userinput>patch -p1 &lt; ../xulrunner-&xulrunner-version;_gcc-4.7-1.patch &amp;&amp;
     202sed -i 's#VPX_CODEC_USE_INPUT_PARTITION#VPX_CODEC_USE_INPUT_FRAGMENTS#' configure &amp;&amp;
    192203sed -i '/Version/aRequires: nspr &gt;= &nspr-version;' xulrunner/installer/libxul-embedding.pc.in &amp;&amp;
     204sed -i 's#-L${sdkdir}/lib ##' xulrunner/installer/*.pc.in &amp;&amp;
    193205make -f client.mk</userinput></screen>
    194206
     
    205217rm -rf /usr/lib/xulrunner-&xulrunner-version;/plugins &amp;&amp;
    206218ln -sv ../mozilla/plugins /usr/lib/xulrunner-&xulrunner-version; &amp;&amp;
    207 chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-*</userinput></screen>
    208 
    209     <para>
    210       If you elected to use the included NSPR and NSS (ie, if you have
    211       <emphasis>not</emphasis> installed <xref linkend="nspr"/> and
    212       <xref linkend="nss"/>), while still the
    213       <systemitem class="username">root</systemitem> user, complete the
    214       installation with the following commands:
    215     </para>
    216 
    217 <screen role="root"><userinput>for DL in libnss3.so libnssutil3.so libsmime3.so \
    218   libssl3.so libsoftokn3.so  libplds4.so libplc4.so libnspr4.so
    219 do ln -sv xulrunner-&xulrunner-version;/${DL} /usr/lib
    220 done &amp;&amp;
    221 unset DL</userinput></screen>
     219chown -Rv root:root /usr/{include,lib,share/idl}/xulrunner-* &amp;&amp;
     220for library in /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.{a,so}
     221do ln -sfv ${library#/usr/lib/} /usr${library#*sdk}
     222done</userinput></screen>
    222223  </sect2>
    223224
     
    231232      you have libvpx-v0.9.7 or earlier installed or if you've not installed
    232233      <application>Libvpx</application>.
    233         </para>
     234    </para>
    234235
    235236    <para>
    236237      <command>sed ... Requires: nspr</command>: If you try to build some other
    237238      applications without this, the prtypes header from NSPR will not be found.
     239    </para>
     240
     241    <para>
     242      <command>sed -i 's#-L${sdkdir}/lib ##'
     243      xulrunner/installer/*.pc.in</command>: Because we put symlinks to the
     244      libraries into <filename class="directory">/usr/lib</filename> we do not
     245      need to have -L/usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib in
     246      the linker flags provided by the pkg-config .pc files.
    238247    </para>
    239248
     
    255264
    256265    <para>
    257       <command>for DL in ...</command>: The NSPR and NSS libraries shipped
    258       with this package are installed into
    259       <filename class="directory">/usr/lib/xulrunner-&xulrunner-version;</filename>
    260       which means they will not be found at runtime. By using symbolic links
    261       from <filename class="directory">/usr/lib</filename> the libraries will be
    262       found and the links can be easily changed to point to a newer version
    263       during an upgrade.
    264     </para>
    265 
    266     <note>
    267       <para>
    268         When you upgrade Xulrunner, remember to update the symlinks.
    269       </para>
    270     </note>
     266      <command>for library in
     267      /usr/lib/xulrunner-devel-&xulrunner-version;/sdk/lib/*.{a,so}; do ln -sfv
     268      ${library#/usr/lib/} /usr${library#*sdk}; done</command>: The libraries
     269      shipped with this package are installed into
     270      <filename class="directory">/usr/lib/xulrunner-devel-&xulrunner-version;</filename>
     271      which means they will not be found at runtime. These commands make
     272      relative symbolic links to the libraries from
     273      <filename class="directory">/usr/lib</filename>.
     274    </para>
    271275  </sect2>
    272276
Note: See TracChangeset for help on using the changeset viewer.