0003-meson-Increase-minimum-version-to-0.57.patch

text/plain

Filename: 0003-meson-Increase-minimum-version-to-0.57.patch
Type: text/plain
Part: 2
Message: Re: minimum Meson version

Patch

Format: format-patch
Series: patch 0003
Subject: meson: Increase minimum version to 0.57
File+
doc/src/sgml/installation.sgml 1 1
meson.build 4 4
From 2fc5ecddacf0276e89d66163552f55c736179389 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Wed, 18 Jun 2025 10:18:26 +0200
Subject: [PATCH 3/5] meson: Increase minimum version to 0.57

The previous minimum was to maintain support for Python 3.5, but we
now require Python 3.6 anyway (commit 45363fca637), so that reason is
obsolete.  A small raise to Meson 0.57 allows getting rid of a fair
amount of version conditionals and silences some future-deprecated
warnings.
---
 doc/src/sgml/installation.sgml | 2 +-
 meson.build                    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index de19f3ad929..7f2e905bc9e 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -65,7 +65,7 @@ <title>Requirements</title>
      </para>
 
      <para>
-      The minimum required version of <application>Meson</application> is 0.54.
+      The minimum required version of <application>Meson</application> is 0.57.
      </para>
     </listitem>
 
diff --git a/meson.build b/meson.build
index 474763ad19f..3c3667ffe61 100644
--- a/meson.build
+++ b/meson.build
@@ -11,10 +11,10 @@ project('postgresql',
   version: '18beta1',
   license: 'PostgreSQL',
 
-  # We want < 0.56 for python 3.5 compatibility on old platforms. EPEL for
-  # RHEL 7 has 0.55. < 0.54 would require replacing some uses of the fs
-  # module, < 0.53 all uses of fs. So far there's no need to go to >=0.56.
-  meson_version: '>=0.54',
+  # We want < 0.62 for python 3.6 compatibility on old platforms.
+  # RHEL 8 has 0.58.  < 0.57 would require various additional
+  # backward-compatibility conditionals.
+  meson_version: '>=0.57',
   default_options: [
     'warning_level=1', #-Wall equivalent
     'b_pch=false',
-- 
2.49.0