summaryrefslogtreecommitdiff
path: root/dev-python/python-iptables
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-10 06:49:55 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-10 06:49:55 +0000
commitd8e7564fabea8929cf5b9232c82583230283f971 (patch)
tree94a0f2cd720eb4abdab246c2e208917751b2f421 /dev-python/python-iptables
parent69d9ed571bca54c1370a6ab8cf5cf0c0074c785d (diff)
downloadbaldeagleos-repo-d8e7564fabea8929cf5b9232c82583230283f971.tar.gz
baldeagleos-repo-d8e7564fabea8929cf5b9232c82583230283f971.tar.xz
baldeagleos-repo-d8e7564fabea8929cf5b9232c82583230283f971.zip
Updating liguros repo
Diffstat (limited to 'dev-python/python-iptables')
-rw-r--r--dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch21
-rw-r--r--dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild (renamed from dev-python/python-iptables/python-iptables-1.0.0.ebuild)4
2 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch b/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch
new file mode 100644
index 000000000000..14fe9eae38da
--- /dev/null
+++ b/dev-python/python-iptables/files/python-iptables-1.0.0-ldconfig-fix.patch
@@ -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'),
diff --git a/dev-python/python-iptables/python-iptables-1.0.0.ebuild b/dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild
index 07911aabf607..b6c20c1fedc9 100644
--- a/dev-python/python-iptables/python-iptables-1.0.0.ebuild
+++ b/dev-python/python-iptables/python-iptables-1.0.0-r1.ebuild
@@ -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