Re: Meson add host_system to PG_VERSION_STR - Mailing list pgsql-hackers

From Juan José Santamaría Flecha
Subject Re: Meson add host_system to PG_VERSION_STR
Date
Msg-id CAC+AXB2uzxDPxZ0EO9jXfiU3YxUrAVJaQY01YmKVct2q1gg38Q@mail.gmail.com
Whole thread Raw
In response to Re: Meson add host_system to PG_VERSION_STR  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: Meson add host_system to PG_VERSION_STR
List pgsql-hackers

On Wed, Nov 16, 2022 at 10:50 AM Peter Eisentraut <peter.eisentraut@enterprisedb.com> wrote:
On 16.11.22 01:01, Michael Paquier wrote:
>
> The meson build provides extra_version, which would be able to do the
> same, no?  The information would be appended to PG_VERSION_STR through
> PG_VERSION.

I think this is meant to achieve parity between the version strings
generated by configure and by meson.

Perhaps some examples before and after on different platforms could be
shown.

Yes, that would make clear what the patch is trying to do. For version() we get:

Configure:
 PostgreSQL 16devel on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit

Meson:
 PostgreSQL 16devel on x86_64, compiled by gcc-6.3.0

Patched:
 PostgreSQL 16devel on x86_64-linux, compiled by gcc-6.3.0

Regards,

Juan José Santamaría Flecha

 

pgsql-hackers by date:

Previous
From: Ian Lawrence Barwick
Date:
Subject: Re: Commit fest 2022-11
Next
From: Maxim Orlov
Date:
Subject: Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures