diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-02-26 06:45:11 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-03-11 21:07:52 -0800 |
commit | 0272f7ff020d5878c0f52b5c8a1b17d1b6a3a37a (patch) | |
tree | 2fb6724bfe6313106d26fc028f64ba5f02c1ad91 | |
parent | 75073a56171bf87816cc19af8e88d2756c464021 (diff) | |
download | meta-security-0272f7ff020d5878c0f52b5c8a1b17d1b6a3a37a.tar.gz |
apparmor: update to 3.0.4
drop to patches no longer needed
use setuptools
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-mac/AppArmor/apparmor_3.0.4.bb (renamed from recipes-mac/AppArmor/apparmor_3.0.1.bb) | 6 | ||||
-rw-r--r-- | recipes-mac/AppArmor/files/0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch | 91 | ||||
-rw-r--r-- | recipes-mac/AppArmor/files/py3_10_fixup.patch | 35 |
3 files changed, 2 insertions, 130 deletions
diff --git a/recipes-mac/AppArmor/apparmor_3.0.1.bb b/recipes-mac/AppArmor/apparmor_3.0.4.bb index 818be15..8ad3c76 100644 --- a/recipes-mac/AppArmor/apparmor_3.0.1.bb +++ b/recipes-mac/AppArmor/apparmor_3.0.4.bb | |||
@@ -18,20 +18,18 @@ SRC_URI = " \ | |||
18 | file://run-ptest \ | 18 | file://run-ptest \ |
19 | file://crosscompile_perl_bindings.patch \ | 19 | file://crosscompile_perl_bindings.patch \ |
20 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ | 20 | file://0001-Makefile.am-suppress-perllocal.pod.patch \ |
21 | file://0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch \ | ||
22 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ | 21 | file://0001-Makefile-fix-hardcoded-installation-directories.patch \ |
23 | file://0001-rc.apparmor.debian-add-missing-functions.patch \ | 22 | file://0001-rc.apparmor.debian-add-missing-functions.patch \ |
24 | file://py3_10_fixup.patch \ | ||
25 | " | 23 | " |
26 | 24 | ||
27 | SRCREV = "b23de501807b8b5793e9654da8688b5fd3281154" | 25 | SRCREV = "9799fbde997820bb12a49e292356f7a6ce12e972" |
28 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
29 | 27 | ||
30 | PARALLEL_MAKE = "" | 28 | PARALLEL_MAKE = "" |
31 | 29 | ||
32 | COMPATIBLE_MACHINE:mips64 = "(!.*mips64).*" | 30 | COMPATIBLE_MACHINE:mips64 = "(!.*mips64).*" |
33 | 31 | ||
34 | inherit pkgconfig autotools-brokensep update-rc.d python3native python3targetconfig perlnative cpan systemd features_check bash-completion | 32 | inherit pkgconfig autotools-brokensep update-rc.d python3native python3targetconfig perlnative cpan systemd features_check bash-completion setuptools3 |
35 | 33 | ||
36 | REQUIRED_DISTRO_FEATURES = "apparmor" | 34 | REQUIRED_DISTRO_FEATURES = "apparmor" |
37 | 35 | ||
diff --git a/recipes-mac/AppArmor/files/0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch b/recipes-mac/AppArmor/files/0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch deleted file mode 100644 index e7abd60..0000000 --- a/recipes-mac/AppArmor/files/0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch +++ /dev/null | |||
@@ -1,91 +0,0 @@ | |||
1 | From 5ed21abbef4d4c2983e70bd2868fb817150e883e Mon Sep 17 00:00:00 2001 | ||
2 | From: Armin Kuster <akuster808@gmail.com> | ||
3 | Date: Sat, 3 Oct 2020 11:26:46 -0700 | ||
4 | Subject: [PATCH] Revert "profiles: Update 'make check' to select tools based | ||
5 | on USE_SYSTEM" | ||
6 | |||
7 | This reverts commit 6016f931ebf7b61e1358f19453ef262d9d184a4e. | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE specific] | ||
10 | These changes cause during packaging with perms changing. | ||
11 | |||
12 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
13 | |||
14 | --- | ||
15 | profiles/Makefile | 50 ++++++++++------------------------------------- | ||
16 | 1 file changed, 10 insertions(+), 40 deletions(-) | ||
17 | |||
18 | diff --git a/profiles/Makefile b/profiles/Makefile | ||
19 | index ba47fc16..5384cb05 100644 | ||
20 | --- a/profiles/Makefile | ||
21 | +++ b/profiles/Makefile | ||
22 | @@ -35,49 +35,9 @@ EXTRAS_SOURCE=./apparmor/profiles/extras/ | ||
23 | SUBDIRS=$(shell find ${PROFILES_SOURCE} -type d -print) | ||
24 | TOPLEVEL_PROFILES=$(filter-out ${SUBDIRS}, $(wildcard ${PROFILES_SOURCE}/*)) | ||
25 | |||
26 | -ifdef USE_SYSTEM | ||
27 | - PYTHONPATH= | ||
28 | - PARSER?=apparmor_parser | ||
29 | - LOGPROF?=aa-logprof | ||
30 | -else | ||
31 | - # PYTHON_DIST_BUILD_PATH based on libapparmor/swig/python/test/Makefile.am | ||
32 | - PYTHON_DIST_BUILD_PATH = ../libraries/libapparmor/swig/python/build/$$($(PYTHON) -c "import distutils.util; import platform; print(\"lib.%s-%s\" %(distutils.util.get_platform(), platform.python_version()[:3]))") | ||
33 | - LIBAPPARMOR_PATH=../libraries/libapparmor/src/.libs/ | ||
34 | - LD_LIBRARY_PATH=$(LIBAPPARMOR_PATH):$(PYTHON_DIST_BUILD_PATH) | ||
35 | - PYTHONPATH=../utils/:$(PYTHON_DIST_BUILD_PATH) | ||
36 | - PARSER?=../parser/apparmor_parser | ||
37 | - # use ../utils logprof | ||
38 | - LOGPROF?=LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) PYTHONPATH=$(PYTHONPATH) $(PYTHON) ../utils/aa-logprof | ||
39 | -endif | ||
40 | - | ||
41 | # $(PWD) is wrong when using "make -C profiles" - explicitely set it here to get the right value | ||
42 | PWD=$(shell pwd) | ||
43 | |||
44 | -.PHONY: test-dependencies | ||
45 | -test-dependencies: __parser __libapparmor | ||
46 | - | ||
47 | - | ||
48 | -.PHONY: __parser __libapparmor | ||
49 | -__parser: | ||
50 | -ifndef USE_SYSTEM | ||
51 | - @if [ ! -f $(PARSER) ]; then \ | ||
52 | - echo "error: $(PARSER) is missing. Pick one of these possible solutions:" 1>&2; \ | ||
53 | - echo " 1) Test using the in-tree parser by building it first and then trying again. See the top-level README for help." 1>&2; \ | ||
54 | - echo " 2) Test using the system parser by adding USE_SYSTEM=1 to your make command." 1>&2; \ | ||
55 | - exit 1; \ | ||
56 | - fi | ||
57 | -endif | ||
58 | - | ||
59 | -__libapparmor: | ||
60 | -ifndef USE_SYSTEM | ||
61 | - @if [ ! -f $(LIBAPPARMOR_PATH)libapparmor.so ]; then \ | ||
62 | - echo "error: $(LIBAPPARMOR_PATH)libapparmor.so is missing. Pick one of these possible solutions:" 1>&2; \ | ||
63 | - echo " 1) Build against the in-tree libapparmor by building it first and then trying again. See the top-level README for help." 1>&2; \ | ||
64 | - echo " 2) Build against the system libapparmor by adding USE_SYSTEM=1 to your make command." 1>&2; \ | ||
65 | - exit 1; \ | ||
66 | - fi | ||
67 | -endif | ||
68 | - | ||
69 | local: | ||
70 | for profile in ${TOPLEVEL_PROFILES}; do \ | ||
71 | fn=$$(basename $$profile); \ | ||
72 | @@ -109,6 +69,16 @@ else | ||
73 | Q= | ||
74 | endif | ||
75 | |||
76 | +ifndef PARSER | ||
77 | +# use system parser | ||
78 | +PARSER=../parser/apparmor_parser | ||
79 | +endif | ||
80 | + | ||
81 | +ifndef LOGPROF | ||
82 | +# use ../utils logprof | ||
83 | +LOGPROF=PYTHONPATH=../utils $(PYTHON) ../utils/aa-logprof | ||
84 | +endif | ||
85 | + | ||
86 | .PHONY: docs | ||
87 | # docs: should we have some here? | ||
88 | docs: | ||
89 | -- | ||
90 | 2.17.1 | ||
91 | |||
diff --git a/recipes-mac/AppArmor/files/py3_10_fixup.patch b/recipes-mac/AppArmor/files/py3_10_fixup.patch deleted file mode 100644 index 05f8460..0000000 --- a/recipes-mac/AppArmor/files/py3_10_fixup.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
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]) | ||