Re: Possible side effects of --enable-fhs and cfe_internal_update_policy_python_symlink

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
"[email protected]" <[email protected]> writes:


> Does this problem seem valid?

MM, yeah, that's a valid issue.
<https://tracker.mender.io/browse/CFE-4146>

Seems to me like it would make sense to scope the cleanup of the python
symlink to more tightly target the expected context where `$(sys.bindir)
= /var/cfengine/bin'.

Perhaps something like:

,----
| "$(sys.bindir)/python" -> { "CFE-3512", "CFE-4146" }
|   delete => u_tidy,
|   if => and( islink( "$(sys.bindir)/python" ),
|              strcmp( "$(sys.bindir)", "/var/cfengine/bin")),
|   comment => concat( "We don't want to leave a python that is potentially in $PATH ",
|                      "after having re-named our python symlink that is used for various ",
|                      "modules. Additionally we want to be cautious that we don't delete ",
|                      "system python symlinks in the event the binary was built for FHS.");
`----

<https://github.com/cfengine/masterfiles/pull/2591>

Please comment on the ticket and or the pull request as to how that
works out for you.

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87v8kiln4k.fsf%40northern.tech.



--
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87v8kiln4k.fsf%40northern.tech.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.