Received: from out-42.mta0.migadu.com (out-42.mta0.migadu.com [IPv6:2001:41d0:1004:224b::2a]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id EAA812235E0 for <~alpine/users@lists.alpinelinux.org>; Fri, 21 Apr 2023 22:18:34 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1682115511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1qBabft8EEwISBI9cKMcrMt1O4nCDptJSLBkzWsKVWQ=; b=IBzl4RXu96X/SFhvZP6auF7g460OUUPeQCrSXuFhQ9Iu61hgoYPm/KaA9Hikqg9m40TZKE lDD+JXJwCpmu5H1msT5ocHlDg9gfOVs7MLfhVkyBa6+tRm3VSud326joCXIqWHFb1NP2JQ LF+Iw4kdGweKQratxXoV9P2aBYMmlDY= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 22 Apr 2023 00:18:30 +0200 Message-Id: <CS2S6LGV2XPV.6PUYLLK6WE3E@sumire> Cc: <~alpine/users@lists.alpinelinux.org> Subject: Re: [edge] abuild: could it reset LD_{RUN_PATH,LIBRARY_PATH}? X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" <alice@ayaya.dev> To: "Steffen Nurpmeso" <steffen@sdaoden.eu> References: <20230420222850.MNmre%steffen@sdaoden.eu> <CS1Y2V6FNWIJ.2KKN61M3TCZ2T@sumire> <20230421211437.dAfLD%steffen@sdaoden.eu> <20230421213829.uWz9z%steffen@sdaoden.eu> In-Reply-To: <20230421213829.uWz9z%steffen@sdaoden.eu> X-Migadu-Flow: FLOW_OUT 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=3D1 \ HOME=3D"$HOME" \ PATH=3D"$PATH" \ USER=3D"$USER" \ TERM=3D"xterm" \ ${ENV_YOU_KEEP:+ENV_YOU_KEEP=3D"$ENV_YOU_KEEP"} \ "$0" "$@" fi .... your commands here is all you need to have a 'clean clean' environment for building most thing= s