Changeset 7623a70


Ignore:
Timestamp:
06/02/2023 11:08:19 AM (11 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
c407a61
Parents:
7bfd30d
Message:

tracker3: Always install the doc into expected location, ...

and use a more clever way for testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gnome/platform/tracker3.xml

    r7bfd30d r7623a70  
    103103    <para role="optional">
    104104      <xref linkend="asciidoc"/>,
    105       <xref linkend="gi-docgen"/>,
     105<!--  It looks like not used even if docs=true,
     106      the pre-built doc is shipped in tarball and will be installed
     107      <xref linkend="gi-docgen"/>
     108-->
    106109      <xref linkend="graphviz"/>,
    107110      <xref linkend="libsoup"/>,
     
    121124
    122125    <para>
     126      Fix the location to install the documentation into:
     127    </para>
     128
     129<screen><userinput>mv docs/reference/libtracker-sparql/doc/{Tracker-3.0,tracker-&tracker3-version;} &amp;&amp;
     130sed '/docs_name/s/Tracker-3.0/tracker-&tracker3-version;/' \
     131    -i docs/reference/libtracker-sparql/meson.build</userinput></screen>
     132
     133    <para>
    123134      Install <application>Tracker</application> by running the following
    124135      commands:
     
    128139cd    build &amp;&amp;
    129140
    130 meson setup --prefix=/usr              \
    131             --buildtype=debugoptimized \
    132             -Ddocs=false               \
    133             -Dman=false                \
     141meson setup --prefix=/usr       \
     142            --buildtype=release \
     143            -Dman=false         \
    134144            ..                  &amp;&amp;
    135145ninja</userinput></screen>
     
    139149
    140150meson setup --prefix=/usr                 \
    141             --buildtype=debugoptimized    \
    142             -Ddocs=false                  \
     151            --buildtype=release           \
    143152            -Dman=false                   \
    144153            -Dsystemd_user_services=false \
     
    147156
    148157    <para>
    149       To test the results, issue: <command>ninja test</command>. The tests
    150       should be run from a graphical session. One test,
     158      Now, as the <systemitem class="username">root</systemitem> user:
     159    </para>
     160
     161<screen role="root"><userinput>ninja install</userinput></screen>
     162
     163    <para>
     164      To test the results, issue: <command>meson configure -Ddebug=true
     165      &amp;&amp; ninja test</command>.
     166      The test suite should be run from a graphical session. One test,
    151167      <filename>tracker: fts / fts</filename>, is known to fail due to an
    152168      incompatiblity with SQLite-3.42.
    153169    </para>
    154170
    155     <para>
    156       Now, as the <systemitem class="username">root</systemitem> user:
    157     </para>
    158 
    159 <screen role="root"><userinput>ninja install</userinput></screen>
    160 
    161171  </sect2>
    162172
     
    165175    <title>Command Explanations</title>
    166176
    167     <!--
    168177    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    169178      href="../../xincludes/meson-buildtype-release.xml"/>
    170     -->
    171 
    172     <para>
    173       <parameter>--buildtype=debugoptimized</parameter>: In normal packages
    174       using the meson build system, it would be appropriate to use a Release
    175       mode. The tests require debugging information to be present, so build
    176       debugging information while still providing optimizations.
    177     </para>
    178 
    179     <para>
    180       <parameter>-Ddocs=false</parameter>: This switch prevents the
    181       build process from generating API documentation. Omit this switch if you
    182       have <xref linkend="gtk-doc" role="nodep"/> installed and wish to
    183       generate and install the API documentation.
    184     </para>
    185179
    186180    <para>
     
    195189      the build process from installing systemd user services since they are
    196190      useless on SysV systems.
     191    </para>
     192
     193    <para>
     194      <command>meson configure -Ddebug=true</command>: This command enables
     195      some debug checks necessary for the test suite.  We don't want to
     196      enable them for the installed Tracker 3 libraries and programs, so
     197      we run the test suite after installation.
    197198    </para>
    198199
Note: See TracChangeset for help on using the changeset viewer.