Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2024 22:08:59 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 5be809dfd0b2 - 2024Q2 - sysutils/ansible: Chase 58df5a82adc40a6959e9b22c, net/py-netaddr update
Message-ID:  <202405152208.44FM8xXe084694@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q2 has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5be809dfd0b2469a26aa43e91e43ae4590d988f9

commit 5be809dfd0b2469a26aa43e91e43ae4590d988f9
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-05-15 18:00:36 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-05-15 22:08:48 +0000

    sysutils/ansible: Chase 58df5a82adc40a6959e9b22c, net/py-netaddr update
    
    net/py-netaddr 1.2.1 deprecated and removed the is_private method.
    This breaks ansible-collections which is bundled this port's tarball.
    The upstream patch uses the is_global methhod instead.
    
    Reported by:    Einar Bjarni Halldorsson <einar@isnic.is>
    Obtained from:  https://github.com/ansible-collections/ansible.utils/pull/338
    
    (cherry picked from commit 698ed6d9b68169e3a5549fe2abf1a13bad5a653b)
---
 sysutils/ansible/Makefile                            |  1 +
 ..._utils_plugins_plugin__utils_base_ipaddr_utils.py | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/sysutils/ansible/Makefile b/sysutils/ansible/Makefile
index d8c4c8e2bcac..e0d5c757c25c 100644
--- a/sysutils/ansible/Makefile
+++ b/sysutils/ansible/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ansible
 DISTVERSION=	8.5.0
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/sysutils/ansible/files/patch-ansible__collections_ansible_utils_plugins_plugin__utils_base_ipaddr_utils.py b/sysutils/ansible/files/patch-ansible__collections_ansible_utils_plugins_plugin__utils_base_ipaddr_utils.py
new file mode 100644
index 000000000000..e89669b4830c
--- /dev/null
+++ b/sysutils/ansible/files/patch-ansible__collections_ansible_utils_plugins_plugin__utils_base_ipaddr_utils.py
@@ -0,0 +1,20 @@
+--- ansible_collections/ansible/utils/plugins/plugin_utils/base/ipaddr_utils.py.orig	2023-09-07 02:17:47.000000000 -0700
++++ ansible_collections/ansible/utils/plugins/plugin_utils/base/ipaddr_utils.py	2024-05-15 08:23:34.190190000 -0700
+@@ -289,7 +289,7 @@
+ 
+ 
+ def _private_query(v, value):
+-    if v.is_private():
++    if not v.ip.is_global():
+         return value
+ 
+ 
+@@ -298,7 +298,7 @@
+     if all(
+         [
+             v_ip.is_unicast(),
+-            not v_ip.is_private(),
++            v_ip.is_global(),
+             not v_ip.is_loopback(),
+             not v_ip.is_netmask(),
+             not v_ip.is_hostmask(),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405152208.44FM8xXe084694>