All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>, buildroot@buildroot.org
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Subject: Re: [Buildroot] [PATCH 1/1] package/libapparmor: fix build with python 3.10
Date: Tue, 4 Jan 2022 17:46:35 +0100	[thread overview]
Message-ID: <f9071be2-2f67-a942-149b-5193c94afbda@mind.be> (raw)
In-Reply-To: <20220101144840.1387059-1-fontaine.fabrice@gmail.com>



On 01/01/2022 15:48, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump of python3 to version
> 3.10.1 in commit 25b1fc2898d68ddf2674b14c738045875fc5a2dc:
> 
> configure: error: cannot import Python module "distutils".
> Please check your Python installation. The error was:
> <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
> 
> Fixes:
>   - http://autobuild.buildroot.org/results//f3e400cbb5b00fbd7f0cb421c993e46b64ec5ac5
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>   ...deprecated-distutils-with-setuptools.patch | 244 ++++++++++++++++++
>   package/libapparmor/libapparmor.mk            |   2 +-
>   2 files changed, 245 insertions(+), 1 deletion(-)
>   create mode 100644 package/libapparmor/0001-replace-deprecated-distutils-with-setuptools.patch
> 
> diff --git a/package/libapparmor/0001-replace-deprecated-distutils-with-setuptools.patch b/package/libapparmor/0001-replace-deprecated-distutils-with-setuptools.patch
> new file mode 100644
> index 0000000000..5aed31d0b5
> --- /dev/null
> +++ b/package/libapparmor/0001-replace-deprecated-distutils-with-setuptools.patch
> @@ -0,0 +1,244 @@
> +From 21e5a721ab2abe26bb12b9da7accc39d4fff9804 Mon Sep 17 00:00:00 2001
> +From: Georgia Garcia <georgia.garcia@canonical.com>
> +Date: Wed, 10 Nov 2021 19:50:35 +0000
> +Subject: [PATCH] replace deprecated distutils with setuptools
> +
> +Adds python3 setuptools as a build dependency for libapparmor
> +
> +Fixes: https://gitlab.com/apparmor/apparmor/-/issues/202
> +MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/813
> +Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
> +Acked-by: Christian Boltz <apparmor@cboltz.de>
> +
> +[Retrieved (and updated to remove changes on .gitlab-ci.yml and
> +README.md) from:
> +https://gitlab.com/apparmor/apparmor/-/commit/21e5a721ab2abe26bb12b9da7accc39d4fff9804]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + .gitignore                                    |  3 ++
> + .gitlab-ci.yml                                |  2 +-
> + libraries/libapparmor/m4/ac_python_devel.m4   | 36 +++++++++----------

  Sounds like this requires AUTORECONF = YES

  ... which was already set because it wasn't removed when the version was 
bumped and the patches removed. So I updated the comment and the commit message, 
and applied to master, thanks.

  Regards,
  Arnout

[snip]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2022-01-04 16:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-01 14:48 [Buildroot] [PATCH 1/1] package/libapparmor: fix build with python 3.10 Fabrice Fontaine
2022-01-04 16:46 ` Arnout Vandecappelle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9071be2-2f67-a942-149b-5193c94afbda@mind.be \
    --to=arnout@mind.be \
    --cc=angelo.compagnucci@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.