git: 0fa7a2834026 - main - ansible.mk: Fix ANSIBLE_RUN_DEPENDS

Mateusz Piotrowski 0mp at FreeBSD.org
Wed May 19 09:22:14 UTC 2021


The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0fa7a283402615d5113a6e55328df7497a414139

commit 0fa7a283402615d5113a6e55328df7497a414139
Author:     Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-05-19 09:16:39 +0000
Commit:     Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-05-19 09:16:39 +0000

    ansible.mk: Fix ANSIBLE_RUN_DEPENDS
    
    sysutils/ansible does not provide the Ansible program directly. It is
    provided by its dependencies (sysutils/py-ansible-core at the moment).
    
    Fix the ANSIBLE_RUN_DEPENDS so that it looks for the ansible package
    instead of the Ansible binary.
---
 Mk/Uses/ansible.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/ansible.mk b/Mk/Uses/ansible.mk
index 9547df262540..30db2dc978de 100644
--- a/Mk/Uses/ansible.mk
+++ b/Mk/Uses/ansible.mk
@@ -60,7 +60,7 @@ _USES_POST+=		python:env
 
 ANSIBLE_CMD?=		${LOCALBASE}/bin/ansible
 ANSIBLE_DOC_CMD?=	${LOCALBASE}/bin/ansible-doc
-ANSIBLE_RUN_DEPENDS?=	${ANSIBLE_CMD}:sysutils/ansible@${PY_FLAVOR}
+ANSIBLE_RUN_DEPENDS?=	${PYTHON_PKGNAMEPREFIX}ansible>0:sysutils/ansible@${PY_FLAVOR}
 
 ANSIBLE_DATADIR?=		${PREFIX}/share/${PYTHON_PKGNAMEPREFIX}ansible
 ANSIBLE_ETCDIR?=		${PREFIX}/etc/ansible


More information about the dev-commits-ports-all mailing list