From 39b1681e0500b1ee99f68ce6a1110761b64f59ec Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 24 Sep 2021 23:15:39 -0400 Subject: [PATCH] apparmor: rebuild for Python 3.10 --- srcpkgs/apparmor/patches/python-distutils.patch | 13 +++++++++++++ srcpkgs/apparmor/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/apparmor/patches/python-distutils.patch 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