Changeset 60caf48


Ignore:
Timestamp:
03/06/2022 08:45:02 AM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
6c122387
Parents:
b5b1af68
git-author:
Xi Ruoyao <xry111@…> (03/06/2022 08:40:37 AM)
git-committer:
Xi Ruoyao <xry111@…> (03/06/2022 08:45:02 AM)
Message:

polkit: use archive tarball and enable tests

Normally we perfer release tarballs than archives. But for polkit, we
are using meson so the generated configure script is not needed. And,
the release tarball lacks test support files and prevents us from
running tests.

For such a "security related" package, skipping test seems not good...
(That being said, we'd been busying fix CVEs not found by the test. :( )

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    rb5b1af68 r60caf48  
    4545      <para>March 6th, 2022</para>
    4646      <itemizedlist>
     47        <listitem>
     48          <para>[xry111] - Download polkit from FDO GitLab and run its
     49          test suite.</para>
     50        </listitem>
    4751        <listitem>
    4852          <para>[xry111] - Update to JS-91.6.0.  Fixes
  • postlfs/security/polkit.xml

    rb5b1af68 r60caf48  
    55  %general-entities;
    66
    7   <!ENTITY polkit-download-http "https://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
     7  <!ENTITY polkit-download-http "https://gitlab.freedesktop.org/polkit/polkit/-/archive/&polkit-version;/polkit-&polkit-version;.tar.gz">
    88  <!ENTITY polkit-download-ftp  " ">
    9   <!ENTITY polkit-md5sum        "a6efe21d021fafe4191ee30331ef801c">
    10   <!ENTITY polkit-size          "1.6 MB">
    11   <!ENTITY polkit-buildsize     "12 MB">
    12   <!ENTITY polkit-time          "0.1 SBU (Using parallelism=4)">
     9  <!ENTITY polkit-md5sum        "5687b19e9ca9a0225957b8967d8f4458">
     10  <!ENTITY polkit-size          "740 KB">
     11  <!ENTITY polkit-buildsize     "8.9 MB (with tests)">
     12  <!ENTITY polkit-time          "0.2 SBU (with tests, using parallelism=4)">
    1313]>
    1414
     
    218218
    219219meson --prefix=/usr                       \
     220      --buildtype=release                 \
    220221      -Dman=true                          \
    221222      -Dsession_tracking=libsystemd-login \
    222       --buildtype=release                 \
     223      -Dtests=true                        \
    223224      ..                                  &amp;&amp;
    224225ninja</userinput></screen>
     
    228229
    229230meson --prefix=/usr                 \
     231      --buildtype=release           \
    230232      -Dman=true                    \
    231233      -Dsession_tracking=libelogind \
    232234      -Dsystemdsystemunitdir=/tmp   \
    233       --buildtype=release           \
     235      -Dtests=true   \
    234236      ..                            &amp;&amp;
    235237ninja</userinput></screen>
    236238
    237 <!--
     239    <!--
     240      "-t3" for raising the timeout to 90s, i. e. 3x the default:
     241      https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/107
     242    -->
    238243    <para>
    239244      To test the results, first ensure that the system
    240245      <application>D-Bus</application> daemon is running.
    241       Then run <command>make check</command>.
    242     </para>
    243 -->
    244 
    245 <!-- The subprojects directory which contains a wrapper for 'mocklibc'
    246      is not shipped in the tarball like it should be. Whenever that is
    247      fixed, -Dtests=true and ninja test is the ticket. -->
    248 
    249     <para>
    250       This package does not ship with a working test suite.
     246      Then run <command>meson test -t3</command>.
    251247    </para>
    252248
Note: See TracChangeset for help on using the changeset viewer.