[Bug 240788] [NEW PORT] sysutils/ansible-sysrc: Ansible module to set sysvars in rc.conf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 3 14:02:41 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240788

--- Comment #17 from Lewis Cook <vulcan at 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 write
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:

====> Running Q/A tests (stage-qa)
Error: '/usr/bin/python' is an invalid shebang you need USES=shebangfix for
'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 prompted
with changes to be made.

'USES_PYTHON=autoplist' I believe isn't _needed_ either in this particular 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.

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


More information about the freebsd-ports-bugs mailing list