Re: Regression tests fail with musl libc because libpq.so can't be loaded
Wolfgang Walther <walther@technowledgy.de>
From: Wolfgang Walther <walther@technowledgy.de>
To: Thomas Munro <thomas.munro@gmail.com>, peter@eisentraut.org
Cc: Bruce Momjian <bruce@momjian.us>, Christophe Pettus <xof@thebuild.com>,
Andrew Dunstan <andrew@dunslane.net>,
PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>,
Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-03-20T09:39:20Z
Lists: pgsql-bugs, pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Allow "make check"-style testing to work with musl C library.
- d82605bcd666 14.12 landed
- 8a92b70c11ba 17.0 landed
- 7651fd387697 16.3 landed
- 7124e7d528a8 12.19 landed
- 3c3f4fd741d0 15.7 landed
- 243e9953281f 13.15 landed
-
Fix compiler warnings on MSYS2
- 8c6d30f21139 13.0 cited
Attachments
- 0001-ps-status-exec.patch (text/x-patch) patch 0001
Thomas Munro: > On Wed, Mar 20, 2024 at 3:03 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> +1 for stopping only at one of those two names. > > Here's one like that for Wolfgang to test on musl. Works fine. Peter Eisentraut: > We could turn it around and do > > #if defined(__linux__) > #if defined(__GLIBC__) || defined(__UCLIBC__ ) > #define PS_USE_CLOBBER_ARGV > #else > #define PS_USE_NONE > #endif > #endif This works as well. I also put together a PoC of what was mentioned in musl's mailing list: Instead of clobbering environ at all, exec yourself again with padded argv0. This works, too. Attached. Best, Wolfgang