Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Eric Sandall (a6bf56c8701fedabf2da034f08e178914eb49b83)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <ismael AT iodev.co.uk>
  • To: Eric Sandall <sandalle AT sourcemage.org>
  • Cc: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Eric Sandall (a6bf56c8701fedabf2da034f08e178914eb49b83)
  • Date: Fri, 31 May 2019 14:10:44 +0200

On 31/May/2019 05:51, Eric Sandall wrote:
<...>
> --- a/protect_special_libs
> +++ b/protect_special_libs
> @@ -14,15 +14,16 @@ if [[ -z $INSTALL_ROOT ]]; then
> local each &&
> for each in /lib{,64,32}/*; do
> if test -f "$each"; then
> - cp -a "$each" $PROTECT
> + cp -a "$each" "$PROTECT"
> fi
> done &&
> - ldconfig $PROTECT
> + export LD_LIBRARY_PATH="${PROTECT}:${LD_LIBRARY_PATH}" &&
> + ldconfig "$PROTECT"
> }
<...>

If the installation fails, this doesn't work.

I think the reason the call to ldconfig has no effect is because the
command line arguments don't have precedence over the trusted
directories, so the protected libraries don't make it to the cache.

Also, ldconfig is only available with glibc.

In order for this to work universally, another approach is needed.




Archive powered by MHonArc 2.6.24.

Top of Page