[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [scl.org] Idea: Software Collections Daemons Made System-wide



On Wed, Mar 22, 2017 at 1:05 AM, Honza Horak <hhorak redhat com> wrote:
> This is basically a kick-off for getting more feedback for an idea shared at
> http://www.themindiseverything.eu/2017/03/software-collections-daemons-made.html.
>
> Shortly, SCL has worked nicely for several years and people love them. But
> even the beloved ones have some issues. And what we hear from users, the
> issues with Software Collections concept currently are basically those:
>
> * we need to use scl enable, which changes $PATH and other environment
> variables, so the binaries placed in different location are visible by the
> system
> * scripts originally written for "normal" MySQL use full paths (like
> /usr/bin/mysql) which does not work when we only have the Software
> Collection installed
> * Data directory, config files and log files are on different location than
> it is common
>
> The blog post tries to summarize possible solution, which I'm looking for
> feedback now, ideally by replying to this mail..

If you change the exec line in the wrapper script to be:

    exec -a $0 `basename "$0"` "$@"

I believe this may actually also deal with the Python sys.executable
and hence setuptools and pipsi compatibility problems that I raised in
https://bugzilla.redhat.com/show_bug.cgi?id=1385471

Otherwise sys.executable will still be set to the unwrapped binary,
and any generated shebang lines would refer to that rather than the
wrapper script.

Cheers,
Nick.

-- 
Nick Coghlan
Red Hat Platform Engineering, Brisbane


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]