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 1rnaLS-00E0n1-Oc for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Mar 2024 08:33:47 +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 1rnaLP-001RWy-Pz for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Mar 2024 08:33:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnaLP-001RWq-Hr for pgsql-bugs@lists.postgresql.org; Fri, 22 Mar 2024 08:33:44 +0000 Received: from dd25110.kasserver.com ([85.13.146.49]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnaLL-005ocT-Rl for pgsql-bugs@lists.postgresql.org; Fri, 22 Mar 2024 08:33:42 +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 22B0DE1A00DA; Fri, 22 Mar 2024 09:33:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technowledgy.de; s=kas202308201259; t=1711096419; bh=ME2F3yxaVPQCFj1jU2Le/maf124fZzbPgQjWH0PrN2A=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=IBa+3ApcEMQaCT/HCBruHckhy3lZW4zzv98HYzNVDOqqkBeLI8RlzNLQb/IbHlOJj 65IVgpNE4DhyN5fqFjwQAkX52uerotEW8bXehtYNwmXI2I+J6T8QeAYriCb1llyt3g +EGWG2n+y7AT3aJJecSMfM530IEqjHmoH+iFa2ZhAhjgG2wNovOnFztr0vIz/Wz83Q dK/gzo6fbMnyhc1Tgo2Pz9RP6sR2fqrRCbhCZoduuu1v4NOeHuibW+qYAnOggyQpJI 1z3Zv0Ye57dAsD2IajiLWIBEgiF2viIlUKgTSgtsfMMbs82TsqWXRzE+hV/Ayay8tR vgDlmS/mE8spg== Message-ID: Date: Fri, 22 Mar 2024 09:33:38 +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: Bruce Momjian , Thomas Munro Cc: Peter Eisentraut , Christophe Pettus , Andrew Dunstan , PostgreSQL Bugs , Tom Lane References: <4093813.1710899588@sss.pgh.pa.us> <4095435.1710900216@sss.pgh.pa.us> <477fa513-6bf0-456d-8d24-1e22a19df671@technowledgy.de> <36690fcf-f0c8-4d60-af49-6a7efa0e2b14@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 Bruce Momjian: > I suggest we use the #ifdef test to continue our existing behavior for > the libraries we know about, like glibc, and use the LD_* process title > truncation hack for libc's we don't recognize. > > Attached is a prototype patch which implements this based on previous > patches. The condition to check for linux/glibc in your patch is slightly off: #if ! defined(__linux__) || (! defined(__GLIBC__) && defined(__UCLIBC__ )) should be #if defined(__linux__) && ! (defined(__GLIBC__) || defined(__UCLIBC__ )) With the latter, it passes tests with musl. Best, Wolfgang