package/kmod: add patch fixing the build with Python 3.8
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 25 Oct 2019 09:31:36 +0000 (11:31 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 25 Oct 2019 16:40:26 +0000 (18:40 +0200)
commit95fd2b593ef7194a23a20a64dac1e21e4e650ef2
tree0582602b7b2231d7b6f94e31ee3d2504807244e0
parent7932aa8586f84f765199e82d4b5e350bcb5ffd09
package/kmod: add patch fixing the build with Python 3.8

Since the bump of python3 to 3.8, the kmod Python extensions fail to
build. There was a change in Python 3.8: they no longer want Python
extensions to be linked with libpython.

However, kmod Python extensions are built with -Wl,--no-undefined,
which checks that there isn't any unresolved symbol in the .so files
being built. This is not compatible with the new Python policy, so we
add a patch (submitted upstream) that passes -Wl,-z,undefs when
building the kmod Python extensions, to override the effect of
-Wl,--no-undefined.

Fixes:

  http://autobuild.buildroot.net/results/84455dbc892865b9748bedeecb1d3b0bdc15704d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/kmod/0002-Do-not-check-for-undefined-symbols-when-building-the.patch [new file with mode: 0644]