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: Tom Lane <tgl@sss.pgh.pa.us>, Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Date: 2024-03-16T20:21:55Z
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
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