commit: b495af7b301139682ef45c19679874c1a2f97c26 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> AuthorDate: Sat Apr 26 10:40:58 2025 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sat Apr 26 20:39:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b495af7b
net-misc/exabgp: remove unused patches Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> Part-of: https://github.com/gentoo/gentoo/pull/41761 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> ...p-4.2.11-healthcheck-allow-disable-metric.patch | 22 --------- ...xabgp-4.2.21-patch-embedded-six-for-py312.patch | 52 ---------------------- 2 files changed, 74 deletions(-) diff --git a/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch b/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch deleted file mode 100644 index 768fe80a8107..000000000000 --- a/net-misc/exabgp/files/exabgp-4.2.11-healthcheck-allow-disable-metric.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/lib/exabgp/application/healthcheck.py b/lib/exabgp/application/healthcheck.py -index a4f6b8d1..805cf8af 100644 ---- a/lib/exabgp/application/healthcheck.py -+++ b/lib/exabgp/application/healthcheck.py -@@ -168,6 +168,7 @@ - g.add_argument( - "--start-ip", metavar='N', type=int, default=0, help="index of the first IP in the list of IP addresses" - ) -+ g.add_argument("--no-metric", action="store_true", default=False, help="don't send metrics when updating announcements") - g.add_argument( - "--up-metric", metavar='M', type=int, default=100, help="first IP get the metric M when the service is up" - ) -@@ -494,7 +495,8 @@ - announce = "route {0} next-hop {1}".format(str(ip), options.next_hop or "self") - - if command == "announce": -- announce = "{0} med {1}".format(announce, metric) -+ if not options.no_metric: -+ announce = "{0} med {1}".format(announce, metric) - if options.local_preference >= 0: - announce = "{0} local-preference {1}".format(announce, options.local_preference) - if options.community or options.disabled_community: diff --git a/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch b/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch deleted file mode 100644 index ccbf33021d87..000000000000 --- a/net-misc/exabgp/files/exabgp-4.2.21-patch-embedded-six-for-py312.patch +++ /dev/null @@ -1,52 +0,0 @@ -From: Vincent Bernat <[email protected]> -Date: Mon, 1 Jan 2024 09:15:39 +0100 -Subject: Patch embedded six for Python 3.12 - -Closes: #1058181 ---- - lib/exabgp/vendoring/six.py | 16 +++++++++++++++- - 1 file changed, 15 insertions(+), 1 deletion(-) - -diff --git a/lib/exabgp/vendoring/six.py b/lib/exabgp/vendoring/six.py -index 20e866a..5f8f3b0 100644 ---- a/lib/exabgp/vendoring/six.py -+++ b/lib/exabgp/vendoring/six.py -@@ -71,6 +71,11 @@ def __len__(self): - MAXSIZE = int((1 << 63) - 1) - del X - -+if PY34: -+ from importlib.util import spec_from_loader -+else: -+ spec_from_loader = None -+ - - def _add_doc(func, doc): - """Add documentation to a function.""" -@@ -182,6 +187,11 @@ def find_module(self, fullname, path=None): - return self - return None - -+ def find_spec(self, fullname, path, target=None): -+ if fullname in self.known_modules: -+ return spec_from_loader(fullname, self) -+ return None -+ - def __get_module(self, fullname): - try: - return self.known_modules[fullname] -@@ -217,9 +227,13 @@ def get_code(self, fullname): - Required, if is_package is implemented""" - self.__get_module(fullname) # eventually raises ImportError - return None -- - get_source = get_code # same as get_code - -+ def create_module(self, spec): -+ return self.load_module(spec.name) -+ -+ def exec_module(self, module): -+ pass - - _importer = _SixMetaPathImporter(__name__) -
