mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
fix symlinks for ansible when non-default version is installed
The issue is that before stage, other binaries are links to ansible: bin/ansible-vault -> bin/ansible bin/ansible-playbook -> bin/ansible During stage, these get renamed with a suffix, like 3.6, but the target of the symlink doesn't change: bin/ansible-vault-3.6 -> bin/ansible bin/ansible-playbook-3.6 -> bin/ansible This either creates broken links if the package for the default Python version is not installed or it creates links to the wrong binary if it is. Thank you Andreas Sommer for the fix! PR: 229960 Submitted by: Andreas Sommer
This commit is contained in:
parent
ec1d2d5194
commit
d7fb0db689
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475222
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= ansible
|
||||
PORTVERSION?= 2.6.1
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= sysutils python
|
||||
MASTER_SITES= http://releases.ansible.com/ansible/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -69,6 +69,10 @@ post-install-EXAMPLES-on:
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/ansible.cfg ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/hosts ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
post-stage:
|
||||
${FIND} ${STAGEDIR}${PREFIX}/bin -type l -name ansible-\* -lname ansible \
|
||||
-execdir ${RLN} ansible-${PYTHON_VER} {} \;
|
||||
|
||||
TEST_WRKSRC=${WRKSRC}/test
|
||||
|
||||
do-test:
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
PKGNAMESUFFIX= 1
|
||||
PORTVERSION= 1.9.6
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
|
||||
CONFLICTS= ansible-* ansible23-* ansible24-* ansible25-*
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTVERSION= 2.3.3.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
PKGNAMESUFFIX= 23
|
||||
|
||||
CONFLICTS= ansible-* ansible1-* ansible24-* ansible25-*
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTVERSION= 2.4.4.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
PKGNAMESUFFIX= 24
|
||||
|
||||
CONFLICTS= ansible-* ansible1-* ansible23-* ansible25-*
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTVERSION= 2.5.6
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= 25
|
||||
|
||||
CONFLICTS= ansible-* ansible1-* ansible23-* ansible24-*
|
||||
|
Loading…
Reference in New Issue
Block a user