diff --git a/srcpkgs/apparmor/patches/python-distutils.patch b/srcpkgs/apparmor/patches/python-distutils.patch new file mode 100644 index 0000000000..9c22c7f116 --- /dev/null +++ b/srcpkgs/apparmor/patches/python-distutils.patch @@ -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 diff --git a/srcpkgs/apparmor/template b/srcpkgs/apparmor/template index 2a9e373447..64140c0dbc 100644 --- a/srcpkgs/apparmor/template +++ b/srcpkgs/apparmor/template @@ -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