Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obSS6-0002Mu-9S for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Sep 2022 20:05:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obSS5-0001n5-4h for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Sep 2022 20:05:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1obSS4-0001mv-PW for pgsql-hackers@lists.postgresql.org; Thu, 22 Sep 2022 20:05:40 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1obSS2-0004sa-2O for pgsql-hackers@postgresql.org; Thu, 22 Sep 2022 20:05:40 +0000 Received: by mail-pl1-x633.google.com with SMTP id v1so9817797plo.9 for ; Thu, 22 Sep 2022 13:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=yvCOAqZdFLzar8ubiynS3CYRm94XgMFVbBVNJA4rHzQ=; b=gEVs0Kys/SqVIM8D3Yd2qPOAnCmA/hZpjm4LMwxdcYy73DFNluJj6f+iIcv6p3UVEs QuSmoXvhTCLtuAzkZRzBzPNB/qym2Tv8haIoWBCIltgdQECqlAKqQxznVy4nKCxVenEy VEZhJYGvkMIw+dBTVyZfdOG0LgtdYm5vYXNTE0X3AZtdqNTvreEIfz13aH5r74CqanZs pv7YsqCIKtpGANm4bvM1APeKdKJ7dXN13GK/ze07dyImNBtiygxntVAvfR2PLymh1JkW eUj1q0xI4RxuH5kY8Csg3/hySpXD2TXy36voPJziwhm0mHmDWPfqfFwAWg3qAbvvCPUu ZIGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=yvCOAqZdFLzar8ubiynS3CYRm94XgMFVbBVNJA4rHzQ=; b=iYBzx+33n/EQ16UNg8NaEehCuOCjXTOAnjZ+vS/RQXhuD44TgY892mmVLKYbGuXUKy LYzPdYGeFWNhUY8NV37UbEulnUujhfVYi6//sooMwm02LgpxZrCx0Uo8KTd0E5SJ8NA9 1SFe489dFaBuH4hsrFovgDWB4+hLYMqaJ7l6Y3yjvk/bF73OOBDZpbRjtHqBHboFZhqS i3PpM54rUEy0o5YP8ppqTZ4PXJcbgZfpt/o/Elqb65DTHQlBAIL2ontHVAtERhy6t5A0 JcfsQHvJK8zuBPGY4TYnw/LpMCRXn4OvseLHkXP2j8lxeun5UMPlrH8KBRLH782HzXHm DQwA== X-Gm-Message-State: ACrzQf2t/K1TCH83ZqwzejE9lR6vbIRGDhuczWsZ9EgY0sn6EdDTht32 +BijtnbAkYWs1WLNoYnK7ppBFqvayrI= X-Google-Smtp-Source: AMsMyM6JTEMg/m1oQloxUrvF4i2Rlcz51eI9SUGh4Qi/ZQgTY4zGlv1vXSOmk2/S9BGA2RExO5RFCw== X-Received: by 2002:a17:902:7c07:b0:178:2984:450 with SMTP id x7-20020a1709027c0700b0017829840450mr5027852pll.43.1663877135966; Thu, 22 Sep 2022 13:05:35 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id l19-20020a170902f69300b00176b3c9693esm4551894plg.299.2022.09.22.13.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 13:05:35 -0700 (PDT) Date: Thu, 22 Sep 2022 13:05:33 -0700 From: Nathan Bossart To: Andres Freund Cc: Andrew Dunstan , Peter Eisentraut , Tom Lane , Thomas Munro , Justin Pryzby , samay sharma , Nazir Bilal Yavuz , pgsql-hackers@postgresql.org Subject: Re: [RFC] building postgres with meson - v13 Message-ID: <20220922200533.GA697326@nathanxps13> References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20220915022626.5xx3ccgkzpkqw5mq@awork3.anarazel.de> <38ff430c-4a53-63f1-caf7-bb54c024d344@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220922150550.pscsjv4nwnslupeg@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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