Re: allow meson to find ICU in non-standard localtion

From: Jacob Champion <jchampion(at)timescale(dot)com>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: allow meson to find ICU in non-standard localtion
Date: 2023-03-01 19:43:09
Message-ID: CAAWbhmjKQhZyxqJCWE2HGXV=SDKEGdE=YU=H+zA55Fup1hNg1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Feb 26, 2023 at 7:36 PM Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
>
> On Sun, 2023-02-26 at 09:57 -0800, Andres Freund wrote:
> > If you tell meson where to find the pkg-config file in those
> > directories it'd
> > also work. -Dpkg_config_path=...
>
> Setup is able to find it, which is good, but it seems like it's not
> adding it to RPATH so it's not working.

For my custom OpenSSL setups using -Dpkg_config_path, meson initially
adds the correct RPATH during build, then accidentally(?) strips it
during the `ninja install` step. This has been complained about [1],
and it seems like maybe they intended to fix it back in 0.55, but I'm
not convinced they did. :)

I work around it by manually setting -Dextra_lib_dirs. I just tried
doing that with ICU 72, and it worked without a patch. Hopefully that
helps some?

--Jacob

[1] https://github.com/mesonbuild/meson/issues/6541

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark (as CFM) 2023-03-01 19:45:57 Re: Flush SLRU counters in checkpointer process
Previous Message Gregory Stark (as CFM) 2023-03-01 19:42:14 Re: [PATCH] Make ON CONFLICT DO NOTHING and ON CONFLICT DO UPDATE consistent