diff --git a/meta-networking/recipes-connectivity/ufw/ufw/0006-Change-ufw-to-use-Python-3.patch b/meta-networking/recipes-connectivity/ufw/ufw/0006-Change-ufw-to-use-Python-3.patch new file mode 100644 index 00000000000..7fd60713d09 --- /dev/null +++ b/meta-networking/recipes-connectivity/ufw/ufw/0006-Change-ufw-to-use-Python-3.patch @@ -0,0 +1,22 @@ +From cc07a44f717bb7bdd71c07a7ad84caf6d8ed5c8c Mon Sep 17 00:00:00 2001 +From: Garrett Brown +Date: Tue, 2 Apr 2024 14:12:46 -0700 +Subject: [PATCH] Change ufw to use Python 3 + +--- + src/ufw | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ufw b/src/ufw +index c9e80e9..6ae28fa 100755 +--- a/src/ufw ++++ b/src/ufw +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/env python3 + # + # ufw: front-end for Linux firewalling (cli) + # +-- +2.34.1 + diff --git a/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb b/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb index dd319d1f9f8..493f25b9807 100644 --- a/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb +++ b/meta-networking/recipes-connectivity/ufw/ufw_0.33.bb @@ -16,6 +16,7 @@ SRC_URI = " \ file://0003-fix-typeerror-on-error.patch \ file://0004-lp1039729.patch \ file://0005-lp1191197.patch \ + file://0006-Change-ufw-to-use-Python-3.patch \ " UPSTREAM_CHECK_URI = "https://launchpad.net/ufw" @@ -23,7 +24,7 @@ UPSTREAM_CHECK_URI = "https://launchpad.net/ufw" SRC_URI[md5sum] = "3747b453d76709e5a99da209fc0bb5f5" SRC_URI[sha256sum] = "5f85a8084ad3539b547bec097286948233188c971f498890316dec170bdd1da8" -inherit setuptools distro_features_check +inherit setuptools3 distro_features_check RDEPENDS_${PN} = " \ iptables \