diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-10-25 07:50:07 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-10-26 07:23:18 -0700 |
commit | 8f045875fb540103a7b9ddfa241d6f59f9ef75bf (patch) | |
tree | 89e51cd98f4afe13cb52bba9b3c8d7b7fbfb3146 | |
parent | e5e54135da213d32b629146be5a671336a6eb77c (diff) | |
download | meta-security-8f045875fb540103a7b9ddfa241d6f59f9ef75bf.tar.gz |
apparmor: Add a python 3.10 compatability patch
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-mac/AppArmor/apparmor_3.0.1.bb | 4 | ||||
-rw-r--r-- | recipes-mac/AppArmor/files/py3_10_fixup.patch | 35 |
2 files changed, 37 insertions, 2 deletions
diff --git a/recipes-mac/AppArmor/apparmor_3.0.1.bb b/recipes-mac/AppArmor/apparmor_3.0.1.bb index dca53a3..389e72a 100644 --- a/recipes-mac/AppArmor/apparmor_3.0.1.bb +++ b/recipes-mac/AppArmor/apparmor_3.0.1.bb | |||
@@ -16,15 +16,15 @@ DEPENDS = "bison-native apr gettext-native coreutils-native swig-native" | |||
16 | SRC_URI = " \ | 16 | SRC_URI = " \ |
17 | git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-3.0 \ | 17 | git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-3.0 \ |
18 | file://run-ptest \ | 18 | file://run-ptest \ |
19 | file://disable_perl_h_check.patch \ | ||
20 | file://crosscompile_perl_bindings.patch \ | 19 | file://crosscompile_perl_bindings.patch \ |
21 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ | 20 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ |
22 | file://0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch \ | 21 | file://0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch \ |
23 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ | 22 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ |
24 | file://0001-rc.apparmor.debian-add-missing-functions.patch \ | 23 | file://0001-rc.apparmor.debian-add-missing-functions.patch \ |
24 | file://py3_10_fixup.patch \ | ||
25 | " | 25 | " |
26 | 26 | ||
27 | SRCREV = "b0f08aa9d678197b8e3477c2fbff790f50a1de5e" | 27 | SRCREV = "b23de501807b8b5793e9654da8688b5fd3281154" |
28 | S = "${WORKDIR}/git" | 28 | S = "${WORKDIR}/git" |
29 | 29 | ||
30 | PARALLEL_MAKE = "" | 30 | PARALLEL_MAKE = "" |
diff --git a/recipes-mac/AppArmor/files/py3_10_fixup.patch b/recipes-mac/AppArmor/files/py3_10_fixup.patch new file mode 100644 index 0000000..05f8460 --- /dev/null +++ b/recipes-mac/AppArmor/files/py3_10_fixup.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | m4/ax_python_devel.m4: do not check for distutils | ||
2 | |||
3 | With py 3.10 this prints a deprecation warning which is | ||
4 | taken as an error. Upstream should rework the code to not | ||
5 | use distuils. | ||
6 | |||
7 | Upstream-Status: Inappropriate [needs a proper fix upstream] | ||
8 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
9 | |||
10 | Index: git/libraries/libapparmor/m4/ac_python_devel.m4 | ||
11 | =================================================================== | ||
12 | --- git.orig/libraries/libapparmor/m4/ac_python_devel.m4 | ||
13 | +++ git/libraries/libapparmor/m4/ac_python_devel.m4 | ||
14 | @@ -66,21 +66,6 @@ variable to configure. See ``configure - | ||
15 | fi | ||
16 | |||
17 | # | ||
18 | - # Check if you have distutils, else fail | ||
19 | - # | ||
20 | - AC_MSG_CHECKING([for the distutils Python package]) | ||
21 | - ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` | ||
22 | - if test -z "$ac_distutils_result"; then | ||
23 | - AC_MSG_RESULT([yes]) | ||
24 | - else | ||
25 | - AC_MSG_RESULT([no]) | ||
26 | - AC_MSG_ERROR([cannot import Python module "distutils". | ||
27 | -Please check your Python installation. The error was: | ||
28 | -$ac_distutils_result]) | ||
29 | - PYTHON_VERSION="" | ||
30 | - fi | ||
31 | - | ||
32 | - # | ||
33 | # Check for Python include path | ||
34 | # | ||
35 | AC_MSG_CHECKING([for Python include path]) | ||