Fix qt5 so that all headers are installed

The patch for qt-5.15.8 creates a header file, which needs to be
known by the build machinery. In a git repository, this is done
automatically, but in a build tree coming from a tarball, the header
file is ignored.
So we add a .git directory into qtbase, which fakes a git repository,
and allows the header file to be used and installed by the build system
(it may be needed when compiling programs using Qt thread mutexes).
This commit is contained in:
Pierre Labastie 2023-01-06 11:17:43 +01:00
parent 535d7e1c1d
commit d0c6049124

View File

@ -273,10 +273,15 @@ ln -sfnv qt-&qt5-version; /opt/qt5</userinput></screen>
<screen><userinput remap="pre">patch -Np1 -i ../qt-everywhere-opensource-src-&qt5-version;-kf5-1.patch</userinput></screen>
<para>
Add a file that is not created by the patch:
The patch is supposed to be used in a git repository, because the
behavior of the <command>configure</command> command below is changed
in this case. It is enough to create a
<filename class="directory">.git</filename> directory in the
<filename class="directory">qmake</filename> directory, where the
<command>configure</command> script is run:
</para>
<screen><userinput remap="pre">echo '#include "../../src/corelib/thread/qtsan_impl.h"' &gt;qtbase/include/QtCore/qtsan_impl.h</userinput></screen>
<screen><userinput remap="pre">mkdir -pv qtbase/.git</userinput></screen>
<para>
Install <application>Qt5</application> by running the following commands: