mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
net-firewall/ufw: strip distutils use
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
14
net-firewall/ufw/files/ufw-0.36.1-distutils.patch
Normal file
14
net-firewall/ufw/files/ufw-0.36.1-distutils.patch
Normal 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
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user