apparmor: rebuild for Python 3.10

This commit is contained in:
Andrew J. Hesford 2021-09-24 23:15:39 -04:00
parent fc41a607c8
commit 39b1681e05
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
distutils is deprecated in python 3.10, which means it imports but prints warnings
--- a/libraries/libapparmor/m4/ac_python_devel.m4
+++ b/libraries/libapparmor/m4/ac_python_devel.m4
@@ -69,7 +69,7 @@
# Check if you have distutils, else fail
#
AC_MSG_CHECKING([for the distutils Python package])
- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
+ ac_distutils_result=`$PYTHON -W ignore -c "import distutils" 2>&1`
if test -z "$ac_distutils_result"; then
AC_MSG_RESULT([yes])
else

View file

@ -1,7 +1,7 @@
# Template file for 'apparmor'
pkgname=apparmor
version=3.0.3
revision=1
revision=2
wrksrc="${pkgname}-v${version}"
build_wrksrc=libraries/libapparmor
build_style=gnu-configure