Re: Meson0.57.2 setup failed with option -Duuid=ossp

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Oreo Yang <oreo(dot)yang(at)hotmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Meson0.57.2 setup failed with option -Duuid=ossp
Date: 2025-09-19 10:23:48
Message-ID: CAN55FZ2G13DRg_4ET7cVx8QewsiifiUtFDVNxP4ZrE3P1o-HbQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Fri, 19 Sept 2025 at 04:15, Oreo Yang <oreo(dot)yang(at)hotmail(dot)com> wrote:
>
> Hi all,
>
> When i execute meson setup, an error occurred "meson.build:1610:4: ERROR: Expected 1 arguments, got 2."
> I saw [1] discussing about the meson minimun version which is 0.57.2.
> So I have attached a patch try to fix that.
>
> uuid = dependency('ossp-uuid', 'uuid', required: false)
> About dependency() ,"Since 0.60.0 more than one name can be provided, they will be tried in order and the first name to be found will be used."[2]
>
>
> ------------------
> highgo(at)ubuntu:~/postgres$ meson setup build --prefix=$PWD/inst -Duuid=ossp
> The Meson build system
> Version: 0.57.2
> ...
> Checking for function "SSL_CTX_set_keylog_callback" with dependency openssl: YES
> meson.build:1610:4: ERROR: Expected 1 arguments, got 2.
> ------------------

Nice catch! I am able to reproduce the problem and I confirm that the
patch fixes it.

--
Regards,
Nazir Bilal Yavuz
Microsoft

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mircea Cadariu 2025-09-19 10:26:46 Re: [BUG] temporary file usage report with extended protocol and unnamed portals
Previous Message Fujii Masao 2025-09-19 10:21:29 Re: Suggestion to add --continue-client-on-abort option to pgbench