diff --git a/recipes-gtk/nwg-shell/azote/0001-dist-azote-avoid-usage-of-deprecated-distutils-modul.patch b/recipes-gtk/nwg-shell/azote/0001-dist-azote-avoid-usage-of-deprecated-distutils-modul.patch new file mode 100644 index 0000000..2db1455 --- /dev/null +++ b/recipes-gtk/nwg-shell/azote/0001-dist-azote-avoid-usage-of-deprecated-distutils-modul.patch @@ -0,0 +1,27 @@ +From 9522acf9af582148ab85062f3647965ee5caa778 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Sat, 15 Jan 2022 18:05:08 +0100 +Subject: [PATCH] dist/azote: avoid usage of deprecated distutils module + +The distutils module has been depecated in python 3.10. +Make use of sysconfig instead + +Signed-off-by: Markus Volk +--- + dist/azote | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dist/azote b/dist/azote +index b0bf0f0..6674ec9 100755 +--- a/dist/azote ++++ b/dist/azote +@@ -1,5 +1,5 @@ + #!/bin/sh + +-LIB=$( python3 -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())" ) ++LIB=$(python3 -Ic "from sysconfig import get_path; print(get_path('platlib'))") + cd $LIB/azote + exec /usr/bin/python3 main.py "$@" +-- +2.25.1 + diff --git a/recipes-gtk/nwg-shell/azote_git.bb b/recipes-gtk/nwg-shell/azote_git.bb index 7dcf4d3..426f66b 100644 --- a/recipes-gtk/nwg-shell/azote_git.bb +++ b/recipes-gtk/nwg-shell/azote_git.bb @@ -1,9 +1,11 @@ + SUMMARY = "Azote is a GTK+3 based frontend for swaybg." LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464" SRC_URI = " \ git://github.com/nwg-piotr/azote.git;protocol=https;branch=master \ + file://0001-dist-azote-avoid-usage-of-deprecated-distutils-modul.patch \ " RDEPENDS:${PN} = " \