mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/python-iptables-1.0.0-r1: revbump, add patch for new glibc
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
committed by
Patrick McLean
parent
491e7330ca
commit
139158d87c
@@ -0,0 +1,21 @@
|
||||
diff --git a/iptc/xtables.py b/iptc/xtables.py
|
||||
index cf21029..8f62164 100644
|
||||
--- a/iptc/xtables.py
|
||||
+++ b/iptc/xtables.py
|
||||
@@ -4,6 +4,7 @@ import ctypes as ct
|
||||
import os
|
||||
import sys
|
||||
import weakref
|
||||
+import pathlib
|
||||
|
||||
from . import version
|
||||
from .util import find_library, find_libc
|
||||
@@ -805,7 +806,7 @@ _lib_xtables, xtables_version = find_library(_searchlib)
|
||||
_xtables_libdir = os.getenv("XTABLES_LIBDIR")
|
||||
if _xtables_libdir is None:
|
||||
import re
|
||||
- ldconfig_path_regex = re.compile('^(/.*):$')
|
||||
+ ldconfig_path_regex = re.compile(r'^(/.*): \(.*$')
|
||||
import subprocess
|
||||
ldconfig = subprocess.Popen(
|
||||
('/sbin/ldconfig', '-N', '-v'),
|
||||
@@ -18,6 +18,10 @@ RDEPEND="net-firewall/iptables"
|
||||
# tests manipulate live iptables rules, so disable them by default
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/python-iptables-1.0.0-ldconfig-fix.patch"
|
||||
)
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
Reference in New Issue
Block a user