archrelease: copy trunk to extra-x86_64
[arch-packages.git] / apparmor / repos / extra-x86_64 / apparmor-3.0.6-python.patch
blob1802b33856c6aeeeacedc53107be669fc6309202
1 diff --git c/libraries/libapparmor/swig/python/test/buildpath.py w/libraries/libapparmor/swig/python/test/buildpath.py
2 index 6b805c1b..13596975 100644
3 --- c/libraries/libapparmor/swig/python/test/buildpath.py
4 +++ w/libraries/libapparmor/swig/python/test/buildpath.py
5 @@ -3,7 +3,7 @@
6 import sys
7 import sysconfig
8 import setuptools
9 -if tuple(map(int,setuptools.__version__.split("."))) >= (61, 2):
10 +if tuple(map(int,setuptools.__version__.split("."))) >= (62, 0):
11 identifier = sys.implementation.cache_tag
12 else:
13 identifier = "%d.%d" % sys.version_info[:2]
14 diff --git c/profiles/Makefile w/profiles/Makefile
15 index 0b7f2655..19d39a79 100644
16 --- c/profiles/Makefile
17 +++ w/profiles/Makefile
18 @@ -41,7 +41,7 @@ ifdef USE_SYSTEM
19 LOGPROF?=aa-logprof
20 else
21 # PYTHON_DIST_BUILD_PATH based on libapparmor/swig/python/test/Makefile.am
22 - PYTHON_DIST_BUILD_PATH = ../libraries/libapparmor/swig/python/build/$$($(PYTHON) -c "import sysconfig; print(\"lib.%s-%s\" %(sysconfig.get_platform(), sysconfig.get_python_version()))")
23 + PYTHON_DIST_BUILD_PATH = ../libraries/libapparmor/swig/python/build/$$($(PYTHON) ../libraries/libapparmor/swig/python/test/buildpath.py)
24 LIBAPPARMOR_PATH=../libraries/libapparmor/src/.libs/
25 LD_LIBRARY_PATH=$(LIBAPPARMOR_PATH):$(PYTHON_DIST_BUILD_PATH)
26 PYTHONPATH=../utils/:$(PYTHON_DIST_BUILD_PATH)