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 1rlaXc-003DeA-JR for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Mar 2024 20:22: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 1rlaXa-0006Wu-QP for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Mar 2024 20:22:03 +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 1rlaXa-0006Wm-IT for pgsql-bugs@lists.postgresql.org; Sat, 16 Mar 2024 20:22: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 1rlaXU-004ttV-KD for pgsql-bugs@lists.postgresql.org; Sat, 16 Mar 2024 20:22:02 +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 BE8F1E1A0089; Sat, 16 Mar 2024 21:21:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technowledgy.de; s=kas202308201259; t=1710620515; bh=9ePdBCJu+Nk7c8ze6kNS1+CETLNPm1Yr5jeal7UDQ7g=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=XgCYJzkPRLNUVnBTPrCdswi+Vq0FTElC8TM5KUj/JrScx7RpK8IfjfvgW1/GVn7a7 DbF8gA00alZarH68rcZHWJvX3VY/L6IS+lOJrgZwB+nKnBNdeWTIIk9kOL9b7m0pao 2sVpUXJFl3JkIe+tzV64AX3yRdvvrTJe8ADmBdTzbYmh/d+YHb2mAv3raHOGR7STHR ftYj7o0gUJprH2m4tAR33FLqICWQc9Qm5ywbZ6pcgBQRRqepj0eO3+gf0SCmmiEf7V 28YpwGZh5DJT3lTeTemFD1jcpdXp8/zx5Vxttoo38jj9Uw3UnILXRJL3vGUR3dAB/L AvR+QkfXZdH2A== Message-ID: <23205767-d108-40f0-9609-8381ab7a36fa@technowledgy.de> Date: Sat, 16 Mar 2024 21:21:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Wolfgang Walther Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded Content-Language: en-US To: Tom Lane , Andrew Dunstan Cc: PostgreSQL Bugs References: <2852940.1710599083@sss.pgh.pa.us> <443da167-ee01-47d2-9c83-105694b4cbd5@technowledgy.de> <3005969.1710619856@sss.pgh.pa.us> In-Reply-To: <3005969.1710619856@sss.pgh.pa.us> 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 Tom Lane: > We have the same situation on macOS. There, it seems to be the result > of a "security feature" that strips DYLD_LIBRARY_PATH from the process > environment when make executes a shell. I'm not sure whether this explanation is sufficient for the musl case, because LD_LIBRARY_PATH does make a difference: The direct dependency (libpqwalreceiver.so) can still be found if it's moved elsewhere and LD_LIBRARY_PATH points at it. So clearly the LD_LIBRARY_PATH variable is still set after make executed the shell - it's just not in effect on the *indirect* dependency (libpq.so) anymore. Best, Wolfgang