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 1rnP37-00D614-7q for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Mar 2024 20:30:05 +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 1rnP35-00G2bJ-JG for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Mar 2024 20:30:04 +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 1rnP35-00G2bA-Ak for pgsql-bugs@lists.postgresql.org; Thu, 21 Mar 2024 20:30:03 +0000 Received: from dd25110.kasserver.com ([85.13.146.49]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnP33-005muY-Fq for pgsql-bugs@lists.postgresql.org; Thu, 21 Mar 2024 20:30:03 +0000 Received: from [192.168.0.101] (ip-037-201-153-175.um10.pools.vodafone-ip.de [37.201.153.175]) by dd25110.kasserver.com (Postfix) with ESMTPSA id D3FE5E1A0159; Thu, 21 Mar 2024 21:30:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technowledgy.de; s=kas202308201259; t=1711053001; bh=CHuzLbMsSGFJHLWzMtsK1a0yycHVNZxsG6DHN+XCPoU=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=slEQqPsZ+vRqG0tnBwKa2bbwmsTG8CH03bDmt8do+7iuX0AyO45iZpi+H+wfwukm1 5tViyTYFeHn8Ev1okyQyXx7bZTnLcKVcbJOuT01lMfU6g2BUFwpuGeKqFEseQHJGjs BdQtOBoLYT1pudrun1g29Ww/svkQvGv/25uXMtsSqcsSa3b2RlCoJo9Kmjsp9JVcaB IXbAudeseNTD+G70HN67QLXJGUwY3EBQB9IyMiG21o4maIY/UnSpPW3iOdjdIP5aRv vv9MJdxNgEvQIvYuIdeTrO8ciTUWfJhlvdWLnDpnYSKUiA7/KnGgWakhIbMW7dpW/Y JcQ2WirRFn+oQ== Message-ID: <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@technowledgy.de> Date: Thu, 21 Mar 2024 21:30:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: walther@technowledgy.de Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded Content-Language: en-US To: Thomas Munro , Peter Eisentraut Cc: Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Tom Lane , Bruce Momjian References: <3561573.1710771812@sss.pgh.pa.us> <4093813.1710899588@sss.pgh.pa.us> <4095435.1710900216@sss.pgh.pa.us> <477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: - List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Here is what we could with this: > 2. The next proposal was to stop clobbering environ once LD_LIBRARY_PATH > / LD_PRELOAD is found to keep those intact. We could backpatch this down to v12. This would be one step to make the test suite pass on Alpine Linux with musl and ultimately allow setting up a buildfarm animal for that. It does not solve the /proc/.../environ problem, but at least keeps ps status working on musl as it did before, so not a regression. > 4. The upstream (musl) suggestion of which I sent a PoC was to "exec > yourself with a bigger argv". We could do this in HEAD now ... > Could we even use the exec-approach as the fallback in all other cases > except BSDs and Windows and get rid of PS_USE_NONE? ... and then remove PS_USE_NONE at the beginning of the v18 cycle. This would give a bit more time for those "other systems", which were previously falling back PS_USE_NONE and would then clobber argv, too. Opinions? Best, Wolfgang