pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: samay sharma <smilingsamay@gmail.com>
Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [RFC] building postgres with meson - v13
Date: Thu, 22 Sep 2022 13:05:33 -0700
Message-ID: <20220922200533.GA697326@nathanxps13> (raw)
In-Reply-To: <20220922150550.pscsjv4nwnslupeg@awork3.anarazel.de>
References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de>
	<20220915022626.5xx3ccgkzpkqw5mq@awork3.anarazel.de>
	<38ff430c-4a53-63f1-caf7-bb54c024d344@enterprisedb.com>
	<A2C5EE3B-E08B-4693-B5C2-A9AC1FD6BCA5@anarazel.de>
	<d861493c-ed20-c251-7a89-7924f5197341@enterprisedb.com>
	<20220920021630.vufrgcjmidimcarq@awork3.anarazel.de>
	<20220921164630.wrklkjmifjqjtlwc@awork3.anarazel.de>
	<20220922055704.fngsvviugsnivebs@awork3.anarazel.de>
	<2b9a02ec-22e6-24df-18ec-b60e3af12995@dunslane.net>
	<20220922150550.pscsjv4nwnslupeg@awork3.anarazel.de>

I gave the meson build system a try, and it seems to work nicely.  It
didn't take long at all to adapt my workflow.

A few notes from my experience:

* I'm using an Ubuntu-based distribution, and the version of meson that apt
installed was not new enough for Postgres.  I ended up cloning meson [0]
and using the newest tag.  This is no big deal.

* The installed binaries were unable to locate libraries like libpq.  I
ended up setting the extra_lib_dirs option to the directory where these
libraries were installed to fix this.  This one is probably worth
investigating further.

* meson really doesn't like it when there are things leftover from
configure/make.  Whenever I switch from make to meson, I have to run 'make
maintainer-clean'.

Otherwise, all of my usual build options, ccache, etc. are working just
like before.  Nice work!

[0] https://github.com/mesonbuild/meson

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com





view thread (81+ messages)  latest in thread

Message-ID: <20220922200533.GA697326@nathanxps13>
Permalink:  ../20220922200533.GA697326@nathanxps13/
Also on:    postgresql.org/message-id/20220922200533.GA697326@nathanxps13

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, andres@anarazel.de, andrew@dunslane.net, peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us, thomas.munro@gmail.com, pryzby@telsasoft.com, smilingsamay@gmail.com, byavuz81@gmail.com
  Subject: Re: [RFC] building postgres with meson - v13
  In-Reply-To: <20220922200533.GA697326@nathanxps13>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox