Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rotA1-003vUH-8C for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 22:51:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rot9z-008klh-M2 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 22:51:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rot9z-008klZ-E7 for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 22:51:19 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rot9s-006TtR-UB for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 22:51:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=S0aH2u41zkHb7fO7Aee9NcSwehyWcwpBpqtjhlelUmE=; b=f+WLb lPzhangTEb/sz3fdthyLaFkIaCWL/4fqHe1upPNGmlsM04FjxdWTJcYqRpEMjo9bpfOFe5zF7DM3Y pauDH5Fl3BDLNxiuiQLYJSS3imrVTYurRHdIPlEMxmUO61vP0h2aArH1heQdm45xKXhld8iEeXPfO h6lwHPaPOthFxjJXueUclZ5QOOMIY+kWjiHpVCL4IcY+GJxFJSgtmjqvpvR9XFwv24nCZs5wx11Xz zK55Yb8E8YKGw2WOYp9X4Ay467e+lmaz5/q+LJQGqoM7Tcu5Aa/GGPvF7ixYYwrV+TzGuwMJQFecl BgWLxe1mWQF9xFHHDRs9n7OLJ0VxA==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1rot9p-000kSk-0Q; Mon, 25 Mar 2024 18:51:09 -0400 Date: Mon, 25 Mar 2024 18:51:09 -0400 From: Bruce Momjian To: Peter Eisentraut Cc: walther@technowledgy.de, Thomas Munro , Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Tom Lane , Robert Haas Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded Message-ID: References: <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de> <443430b4-0c10-49f3-8c8a-e5e76602f309@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <443430b4-0c10-49f3-8c8a-e5e76602f309@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Mar 25, 2024 at 11:46:09PM +0100, Peter Eisentraut wrote: > On 22.03.24 20:44, Bruce Momjian wrote: > > + * linking (dlopen) might fail. Here, we truncate the update > > + * of the process title when either of two important dynamic > > + * linking environment variables are set. Musl does not > > + * define any compiler symbols, so we have to do this for > > + * any Linux libc we don't know is safe. > > + */ > > + if (strstr(environ[i], "LD_LIBRARY_PATH=") == environ[i] || > > + strstr(environ[i], "LD_PRELOAD=") == environ[i]) > > What determines which variables require this treatment? Thomas Munro came up with that part of the patch. I just combined his patch with the macro test. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.