Fix problems with libseccomp-2.4.2+/linux-5.4+ and the shmat() syscall in systemd.

Adapt the test suite in libxcb to check-0.13.0

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22550 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Douglas R. Reno 2020-01-06 23:16:28 +00:00
parent 3386e38a14
commit b29b59601c
3 changed files with 27 additions and 8 deletions

View File

@ -66,17 +66,16 @@
</listitem>
</itemizedlist>
<!--
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/systemd-&systemd-version;-consolidated_fixes-2.patch"/>
<ulink url="&patch-root;/systemd-&systemd-version;-seccomp_and_cpuaffinity_fix-1.patch"/>
</para>
</listitem>
</itemizedlist>
-->
<bridgehead renderas="sect3">systemd Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
@ -135,12 +134,16 @@
that you do a rebuild instead.</para></warning>
-->
<!-- No longer needed -->
<!--
<para>Apply a patch to fix several bugs discovered after release:</para>
<para>Apply a patch to fix problems with libseccomp-2.4.2+ and Linux-5.4+:</para>
<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-consolidated_fixes-2.patch</userinput></screen>
-->
<screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-seccomp_and_cpuaffinity_fix-1.patch</userinput></screen>
<!-- The above is only needed on systems with Linux 5.4+ and libseccomp-2.4.2+
This fix is due to syscall changes in libseccomp+Linux 5.4+.
The affected syscall is shmat(), which isn't implemented properly on
i686, and intermittently fails on x86_64. Also, there is a problem with
CPU Affinity + CGroups on Linux-5.4+ that causes issues with the
"test-execute" test. -->
<para>Remove an unneeded group,
<systemitem class="groupname">render</systemitem>, from the default udev

View File

@ -45,6 +45,14 @@
<listitem>
<para>January 6th, 2020</para>
<itemizedlist>
<listitem>
<para>[renodr] - Adapt the testsuite in libxcb-1.13.1 to
API changes in check-0.13.0 and later.</para>
</listitem>
<listitem revision="systemd">
<para>[renodr] - Add a patch to fix syscall problems in systemd
for systems with libseccomp-2.4.2+ and Linux-5.4+.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to seahorse-3.34.1. Fixes
<ulink url="&blfs-ticket-root;12985">#12985</ulink>.</para>

View File

@ -113,6 +113,14 @@
--docdir='${datadir}'/doc/libxcb-&libxcb-version; &amp;&amp;
make</userinput></screen>
<para>
If you wish to run the tests, adapt the test suite to Check-0.13.0+
using the following commands:
</para>
<screen><userinput>sed -i "s/TFun tf/const TTest *tt/" tests/check_all.c tests/check_suites.h &amp;&amp;
sed -i "s/tcase_add_test(tc, tf);/tcase_add_test(tc, tt);/" tests/check_all.c</userinput></screen>
<para>To test the results, issue: <command>make check</command>.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>