Ignore:
Timestamp:
09/26/2012 07:37:55 PM (12 years ago)
Author:
Krejzi <krejzi@…>
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:
35e84dce
Parents:
983fc68
Message:

GNOME 3.6 Part 6.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/webkitgtk.xml

    r983fc68 rd356833  
    55  %general-entities;
    66
    7   <!ENTITY webkitgtk-download-http "http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
     7  <!ENTITY webkitgtk-download-http "http://webkitgtk.org/releases/webkitgtk-&webkitgtk-version;.tar.xz">
    88  <!ENTITY webkitgtk-download-ftp  " ">
    9   <!ENTITY webkitgtk-md5sum        "f7bd0bd4f323039f15e19c82a9a8313c">
    10   <!ENTITY webkitgtk-size          "7.7 MB">
    11   <!ENTITY webkitgtk-buildsize     "700 MB">
    12   <!ENTITY webkitgtk-time          "30 SBU">
     9  <!ENTITY webkitgtk-md5sum        "6da450ec7793c0a7873d8c8c2cae4eb8">
     10  <!ENTITY webkitgtk-size          "8.2 MB">
     11  <!ENTITY webkitgtk-buildsize     "800 MB">
     12  <!ENTITY webkitgtk-time          "40 SBU">
    1313]>
    1414
     
    7272    </itemizedlist>
    7373
    74     <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    75     <itemizedlist spacing="compact">
    76       <listitem>
    77         <para>
    78           Required patch:
    79           <ulink url="&patch-root;/webkit-&webkitgtk-version;-bison-1.patch"/>
    80         </para>
    81       </listitem>
    82     </itemizedlist>
    83 
    8474    <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
    8575
    8676    <bridgehead renderas="sect4">Required</bridgehead>
    8777    <para role="required">
    88       <xref linkend="geoclue"/>,
    8978      <xref linkend="gperf"/>,
     79      <xref linkend="gst10-plugins-base"/> or
    9080      <xref linkend="gst-plugins-base"/>,
    91       <xref linkend="gtk3"/> or <xref linkend="gtk2"/>,
     81      <xref linkend="gtk3"/> or
     82      <xref linkend="gtk2"/>,
    9283      <xref linkend="icu"/>,
    9384      <xref linkend="libxslt"/>,
    9485      <xref linkend="libsoup"/>,
     86      <xref linkend="mesalib"/>,
     87      <xref linkend="ruby"/>,
    9588      <xref linkend="sqlite"/> and
    9689      <xref linkend="which"/>
     
    9992    <bridgehead renderas="sect4">Recommended</bridgehead>
    10093    <para role="recommended">
     94      <xref linkend="geoclue"/> and
    10195      <xref linkend="gobject-introspection"/>
    10296    </para>
     
    118112    <title>Installation of WebKitGTK+</title>
    119113
    120     <para>
    121       If you have <application>pkg-config 0.23</application> or older installed
    122       fix a bug in the configure script that will stop it detecting
    123       <application>Gstreamer</application> correctly:
    124     </para>
    125 
    126 <screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
     114    <warning>
     115      <para>
     116        If you are building <application>WebKitGTK+</application>
     117        with <command>make</command> 3.82, make sure that you have built
     118        it with the following
     119        <ulink url="&patch-downloads;/make/make-3.82-upstream_fixes-3.patch">
     120        patch</ulink> applied or <application>WebKitGTK+</application>
     121        build will fail.
     122      </para>
     123    </warning>
    127124
    128125    <para>
     
    134131
    135132    <para>
    136       <application>WebKitGTK+</application> takes a long time to compile, so if you
    137       have a multicore CPU it can be useful to speed up the build by running
    138       make with multiple jobs.
    139     </para>
    140 
    141     <para>
    142       If you want to run make with just one core, install
    143       <application>WebKitGTK+</application> by running the following commands:
    144     </para>
    145 
    146 <screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk-version;-bison-1.patch &amp;&amp;
    147 ./configure --prefix=/usr \
    148             --libexecdir=/usr/lib/WebKit \
     133      Install <application>WebKitGTK+</application> by running the
     134      following commands:
     135    </para>
     136
     137<screen><userinput>./configure --prefix=/usr \
     138            --libexecdir=/usr/lib/WebKitGTK \
     139            --with-gstreamer=1.0 \
    149140            --enable-introspection &amp;&amp;
    150141make</userinput></screen>
    151142
    152143    <para>
    153       If you have a multicore CPU and want to run make with multiple jobs
    154       running in parallel, install <application>WebKitGTK+</application> with the
    155       following commands:
    156     </para>
    157 
    158 <screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk-version;-bison-1.patch &amp;&amp;
    159 ./configure --prefix=/usr \
    160             --libexecdir=/usr/lib/WebKit \
    161             --enable-introspection &amp;&amp;
    162 error_count=0
    163 until make -j$(getconf _NPROCESSORS_ONLN)
    164 do
    165   if (( $((error_count++)) &gt; 4 ))
    166   then
    167     echo Too Many Errors
    168     break
    169   fi
    170 done
    171 unset error_count</userinput></screen>
    172 
    173     <para>
    174144      This package does not have a working testsuite.
    175145    </para>
     
    186156
    187157    <para>
    188       <option>--enable-introspection</option>: This option enables support for
    189       <application>GObject Introspection</application> and is required for a
    190       <application>GNOME</application> Desktop. If you don't have
    191       <application>Gobject Introspection</application> installed and don't want
    192       to install <application>GNOME</application> remove this option.
    193     </para>
    194 
    195     <para>
    196       <command>error_count=0; until make ...</command>: Sadly
    197       there are race conditions in the makefiles that will cause the build to
    198       fail if you run make with multiple jobs. This simple hack works around
    199       that problem by using <command>until</command> to keep running
    200       <command>make</command> until it succeeds. The variable
    201       <envar>error_count</envar> is incremented each time an error occurs and is
    202       checked to ensure that no more than 5 errors occur. This is so that if an
    203       error occurs that is <emphasis>not</emphasis> due to a race condition then
    204       it will not keep repeating <command>make</command> forever.
    205       <command>$(getconf _NPROCESSORS_ONLN)</command> prints the number of cores
    206       your computer seems to have. If you would prefer, you can use any positive
    207       integer such as 4.
    208     </para>
    209 
    210     <para>
    211       <option>--enable-webkit2</option>: This switch enables building of
    212       <application>WebKit2</application> libraries which some applications
    213       like <application>DevHelp</application> can use and which will probably
    214       be used in future releases of <application>GNOME</application> Desktop.
    215     </para>
    216 
    217     <para>
    218       <parameter>--with-gtk=2.0</parameter>: This option forces
    219       <application>WebKitGTK+</application> to compile against
     158      <option>--enable-introspection</option>: This switch enables support for
     159      <application>Gobject Introspection</application> and is required for a
     160      <application>GNOME</application> Desktop. Remove if you don't have
     161      <application>Gobject Introspection</application> installed or you don't
     162      want to install <application>GNOME</application>.
     163    </para>
     164   
     165    <para>
     166      <parameter>--with-gstreamer=1.0</parameter>: This switch forces use of
     167      <application>GStreamer</application> 1.0 series which
     168      <application>GNOME</application> 3.6 uses. Remove if you don't want
     169      to install <application>GStreamer</application> 1.0 or you don't
     170      want to install <application>GNOME</application>.
     171    </para>
     172
     173    <para>
     174      <option>--disable-geolocation</option>: Use this option if you did not
     175      install <xref linkend="geoclue"/> or <command>configure</command> will
     176      fail.
     177    </para>
     178
     179    <para>
     180      <parameter>--with-gtk=2.0 --disable-webkit2</parameter>: These parameters
     181      force <application>WebKitGTK+</application> to compile against
    220182      <application>GTK+ 2</application>, even if
    221183      <application>GTK+ 3</application> is also installed. With
     
    246208        <seg>
    247209          libjavascriptcoregtk-1.0.so and libwebkit-1.0.so or
    248           libjavascriptcoregtk-3.0.so and libwebkit-3.0.so and
    249           optionaly libwebkit2gtk-3.0.so
     210          libjavascriptcoregtk-3.0.so, libwebkit2gtk-3.0.so and
     211          libwebkit-3.0.so
    250212        </seg>
    251213        <seg>
    252214          /usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
    253           /usr/include/webkit-3.0 and /usr/share/webkit-3.0 and
    254           optionaly /usr/lib/WebKit
     215          /usr/include/webkit-3.0, /usr/lib/WebKit and
     216          /usr/share/webkit-3.0
    255217        </seg>
    256218      </seglistitem>
     
    275237      </varlistentry>
    276238
    277       <varlistentry id="libjavascriptcoregtk-1.0">
     239      <varlistentry id="libjavascriptcoregtk-1">
    278240        <term><filename
    279241        class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
     
    283245            and <filename class="libraryfile">libwebkitgtk-1.0.so</filename>.
    284246          </para>
    285           <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
    286             <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
    287           </indexterm>
    288         </listitem>
    289       </varlistentry>
    290 
    291       <varlistentry id="libwebkitgtk-1.0">
     247          <indexterm zone="webkitgtk libjavascriptcoregtk-1">
     248            <primary sortas="c-libjavascriptcoregtk-1">libjavascriptcoregtk-1.0.so</primary>
     249          </indexterm>
     250        </listitem>
     251      </varlistentry>
     252
     253      <varlistentry id="libwebkitgtk-1">
    292254        <term><filename class="libraryfile">libwebkitgtk-1.0.so</filename></term>
    293255        <listitem>
     
    296258            <application>GTK+ 2</application>.
    297259          </para>
    298           <indexterm zone="webkitgtk libwebkitgtk-1.0">
    299             <primary sortas="c-libwebkitgtk-1.0">libwebkitgtk-1.0.so</primary>
    300           </indexterm>
    301         </listitem>
    302       </varlistentry>
    303 
    304       <varlistentry id="libjavascriptcoregtk-3.0">
     260          <indexterm zone="webkitgtk libwebkitgtk-1">
     261            <primary sortas="c-libwebkitgtk-1">libwebkitgtk-1.0.so</primary>
     262          </indexterm>
     263        </listitem>
     264      </varlistentry>
     265
     266      <varlistentry id="libjavascriptcoregtk-3">
    305267        <term><filename
    306268        class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
     
    310272            and <filename class="libraryfile">libwebkitgtk-3.0.so</filename>.
    311273          </para>
    312           <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
    313             <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
    314           </indexterm>
    315         </listitem>
    316       </varlistentry>
    317 
    318       <varlistentry id="libwebkitgtk-3.0">
     274          <indexterm zone="webkitgtk libjavascriptcoregtk-3">
     275            <primary sortas="c-libjavascriptcoregtk-3">libjavascriptcoregtk-3.0.so</primary>
     276          </indexterm>
     277        </listitem>
     278      </varlistentry>
     279
     280      <varlistentry id="libwebkitgtk-3">
    319281        <term><filename class="libraryfile">libwebkitgtk-3.0.so</filename></term>
    320282        <listitem>
     
    323285            <application>GTK+ 3</application>.
    324286          </para>
    325           <indexterm zone="webkitgtk libwebkitgtk-3.0">
    326             <primary sortas="c-libwebkitgtk-3.0">libwebkitgtk-3.0.so</primary>
    327           </indexterm>
    328         </listitem>
    329       </varlistentry>
    330 
    331       <varlistentry id="libwebkit2gtk-3.0">
     287          <indexterm zone="webkitgtk libwebkitgtk-3">
     288            <primary sortas="c-libwebkitgtk-3">libwebkitgtk-3.0.so</primary>
     289          </indexterm>
     290        </listitem>
     291      </varlistentry>
     292
     293      <varlistentry id="libwebkit2gtk-3">
    332294        <term><filename class="libraryfile">libwebkit2gtk-3.0.so</filename></term>
    333295        <listitem>
     
    335297            contains the <application>WebKit2</application> API functions.
    336298          </para>
    337           <indexterm zone="webkitgtk libwebkit2gtk-3.0">
    338             <primary sortas="c-libwebkit2gtk-3.0">libwebkit2gtk-3.0.so</primary>
     299          <indexterm zone="webkitgtk libwebkit2gtk-3">
     300            <primary sortas="c-libwebkit2gtk-3">libwebkit2gtk-3.0.so</primary>
    339301          </indexterm>
    340302        </listitem>
Note: See TracChangeset for help on using the changeset viewer.