Bug 275005 - sysutils/ansible: Update to 9.2.0
Summary: sysutils/ansible: Update to 9.2.0
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on: 270358
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-10 04:44 UTC by Cy Schubert
Modified: 2024-05-15 18:33 UTC (History)
3 users (show)

See Also:


Attachments
Update to 8.6.1 (1.15 KB, patch)
2023-11-10 04:44 UTC, Cy Schubert
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cy Schubert freebsd_committer freebsd_triage 2023-11-10 04:44:33 UTC
Created attachment 246226 [details]
Update to 8.6.1

sysutils/ansible 8.6.1 builds and installs with py39-setuptools-68.2.2 but fails to configure with py39-setuptools-63.1.0_1.
Comment 1 Cy Schubert freebsd_committer freebsd_triage 2023-11-10 06:22:08 UTC
This version also requires default python of 3.10.
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2023-11-13 08:24:37 UTC
^Triage: [tags] in issue Titles are deprecated.
^Triage: Reporter is committer, assign accordingly.
Comment 3 Cy Schubert freebsd_committer freebsd_triage 2024-01-31 04:28:55 UTC
The latest port updates, 9.0.1, 9.1.0, and 9.2.0 have been committed to a branch, locally, pending PR/270358 resolution.
Comment 4 Cy Schubert freebsd_committer freebsd_triage 2024-01-31 04:32:17 UTC
If people want I can post the latest patch. Just let me know.
Comment 5 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 12:43:54 UTC
My local ansible ports tree (using python3.10) is at sysutils/ansible 9.5.1 and sysutils/py-ansible-core 2.16.6. Waiting for python3.10 to become default so I can push the 15 pending commits.
Comment 6 Einar Bjarni Halldórsson 2024-05-15 15:01:50 UTC
https://github.com/ansible-collections/ansible.utils/pull/338 is a showstopper for me now that py-netaddr has been updated to 1.2.1.

Now I get this error if I use ansible.utils.ipaddr('private') filter:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'IPNetwork' object has no attribute 'is_private'
Comment 7 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 15:10:02 UTC
Comment on attachment 246226 [details]
Update to 8.6.1

Don't use this patch. It requires python 3.10. I only opened this ticket as a dependency on PR/270358. The patch has been obsoleted because 9.5.1 will be committed when python3.10 becomes default.
Comment 8 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 15:20:22 UTC
(In reply to Einar Bjarni Halldórsson from comment #6)
Your issue is not related to this bug.
Comment 9 Einar Bjarni Halldórsson 2024-05-15 15:39:40 UTC
(In reply to Cy Schubert from comment #8)

My issue is related to this bug, because right now the version of ansible in ports is not compatible with py-netaddr in ports. So there is pressure to get ansible updated soon.
Comment 10 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 17:59:06 UTC
(In reply to Einar Bjarni Halldórsson from comment #9)

Unfortunately pushing the commits in my ansible ports branch is impossible until PR/270358, PR/270510, and PR/272134 are resolved. PR/270510 is an exp-run to verify if the ports tree works with python3.10. As we can see python3.10 breaks a good many ports. You may wish to add yourself to the watch list for each of the listed PRs.

I have build tested sysutils/ansible with the upstream patch applied. Hopefully that provides some relief.

Can you please open a new PR for the new bug report so I can  reference it in the commit.
Comment 11 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 18:07:40 UTC
I'll push out a point fix without a PR. I'll simply reference your name and email address in the commit.
Comment 12 Cy Schubert freebsd_committer freebsd_triage 2024-05-15 18:33:14 UTC
(In reply to Cy Schubert from comment #10)

Just to let you know, the latest ansible-9.5.1-tar.gz still contains the old ansible_collections/ansible/utils/plugins/plugin_utils/base/ipaddr_utils.py. Updating to the latest sysutils/ansible will not address your problem. ansible-collections as of May 15 in this ports r9.5.1 tarball has not imported the latest ansible.utils. The only path forward is a point patch that still applies to the latest port in my ansible branch.

Rather than discuss this issue here, polluting the discussion regarding the update, please open a new PR. We can discuss there. I'll await the PR before committing the fix for you.