Changeset af689bc3 for x


Ignore:
Timestamp:
04/03/2010 01:19:44 PM (14 years ago)
Author:
Randy McMurchy <randy@…>
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:
054599c
Parents:
2c06b85
Message:

Minor tweaks to the Xulrunner instructions

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/xulrunner.xml

    r2c06b85 raf689bc3  
    3535    codebase.  In particular, it provides the gecko engine together with pkgconfig
    3636    files so that applications such as <application>Epiphany</application> and
    37     <application>Yelp</application> can use it.</para>
     37    <application>Yelp</application> can find and use it.</para>
    3838
    3939    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    4444      <listitem>
    4545        <para>Download (FTP): <ulink url="&xulrunner-download-ftp;"/></para>
    46         <tip><para>When a new version of <application>firefox</application> is
     46        <tip><para>When a new version of <application>Firefox</application> is
    4747        released, sometimes a corresponding new version of
    48         <application>xulrunner</application> appears at the same time. At other
     48        <application>Xulrunner</application> appears at the same time. At other
    4949        times it appears several days later or not at all. So far in the
    50         <application>firefox-3.x</application> series, every new release has
     50        <application>Firefox-3.x</application> series, every new release has
    5151        created xulrunner libraries with a corresponding new version. Whenever
    52         a separate xulrunner tarball has been released, it has been bitwise
    53         identical to the corresponding firefox tarball. So, we will use the
    54         <application>firefox</application> tarball to save downloading this
     52        a separate Xulrunner tarball has been released, it has been bitwise
     53        identical to the corresponding Firefox tarball. Use the
     54        <application>Firefox</application> tarball to save downloading this
    5555        large package twice.</para></tip>
    5656      </listitem>
     
    109109    <xref linkend="lcms"/>,
    110110    <xref linkend="libpng"/> (patched for apng support),
     111    <!-- Redundant as NSS requires this
    111112    <xref linkend="nspr"/> (recommended if you build any other Mozilla.org
    112     packages),
     113    packages), -->
    113114    <xref linkend="nss"/> (recommended if you build any other Mozilla.org
    114115    packages),
    115     <xref linkend="startup-notification"/>.
     116    <xref linkend="startup-notification"/>,
    116117    <xref linkend="unzip"/>,
    117118    <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing the
     
    137138    can find it at
    138139    <ulink url="&files-anduin;/xulrunner-&xulrunner-version;-mozconfig"/>
    139     (the file must be installed in the root of the source tree
    140     <filename class='directory'>mozilla</filename> directory, and named
    141     <filename>.mozconfig</filename>).</para>
     140    (the file must be installed in the root of the source tree,
     141    <!-- directory name changes depending on version of Xulrunner
     142    <filename class='directory'>mozilla</filename> directory,--> and named
     143    <filename>.mozconfig</filename> or <filename>mozconfig</filename>).</para>
    142144
    143145<screen><?dbfo keep-together="auto"?><userinput>cat &gt; .mozconfig &lt;&lt; "EOF"
     
    151153# options, such as '--with-system-bz2', do not affect the build.
    152154
    153 # specify that we want to build xulrunner
     155# specify that Xulrunner should be built.
    154156ac_add_options --enable-application=xulrunner
    155157
    156 # Create an object directory and specify to build the package in that
    157 # directory. If desired, modify the location of the object directory
     158# Build the package in an object directory as recommended by the developers.
     159# If desired, modify the location of the object directory
    158160# to a directory inside the source tree by removing '../' from the
    159161# line below.
     
    165167ac_add_options --prefix=/usr
    166168
    167 # apply a minimal level of optimization (-O)
     169# apply the default optimizations recommended by the developers (-O)
    168170ac_add_options --enable-optimize
    169171
     
    180182
    181183# Comment this only if you want to use whatever patched version of cairo
    182 # is in the shipped mozilla tree, together with the system headers.
     184# is in the shipped Mozilla tree, together with the system headers.
    183185ac_add_options --enable-system-cairo
    184186
     
    211213ac_add_options --disable-accessibility
    212214
    213 # Uncomment this if you did not build curl.
     215# Uncomment this if you did not build cURL.
    214216#ac_add_options --disable-crashreporter
    215217
    216 # Comment this if you have built dbus-glib.
     218# Comment this if you have built D-Bus-GLib.
    217219ac_add_options --disable-dbus
    218220
    219 # Comment this if you have gnome-vfs and libgnomeui, and wish to
    220 # integrate xulrunner into your gnome desktop
     221# Comment this if you have Gnome-VFS and libgnomeui, and wish to
     222# integrate Xulrunner into your Gnome desktop.
    221223ac_add_options --disable-gnomevfs
    222224
     
    233235ac_add_options --disable-javaxpcom
    234236
    235 # This option is added so that test libraries and programs are not
    236 # built. These would only be required for debugging purposes.
     237# This option is added so that test libraries and programs used for debugging
     238# are not built.
    237239ac_add_options --disable-tests
    238240
    239241# Disable the updater, which is not appropriate if you build from source
    240242ac_add_options --disable-updater
    241 
    242 # (options to add extra parts of the package)
    243 # Use the anti-phishing measures (a blacklist of sites).
    244 ac_add_options --enable-safe-browsing
    245243
    246244# This option is used so that the debugging symbols are removed from
     
    251249ac_add_options --enable-strip
    252250
     251# (Options to add extra parts of the package)
     252# Use the anti-phishing measures (a blacklist of sites).
     253ac_add_options --enable-safe-browsing
     254
    253255# Uncomment this option if you desire support for dual-monitor
    254256# display using the X-Window Xinerama libraries.
     
    257259# This option identifies the default binary directory of the Xulrunner
    258260# installation and is used to locate Xulrunner's installed files. This
    259 # option is is only used for development purposes.
     261# option is only used for development purposes.
    260262#ac_add_options --with-default-mozilla-five-home=/usr/lib/xulrunner-&xulrunner-version;</literal>
    261263
     
    268270<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-provide_system_nss_nspr-1.patch</userinput></screen>
    269271
    270     <para>Compile <application>Xulrunner</application> by issuing the
     272    <para>Install <application>Xulrunner</application> by issuing the
    271273    following commands:</para>
    272274
     
    278280    <para>This package does not come with a test suite.</para>
    279281
    280     <para>Now, as the <systemitem class="username">root</systemitem> user,
    281     install the package:</para>
     282    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    282283
    283284<screen role="root"><userinput>make -f client.mk install &amp;&amp;
    284 mkdir /usr/lib/mozilla &amp;&amp;
    285 ln -sv /usr/lib/xulrunner-&xulrunner-version;/plugins \
    286     /usr/lib/mozilla/plugins &amp;&amp;
    287 chown -R root:root /usr/lib/xulrunner-* /usr/bin/xulrunner &amp;&amp;
    288 ln -sfv xulrunner-devel-&xulrunner-version;/lib/lib{xul,xpcom,mozjs}.so /usr/lib</userinput></screen>
     285install -v -m644    /usr/lib/mozilla &amp;&amp;
     286ln -sv              /usr/lib/xulrunner-&xulrunner-version;/plugins \
     287                    /usr/lib/mozilla &amp;&amp;
     288chown -Rv root:root /usr/lib/xulrunner-* \
     289                    /usr/bin/xulrunner &amp;&amp;
     290ln -sfv             xulrunner-devel-&xulrunner-version;/lib/lib{xul,xpcom,mozjs}.so \
     291                    /usr/lib</userinput></screen>
    289292
    290293    <para>If you've elected to use the included NSPR and NSS, while still the
     
    296299    libplds4.so libplc4.so libnspr4.so
    297300do
    298     ln -sv xulrunner-&xulrunner-version;/$DL /usr/lib/$DL
     301    ln -sv xulrunner-&xulrunner-version;/$DL /usr/lib
    299302done</userinput></screen>
    300303
     
    304307    <title>Command Explanations</title>
    305308
    306     <para><command>echo "Requires: nspr" >>xulrunner/installer/libxul-embedding.pc.in</command>
    307     : If you try to build <application>Yelp</application> without this, the
    308     prtypes header from nspr will not be found.  It is arguable whose error this
     309    <para><command>echo "Requires: nspr"
     310    >>xulrunner/installer/libxul-embedding.pc.in</command>: If you try to build
     311    <application>Yelp</application> without this, the
     312    prtypes header from NSPR will not be found.  It is arguable whose error this
    309313    is (the code presumably works on earlier geckos), but this fix is unlikely
    310314    to cause any damage in other packages.</para>
     
    320324    the package.</para>
    321325
    322     <para><command>for DL in ...</command>: The nspr and nss libraries shipped
    323     with this package are installed into /usr/lib/xulrunner-&xulrunner-version;
     326    <para><command>for DL in ...</command>: The NSPR and NSS libraries shipped
     327    with this package are installed into
     328    <filename class='directory'>/usr/lib/xulrunner-&xulrunner-version;</filename>
    324329    which means they will not be found at runtime.  By using symbolic links from
    325     <filename class="directory">/usr/lib</filename> they will be found and we can
    326     easily change the links to point to a newer version when we upgrade.</para>
     330    <filename class="directory">/usr/lib</filename> the libraries will be found
     331    and the links can be easily changed to point to a newer version during an
     332    upgrade.</para>
    327333
    328334    <para><command>ln -sv /usr/lib/xulrunner-&xulrunner-version;/plugins
    329     /usr/lib/mozilla/plugins</command>: Some packages will install browser plugins
    330     into /usr/lib/mozilla/plugins. By creating this as a symlink to the basic
    331     plugins we keep them all together.</para>
    332 
    333    <tip>
    334     <para>When you upgrade xulrunner, remember to update the symlinks and to
    335     copy any additional plugins compiled agaisnt this series of xulrunner to the
    336     new plugin directory.</para>
    337    </tip>
     335    /usr/lib/mozilla</command>: Some packages will install browser plugins
     336    into <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
     337    Creating this as a symlink to the <application>Xulrunner</application>
     338    plugins keeps additional plugins in a common directory.</para>
     339
     340   <note>
     341     <para>When you upgrade Xulrunner, remember to update the symlinks and to
     342     copy any additional plugins compiled against this series of Xulrunner to the
     343     new plugin directory.</para>
     344   </note>
    338345
    339346  </sect2>
Note: See TracChangeset for help on using the changeset viewer.