net-firewall/ufw: strip distutils use

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-10-08 16:17:52 +01:00
parent 084062d212
commit 6c7a7f2c99
2 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
https://src.fedoraproject.org/rpms/ufw/raw/rawhide/f/ufw-0.35-distutils-setuptools.patch
--- a/setup.py
+++ b/setup.py
@@ -26,8 +26,8 @@
#
from __future__ import print_function
-from distutils.command.install import install as _install
-from distutils.core import setup
+from setuptools.command.install import install as _install
+from setuptools import setup
import errno
import os
import re

View File

@@ -20,10 +20,8 @@ IUSE="examples ipv6"
RDEPEND="net-firewall/iptables[ipv6(+)?]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/gettext
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
' python3_12)
"
PATCHES=(
@@ -35,6 +33,8 @@ PATCHES=(
"${FILESDIR}/${P}-shebang.patch"
# Fix bash completions, bug #526300
"${FILESDIR}/${PN}-0.36-bash-completion.patch"
# Strip distutils use
"${FILESDIR}/${PN}-0.36.1-distutils.patch"
)
pkg_pretend() {