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

Bas van der Vlies <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Is see this: That is danger with --enable-fhs

```
       "$(sys.bindir)/python" -> { "CFE-3512" } 
 

         delete => u_tidy, 
 

         if => islink( "$(sys.bindir)/python" ), 
 

         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");

On 03/02/2023 16:43, [email protected] wrote:
> OTOH, a possible solution IMO would probably include reverting 
> https://github.com/cfengine/masterfiles/commit/d37c6d1929913d8cb9b269ce02ec823ade29b440 which isn't really necessary anymore since https://github.com/cfengine/masterfiles/commit/a864d5cced81b37cf0f0ed9e61d392bd6ed96194 right?
> 
> [email protected] schrieb am Freitag, 3. Februar 2023 um 16:37:30 UTC+1:
> 
>     Hi everyone,
> 
>     we use the native Debian packages which are built with the
>     --enable-fhs build option.
>     This basically leads to sys.bindir being /usr/bin.
> 
>     Now in the process of updating our MPF from very old to current, I
>     did run cf-agent -f ./update.cf <http://update.cf> and came across
>     this problem:
>     The policy in cfe_internal_update_policy_python_symlink however
>     tries to find a valid python symlink target in all of PATH *except*
>     for sys.bindir and therefore doesn't find anything and falls back to
>     linking to /usr/libexec/platform-python.
>     Now to add insult to injury, the policy finally wants to clean up by
>     removing a stray "python" symlink but with sys.bindir being the
>     system /usr/bin, it therefore removes /usr/bin/python which isn't
>     very nice. ;)
> 
>     Does this problem seem valid? I suppose I can't
> 
>     Best regards,
>     Moritz
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/help-cfengine/22b65f54-05f2-4b74-a70b-69e379e04c96n%40googlegroups.com <https://groups.google.com/d/msgid/help-cfengine/22b65f54-05f2-4b74-a70b-69e379e04c96n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
--
Bas van der Vlies
| High Performance Computing & Visualization | SURF| Science Park 140 | 
1098 XG  Amsterdam
| T +31 (0) 20 800 1300  | [email protected] | www.surf.nl |

-- 
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/604f0bff-7353-ba7b-3eac-b450dde10dc8%40surf.nl.
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.