pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Wolfgang Walther <walther@technowledgy.de>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date: Sat, 16 Mar 2024 21:00:28 +0100
Message-ID: <eff5b49b-3d34-4a5b-82e9-e2630b1da37d@technowledgy.de> (raw)
In-Reply-To: <CAD5tBcJ7r_g1gUCp63ugjE6doz_Fu_1VJQJ5Cz_gLGKJ3e1Ktg@mail.gmail.com>
References: <fddd1cd6-dc16-40a2-9eb5-d7fef2101488@technowledgy.de>
<2852940.1710599083@sss.pgh.pa.us>
<443da167-ee01-47d2-9c83-105694b4cbd5@technowledgy.de>
<CAD5tBcJ7r_g1gUCp63ugjE6doz_Fu_1VJQJ5Cz_gLGKJ3e1Ktg@mail.gmail.com>
Andrew Dunstan:
> On Alpine Linux, which uses musl libc, you have to run `make install`
> before you can run `make check`. Have you tried that?
I can see how that could work around the problem, because the library
would already be available in the default library path / rpath and
LD_LIBRARY_PATH would not be needed.
However, this would only be a workaround for the specific case of
running the regression tests, not a solution. Using LD_LIBRARY_PATH, as
documented, would still not be possible.
In my case, I am just using docker images with Alpine to easily
reproduce the problem. I am building with NixOS / nixpkgs' pkgsMusl. The
order of check and install phases can't be changed there, AFAICT. The
workaround I use right now is to temporarily patch rpath of the postgres
binary - this will be reset during the install phase anyway. This works,
but again is not a real solution.
Best,
Wolfgang
view thread (86+ messages) latest in thread
Message-ID: <eff5b49b-3d34-4a5b-82e9-e2630b1da37d@technowledgy.de> Permalink: ../eff5b49b-3d34-4a5b-82e9-e2630b1da37d@technowledgy.de/ Also on: postgresql.org/message-id/eff5b49b-3d34-4a5b-82e9-e2630b1da37d@technowledgy.de ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-bugs@postgresql.org Cc: walther@technowledgy.de, andrew@dunslane.net, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded In-Reply-To: <eff5b49b-3d34-4a5b-82e9-e2630b1da37d@technowledgy.de> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox