Hello, Here is a new patch version.I tried to use perl 'version' instead of 'api_versionstring' to sync with configure script.
-- Roman Zharkov
From: Zharkov Roman <r.zhar...@postgrespro.ru> Date: Thu, 17 Oct 2024 13:09:51 +0700 Subject: [PATCH] Show plperl version in the meson setup summary. Use perl 'version' instead of 'api_versionstring' to sync with configure script. --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 8e128f4982a..436df7bb592 100644 --- a/meson.build +++ b/meson.build @@ -996,6 +996,7 @@ endif perlopt = get_option('plperl') perl_dep = not_found_dep +perlversion = '' if not perlopt.disabled() perl_may_work = true @@ -1013,7 +1014,7 @@ if not perlopt.disabled() # Then inquire perl about its configuration if perl_may_work perl_conf_cmd = [perl, '-MConfig', '-e', 'print $Config{$ARGV[0]}'] - perlversion = run_command(perl_conf_cmd, 'api_versionstring', check: true).stdout() + perlversion = run_command(perl_conf_cmd, 'version', check: true).stdout() archlibexp = run_command(perl_conf_cmd, 'archlibexp', check: true).stdout() privlibexp = run_command(perl_conf_cmd, 'privlibexp', check: true).stdout() useshrplib = run_command(perl_conf_cmd, 'useshrplib', check: true).stdout() @@ -3711,7 +3712,7 @@ if meson.version().version_compare('>=0.57') 'nls': libintl, 'openssl': ssl, 'pam': pam, - 'plperl': perl_dep, + 'plperl': [perl_dep, perlversion], 'plpython': python3_dep, 'pltcl': tcl_dep, 'readline': readline, @@ -3722,6 +3723,7 @@ if meson.version().version_compare('>=0.57') 'zstd': zstd, }, section: 'External libraries', + list_sep: ' ', ) endif -- 2.34.0.windows.1