~alpine/users

4 2

[edge] abuild: could it reset LD_{RUN_PATH,LIBRARY_PATH}?

Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<20230420222850.MNmre%steffen@sdaoden.eu>
DKIM signature
missing
Download raw message
Hello.

I mean, strip these from the environment upon startup, so that the
diagnostic

  >>> ERROR: s-postgray*: Has /home/... in rpath
  >>> ERROR: s-postgray*: prepare_package failed
  >>> ERROR: s-postgray: rootpkg failed

would only come into play if the package itself mangles the stuff?

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
Details
Message ID
<CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire>
In-Reply-To
<20230420222850.MNmre%steffen@sdaoden.eu> (view parent)
DKIM signature
missing
Download raw message
On Fri Apr 21, 2023 at 12:28 AM CEST, Steffen Nurpmeso wrote:
> Hello.
>
> I mean, strip these from the environment upon startup, so that the
> diagnostic
>
>   >>> ERROR: s-postgray*: Has /home/... in rpath
>   >>> ERROR: s-postgray*: prepare_package failed
>   >>> ERROR: s-postgray: rootpkg failed
>
> would only come into play if the package itself mangles the stuff?

`abuild rootbld` strips the env already (in the recent release).

regular abuild doesn't clear any env vars (iirc).

>
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)
Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<20230421211437.dAfLD%steffen@sdaoden.eu>
In-Reply-To
<CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire> (view parent)
DKIM signature
missing
Download raw message
alice wrote in
 <CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire>:
 |On Fri Apr 21, 2023 at 12:28 AM CEST, Steffen Nurpmeso wrote:
 |> Hello.
 |>
 |> I mean, strip these from the environment upon startup, so that the
 |> diagnostic
 |>
 |>>>> ERROR: s-postgray*: Has /home/... in rpath
 |>>>> ERROR: s-postgray*: prepare_package failed
 |>>>> ERROR: s-postgray: rootpkg failed
 |>
 |> would only come into play if the package itself mangles the stuff?
 |
 |`abuild rootbld` strips the env already (in the recent release).
 |
 |regular abuild doesn't clear any env vars (iirc).

Thank you alice, i will use this instead next time.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<20230421213829.uWz9z%steffen@sdaoden.eu>
In-Reply-To
<20230421211437.dAfLD%steffen@sdaoden.eu> (view parent)
DKIM signature
missing
Download raw message
Steffen Nurpmeso wrote in
 <20230421211437.dAfLD%steffen@sdaoden.eu>:
 |alice wrote in
 | <CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire>:
 ||On Fri Apr 21, 2023 at 12:28 AM CEST, Steffen Nurpmeso wrote:
 ||> I mean, strip these from the environment upon startup, so that the
 ||> diagnostic
 ||>
 ||>>>> ERROR: s-postgray*: Has /home/... in rpath
 ||>>>> ERROR: s-postgray*: prepare_package failed
 ||>>>> ERROR: s-postgray: rootpkg failed
 ||>
 ||> would only come into play if the package itself mangles the stuff?
 ||
 ||`abuild rootbld` strips the env already (in the recent release).
 ||
 ||regular abuild doesn't clear any env vars (iirc).
 |
 |Thank you alice, i will use this instead next time.

Uh!  That is tough!  I better write a little script instead.
(But great it works, i first was afraid i have to be root.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
Details
Message ID
<CS2S6LGV2XPV.6PUYLLK6WE3E@sumire>
In-Reply-To
<20230421213829.uWz9z%steffen@sdaoden.eu> (view parent)
DKIM signature
missing
Download raw message
On Fri Apr 21, 2023 at 11:38 PM CEST, Steffen Nurpmeso wrote:
> Steffen Nurpmeso wrote in
>  <20230421211437.dAfLD%steffen@sdaoden.eu>:
>  |alice wrote in
>  | <CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire>:
>  ||On Fri Apr 21, 2023 at 12:28 AM CEST, Steffen Nurpmeso wrote:
>  ||> I mean, strip these from the environment upon startup, so that the
>  ||> diagnostic
>  ||>
>  ||>>>> ERROR: s-postgray*: Has /home/... in rpath
>  ||>>>> ERROR: s-postgray*: prepare_package failed
>  ||>>>> ERROR: s-postgray: rootpkg failed
>  ||>
>  ||> would only come into play if the package itself mangles the stuff?
>  ||
>  ||`abuild rootbld` strips the env already (in the recent release).
>  ||
>  ||regular abuild doesn't clear any env vars (iirc).
>  |
>  |Thank you alice, i will use this instead next time.
>
> Uh!  That is tough!  I better write a little script instead.
> (But great it works, i first was afraid i have to be root.)

in my general testing

#!/bin/sh
if [ -z "$_CLEAN" ]; then
   exec env -i \
      _CLEAN=1 \
      HOME="$HOME" \
      PATH="$PATH" \
      USER="$USER" \
      TERM="xterm" \
      ${ENV_YOU_KEEP:+ENV_YOU_KEEP="$ENV_YOU_KEEP"} \
      "$0" "$@"
fi

.... your commands here

is all you need to have a 'clean clean' environment for building most things
Reply to thread Export thread (mbox)