Re: Building with meson on NixOS/nixpkgs

Wolfgang Walther <walther@technowledgy.de>

From: Wolfgang Walther <walther@technowledgy.de>
To: Tristan Partin <tristan@partin.io>, Andres Freund <andres@anarazel.de>, Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-17T21:24:43Z
Lists: 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 →
  1. Support falling back to non-preferred readline implementation with meson

  2. Support absolute bindir/libdir in regression tests with meson

  3. Fallback to clang in PATH with meson

  4. Fallback to uuid for ossp-uuid with meson

  5. meson: Add support for detecting ossp-uuid without pkg-config

Tristan Partin:
> On Fri Aug 9, 2024 at 11:14 AM CDT, Andres Freund wrote:
> [..]
>> commit a00fae9d43e5adabc56e64a4df6d332062666501
>> Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
>> Date:   2024-07-27 13:53:08 +0300
>>
>>     Fallback to uuid for ossp-uuid with meson
>> [..]
>>
>> I think this is a redundant change with
>>
>> commit 2416fdb3ee30bdd2810408f93f14d47bff840fea
>> Author: Andres Freund <andres@anarazel.de>
>> Date:   2024-07-20 13:51:08 -0700
>>
>>     meson: Add support for detecting ossp-uuid without pkg-config
>> [..]
> 
> I'm not sure I would call them redundant. It's cheaper (and better) to 
> do a pkg-config lookup than it is to do the various checks in your 
> patch. I think the two patches are complementary. Yours services Windows 
> plus anywhere else that doesn't have a pkg-config file, while Wolfgang's 
> services distros that install the pkg-config with a different name.

Agreed.

There is also a small difference in output for meson: When uuid is 
queried via pkg-config, meson also detects the version, so I get this 
output:

   External libraries
[..]
     uuid                   : YES 1.6.2


Without pkg-config:

   External libraries
[..]
     uuid                   : YES

Best,

Wolfgang