Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Nov 2019 14:02:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240788] [NEW PORT] sysutils/ansible-sysrc: Ansible module to set sysvars in rc.conf
Message-ID:  <bug-240788-7788-FvR1l0ZiMQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240788-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240788-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240788

--- Comment #17 from Lewis Cook <vulcan@wired.sh> ---
(In reply to Raphael Kubo da Costa from comment #16)

Thanks for your report.

That's odd. I don't think the problem stems from the port itself, but rather
the value of 'DEFAULT_LOCAL_TMP' as it doesn't seem to have permission to w=
rite
to the directory, referring to the error below:

Unable to create local directories(/nonexistent/.ansible/tmp): [Errno 13]
Permission denied: b'/nonexistent'.

I'm unable to reproduce this error within Poudriere or on my local machine =
too.
When running stage-qa I was prompted to add the shebang fix:

=3D=3D=3D=3D> Running Q/A tests (stage-qa)
Error: '/usr/bin/python' is an invalid shebang you need USES=3Dshebangfix f=
or
'share/py36-ansible/plugins/modules/sysrc'.

Which I have now reflected in the Makefile, now it doesn't use a hard-coded
path to Python in the sysrc Ansible module, instead patched with the Python
version used to build the port. Upon making this change I no longer am prom=
pted
with changes to be made.

'USES_PYTHON=3Dautoplist' I believe isn't _needed_ either in this particula=
r case
as PLIST_FILES will resolve the 'sysrc' module. Which is more than likely
causing the stage-qa error.

>From what I've extrapolated from the errors posted it's more of a permission
issue and the inability to write to the value of 'DEFAULT_LOCAL_TMP' in the
Ansible configuration. Cheers.

* On another note, replaced ${EGREP} with ${GREP} as extended regex isn't
necessary. Also have formatted the Makefile with portfmt.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240788-7788-FvR1l0ZiMQ>