Re: [RFC] building postgres with meson -v

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Josef Šimánek <josef(dot)simanek(at)gmail(dot)com>
Subject: Re: [RFC] building postgres with meson -v
Date: 2021-10-31 23:24:48
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


Attached is an updated version of the meson patchset.


- support for remaining binaries in src/bin, contrib modules

- nearly all tests, including src/test/modules etc, are integrated.

- quite a few more, but not yet all, optional dependencies (most are
exercised in the included CI)

- runs tests on SIP enabled macos without needing a prior installation /
installation is relocatable

- support for building docs.
I couldn't get dbtoepub work in a vpath style build, so I changed that
to also use pandoc. No idea if anybody uses the epub rules?

- 32bit x86 [1], 64bit aarch64 builds

- cross-building windows from linux works

- error when building with meson against a source tree with an in-tree
autoconf build (leads to problems with pg_config.h etc)

- update-unicode, reformat-dat-files, expand-dat-files

Bigger missing pieces:

- pgxs (that's a *hard* one)


- test / add support for platforms besides freebsd, linux, macos, windows

- remaining hardcoded configure tests (e.g. ACCEPT_TYPE_ARG*)

- win32 resource files only handled for two binaries, needs to be made
more compact

- ecpg

- fixing up flex output

- truckloads of polishing

- some tests (e.g. pg_upgrade, because of the upcoming tap conversion,
other tests that are shell scripts). Some tests are now run
unconditionally that previously were opt-in.

- what exactly gets installed where

- a "dist" target

- fix "ldap" build on macos


Andres Freund

[1] I had not defined SIZEOF_SIZE_T. Surprisingly that still results in
a successful 64bit build, but not a successful 32bit build.

Attachment Content-Type Size
v5-0001-ci-backend-windows-DONTMERGE-crash-reporting-back.patch text/x-diff 1.4 KB
v5-0002-ci-Add-CI-for-FreeBSD-Linux-MacOS-and-Windows-uti.patch text/x-diff 20.6 KB
v5-0003-plpython-Drop-support-python2.patch text/x-diff 262.3 KB
v5-0004-meson-prereq-output-and-depencency-tracking-work.patch text/x-diff 8.7 KB
v5-0005-meson-prereq-move-snowball_create.sql-creation-in.patch text/x-diff 4.7 KB
v5-0006-meson-prereq-add-output-path-arg-in-generate-lwlo.patch text/x-diff 1.6 KB
v5-0007-meson-prereq-add-src-tools-gen_versioning_script..patch text/x-diff 1.9 KB text/x-diff 2.6 KB
v5-0009-meson-prereq-remove-unhelpful-chattiness-in-snowb.patch text/x-diff 1.0 KB
v5-0010-meson-prereq-Can-we-get-away-with-not-export-all-.patch text/x-diff 18.3 KB
v5-0011-meson-prereq-Handle-DLSUFFIX-in-msvc-builds-simil.patch text/x-diff 2.0 KB
v5-0012-prereq-make-unicode-targets-work-in-vpath-builds.patch text/x-diff 4.0 KB
v5-0013-wip-don-t-run-ldap-tests-on-windows.patch text/x-diff 743 bytes
v5-0014-wip-split-TESTDIR-into-two.patch text/x-diff 5.7 KB
v5-0015-meson-Add-draft-of-a-meson-based-buildsystem.patch text/x-diff 275.1 KB
v5-0016-meson-ci-Build-both-with-meson-and-as-before.patch text/x-diff 17.9 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2021-11-01 00:24:05 Re: Delegating superuser tasks to new security roles (Was: Granting control of SUSET gucs to non-superusers)
Previous Message Tom Lane 2021-10-31 22:45:47 Missing include <openssl/x509.h> in be-secure-openssl.c?