From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cOFgG9fV5mGdWwEAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 15:59:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2JviF9fV5mG9+gAAauVa8A (envelope-from ) for ; Tue, 18 Jan 2022 15:59:35 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 203FC3A11C for ; Tue, 18 Jan 2022 15:59:35 +0100 (CET) Received: from localhost ([::1]:32938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9pxN-0003YY-TS for larch@yhetil.org; Tue, 18 Jan 2022 09:59:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9p2g-0004ky-3K for guix-devel@gnu.org; Tue, 18 Jan 2022 09:00:58 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:33167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9p2d-0001w0-H8 for guix-devel@gnu.org; Tue, 18 Jan 2022 09:00:57 -0500 X-IronPort-AV: E=Sophos;i="5.88,297,1635199200"; d="scan'208";a="16592765" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2022 15:00:52 +0100 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Tom Scogland Subject: Re: Alternative solution to stat storm problem References: <878rvp53eg.fsf@gnu.org> <77415614-71BF-4F54-BBE5-EAFAB10DC31D@llnl.gov> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 =?utf-8?Q?Niv=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 18 Jan 2022 15:00:51 +0100 In-Reply-To: <77415614-71BF-4F54-BBE5-EAFAB10DC31D@llnl.gov> (Tom Scogland's message of "Mon, 10 Jan 2022 10:13:03 -0800") Message-ID: <87fspli1nw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Farid Zakaria , guix-devel@gnu.org, Carlos Maltzahn Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642517975; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jyxga5WsQ0FDkcUU88MP0bq5cbGFc1nyeZT8N+LEgnA=; b=X1J22zNTtXSjOvk1TNOt9Zz7t3ad1Vv3ccQnUsJF/D8Swf6gE6rJq4haVv2G3uN7ZOojUb h+HrHe1isM8NNbrQUjDiMjGP7gHHVQ9kAWeFxpGfYo3VAgflWHkpGnVNtlCOXqeeJqFBWb UaoWQXt1bumB1ekAkyvxFxqQ7ue1qIjwC+Lv6Dt5ONVbJsFkgpuzOT//70oGYgWwEnadGI TrDZT2Np4gs4ZMxxYD53wQbPsz4LUf4ePqdVEycnR+bhcRXsmrmhNn5oyRTtrTuNXdW7G7 Rwzmfs45+ZJ4Dv2Qt8cLw0I3M7xuPC2JRqg5EUTqtR+sZ81EaHuh6Q6A2zfMNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642517975; a=rsa-sha256; cv=none; b=S2+gfHmMl2iZl58SFeSqa/TBi8KszwWiwnGk/wUP9I6Hc+gERnz90f8xsBSjErv+zqRa7R zMWfgT0xKHy/qKF18KtXtYqjKrSKild78JipDthS/uM1ZYTgBbdlvXDQG6LGapNG+KlFBU od9hHaFZEIhtKszvyPkKkTqw52p4aSa7z3h11zQy3bT3EQTnywtrhsOC/V6F2clbLDYh1d 6qYd6Yv2Jpyvvv7qXHDZ5Ap3JtvAmigBPxUb9xBffX+sLtcuJ1aqPARfGU1eMzk4kSSAem 17ed9+SyPdnfl10M01ocLsC7YApKE+YeJ09v7DE2kpjo65pJzZnUQd0pMQmuAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 203FC3A11C X-Spam-Score: -3.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: OnvRkUXXZnhn Hi, Tom Scogland skribis: > You=E2=80=99re right, the LD_LIBRARY_PATH will not change the loading ord= er, > but using LD_PRELOAD will by the same mechanism we=E2=80=99re using, > pre-filling the cache with a library at the same soname. As part of > other explorations we=E2=80=99re doing around tweaking or wrapping the lo= ader, > it may be possible to get semantics like LD_LIBRARY_PATH other ways, > but at the moment the goal is to make a program that will correctly > load all the dependencies it would have loaded were it run in the same > environment it was built in, despite LD_LIBRARY_PATH or RUNPATH in > dependencies or similar. Making a little tool that would override the > same way LD_LIBRARY_PATH would have would be relatively > straightforward though, would that be worth exploring do you think? Sure, why not. My approach was: take the loader and its mechanisms as they exist, and make the minimal changes needed to adapt it to the one-directory-per-package layout, when they currently assume FHS. The approach you describe is more about keeping the loader unchanged and working around its FHS assumptions =E2=80=9Cfrom the outside=E2=80=9D. In = that spirit, a separate mechanism for LD_LIBRARY_PATH-kind of user overrides might make sense. Thanks, Ludo=E2=80=99.