Changeset 9612d4f3


Ignore:
Timestamp:
07/17/2024 10:04:10 AM (2 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, gimp3, lazarus, trunk, xry111/for-12.3, xry111/spidermonkey128
Children:
4a17a25
Parents:
3d516cf
git-author:
Xi Ruoyao <xry111@…> (07/17/2024 10:01:21 AM)
git-committer:
Xi Ruoyao <xry111@…> (07/17/2024 10:04:10 AM)
Message:

tracker-miners: Fix test failures

There are several test failures caused by various issues. Apply two
patches from the upstream to fix 2 failures indicating real function
issues. Some tests expect LC_ALL=C.UTF-8. One test expects debug, so
run the test after installation and reconfiguration with debug enabled
like tracker.

Add a space after -D by the way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gnome/platform/tracker3-miners.xml

    r3d516cf r9612d4f3  
    6767    </itemizedlist>
    6868
    69 <!--
    7069    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7170    <itemizedlist spacing="compact">
     
    7776      </listitem>
    7877    </itemizedlist>
    79 -->
    8078
    8179    <bridgehead renderas="sect3">Tracker-miners Dependencies</bridgehead>
     
    158156    </note>
    159157
    160 <!-- Applied in 3.6.2
    161     <para>
    162       First, fix some problems with the recent tightening of the seccomp
    163       sandbox:
     158    <para>
     159      First, fix one issue in the TIFF extractor and another issue in the
     160      Landlock sandbox:
    164161    </para>
    165162
    166163<screen><userinput remap="pre">patch -Np1 -i ../tracker-miners-&tracker3-miners-version;-upstream_fixes-1.patch</userinput></screen>
    167 -->
    168164
    169165    <para>
     
    178174meson setup --prefix=/usr       \
    179175            --buildtype=release \
    180             -Dman=false         \
     176            -D man=false        \
    181177            ..                  &amp;&amp;
    182178ninja</userinput></screen>
     
    185181cd    build &amp;&amp;
    186182
    187 meson setup --prefix=/usr                 \
    188             --buildtype=release           \
    189             -Dsystemd_user_services=false \
    190             -Dman=false                   \
    191             ..                            &amp;&amp;
     183meson setup --prefix=/usr                  \
     184            --buildtype=release            \
     185            -D systemd_user_services=false \
     186            -D man=false                   \
     187            ..                             &amp;&amp;
    192188ninja</userinput></screen>
    193189
    194     <para>
    195       <!-- tiff-photo-1 fails due to
    196       https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/341 -->
     190
     191    <para>
     192      Now, as the <systemitem class="username">root</systemitem> user:
     193    </para>
     194
     195    <screen role="root"><userinput>ninja install</userinput></screen>
     196
     197    <para>
    197198      To test the results, issue (adjust the individual test timeout to a
    198199      value suitable for your machine, see the note above):
    199200    </para>
    200201
    201 <screen remap="test"><userinput>dbus-run-session env TRACKER_TESTS_AWAIT_TIMEOUT=<replaceable>20</replaceable> ninja test &amp;&amp;
     202<screen remap="test"><userinput>meson configure -D debug=true &amp;&amp;
     203dbus-run-session env LC_ALL=C.UTF-8 TRACKER_TESTS_AWAIT_TIMEOUT=<replaceable>20</replaceable> \
     204                 ninja test &amp;&amp;
    202205rm -rf ~/tracker-tests</userinput></screen>
    203206
     
    208211      </para>
    209212    </note>
    210 
    211     <para>
    212       Now, as the <systemitem class="username">root</systemitem> user:
    213     </para>
    214 
    215 <screen role="root"><userinput>ninja install</userinput></screen>
    216213  </sect2>
    217214
     
    223220
    224221    <para>
    225       <parameter>-Dman=false</parameter>: This switch prevents the build process
     222      <parameter>-D man=false</parameter>: This switch prevents the build process
    226223      from generating man pages. Omit this switch if you have
    227224      <xref linkend="asciidoc" role="nodep"/> installed and wish to generate and
     
    230227
    231228    <para revision="sysv">
    232       <parameter>-Dsystemd_user_services=false</parameter>: This switch prevents
     229      <parameter>-D systemd_user_services=false</parameter>: This switch prevents
    233230      the build process from installing systemd units since they are useless
    234231      on SysV systems.
     
    236233
    237234    <para>
    238       <option>-Dseccomp=false</option>: This option disables the seccomp system
     235      <option>-D seccomp=false</option>: This option disables the seccomp system
    239236      call filter. On some architectures, such as i686 and ARM, the functions
    240237      that tracker-miners uses are not guarded properly, and tracker-miners
     
    246243
    247244    <para>
    248       <option>-Dlandlock=disabled</option>: This switch disables the
     245      <option>-D landlock=disabled</option>: This switch disables the
    249246      Landlock file access sandbox.  Use it if you don't want to build the
    250247      kernel with Landlock support.  Note that disabling Landlock might
     
    254251
    255252    <para>
    256       <option>-Dminer_rss=false</option>: Use this option if you have not
     253      <option>-D miner_rss=false</option>: Use this option if you have not
    257254      installed the recommended dependency libgrss.
    258255    </para>
    259256
    260257    <para>
    261       <option>-Dbattery_detection=none</option>: Use this option if you have
     258      <option>-D battery_detection=none</option>: Use this option if you have
    262259      not installed the recommended dependency upower.  Do not use this
    263260      option if your system has a battery (laptop battery or UPS), or
Note: See TracChangeset for help on using the changeset viewer.