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 1qEwTj-0001C3-QS for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jun 2023 18:34:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qEwTi-0006jl-MJ for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jun 2023 18:34:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEwTi-0006jJ-4Z for pgsql-hackers@lists.postgresql.org; Thu, 29 Jun 2023 18:34:50 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qEwTd-0018wF-OA for pgsql-hackers@postgresql.org; Thu, 29 Jun 2023 18:34:48 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-565d65adcf2so109686eaf.3 for ; Thu, 29 Jun 2023 11:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20221208.gappssmtp.com; s=20221208; t=1688063684; x=1690655684; h=in-reply-to:references:message-id:from:to:subject:cc:date :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GG04wcMki6m7NWCBI5Qzg6GI28SO383JYb0akQ98j6I=; b=hMlM95Z9IUArNFzBHEYTD6/S/SS6PupjivcvNHGt2Vel3TUplMR+xto7+xo+3QYtMe J94dpyRwGgcXuPIiGYm9z98zNeqV2ArbODc+6JVh42xC5cwx+NeRymm0p4TUEttRJh1d pqAKGokhIQ3esJWCEAlnpUIy68DLPblRPEdt1YYlqj8XCgmW5ctfU25YQcRi2KHUkCZk etHEf/USmdqXVomNnSk3HhyufADWrnC8qRrhOPdjo/HoCuhJJmJvZnSjGFV00a49K1d7 rdHZ8pl1HEXyf2wVxY5vDCtYFB3tiys1IIQLOXcSosJV3jorQrIbiHxHCd9uj1BvcQad 2nkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688063684; x=1690655684; h=in-reply-to:references:message-id:from:to:subject:cc:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GG04wcMki6m7NWCBI5Qzg6GI28SO383JYb0akQ98j6I=; b=dN+ckt46BZa9cYSyQ6AStAuT3ZLhCxOt06TyeIPIYavStvXYXsSKprc5tM8YfpqVmh NUYOr/L8ut76PZWdpGDICqZ2wOp15n14HxttqTFy0sdXqN/CA4/vxAvdnig5pc6cseoB KiDyIq7YY04Dvjo3VfythQM1xr6IZRXSVRCHg9TvDZFCa5YvBYzGD3Qo5oY8wlZujfxW 6JT6e4XN6wr86jGHLgaKS2QttSSknga72VwTP9k/e4ShRQV8+x56Sy/uNSnoBL15XqhG 5n1HnomNpXllQCXKA8CAOT7T8k2uG0iFbwBNOvDSQAa59Z+fkjbmUi7iSrsxJ9paDho2 dVPw== X-Gm-Message-State: AC+VfDyuMMKoe3mR1rD87PYQZ4otEw6FB6XorSI/xL0KBvcHcIisszMW kH6uegNplNXm94NBUTWsXy4crB9kEPAN9fNUkU/Lug== X-Google-Smtp-Source: ACHHUZ4slO3ywGlgzDXwq0p3b4Ewl8VXlxDvJfipfs/2i5RWCsyiKp4Gy3GWfiOeZMW8ZAxm+2OsdQ== X-Received: by 2002:a4a:5292:0:b0:565:a7bd:3917 with SMTP id d140-20020a4a5292000000b00565a7bd3917mr401019oob.5.1688063684312; Thu, 29 Jun 2023 11:34:44 -0700 (PDT) Received: from localhost ([2607:fb90:f280:130d:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id l1-20020a4ad9c1000000b005634ef4f1c0sm3806113oou.31.2023.06.29.11.34.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jun 2023 11:34:43 -0700 (PDT) Content-Type: multipart/mixed; boundary=2eca9e845ddb461adaf774511162360fbe1dac129c6f3f6dc37a19059948 Mime-Version: 1.0 Date: Thu, 29 Jun 2023 13:34:42 -0500 Cc: Subject: Re: Meson build updates To: "Andres Freund" , "Peter Eisentraut" From: "Tristan Partin" Message-Id: X-Mailer: aerc 0.15.2-74-gdfabb5232875 References: <20230609183603.o56z3ngtak6qhb3s@awork3.anarazel.de> <20230612172038.f2xf2cwlnhjldqng@awork3.anarazel.de> <277c356e-7ef7-4c87-f4b2-97a13914dd02@eisentraut.org> <20230629173532.cdcydvqf3x5j7524@awork3.anarazel.de> In-Reply-To: <20230629173532.cdcydvqf3x5j7524@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --2eca9e845ddb461adaf774511162360fbe1dac129c6f3f6dc37a19059948 Content-Type: multipart/alternative; boundary=f7137547e7babf4fbcba352a1eed9da70ec8aa73a68c2bc5f4cb7a7d0bc7 --f7137547e7babf4fbcba352a1eed9da70ec8aa73a68c2bc5f4cb7a7d0bc7 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Type: text/plain; charset=UTF-8 On Thu Jun 29, 2023 at 12:35 PM CDT, Andres Freund wrote: > Hi, > > On 2023-06-29 13:18:21 +0200, Peter Eisentraut wrote: > > On 13.06.23 22:47, Tristan Partin wrote: > > > Forgot that I had gotten a review from a Meson maintainer. The last t= wo > > > patches in this set are new. One is just a simple spelling correction= . > > > > I have committed patches 0001-0006, 0008, 0010, 0013, 0014, 0016, which= are > > all pretty much cosmetic. > > Thanks Peter, Tristan! I largely couldn't muster an opinion on most of > these... > > > > The following patches are now still pending further review: > > > > v5-0007-Tie-adding-C-support-to-the-llvm-Meson-option.patch > > Hm. One minor disadvantage of this is that if no c++ compiler was found, = you > can't really see anything about llvm in the the output, nor in meson-log.= txt, > making it somewhat hard to figure out why llvm was disabled. > > I think something like > > elif llvmopt.auto() > message('llvm requires a C++ compiler') > endif > > Should do the trick? Your patch looks great to me. > > v5-0011-Pass-feature-option-through-to-required-kwarg.patch > > I'm a bit confused how it ended how it's looking like it is right now, bu= t > ... :) > > I'm thinking of merging 0011 and relevant parts of 0012 and 0015 into one= . Your patch looks great to me. > > v5-0012-Make-finding-pkg-config-python3-more-robust.patch > > The commit message here is clearly outdated (still talking about Python.h > check not being required). Does the remainder actually add any robustnes= s? > > I'm on board with removing unnecessary .enabled(), but from what I unders= tand > we don't gain anything from adding the if python3_inst.found() branch? Attached is a more up to date patch, which removes the old part of the commit message. I guess robust is in the eye of the beholder. It is definitely possible for the installation to not be found (Python.h not existing in newer versions of Meson as an example). All my patch would do is keep the build from crashing if and only if the installation wasn't found. The unnecessary .enabled() could be folded into the other patch if you so chose. > > v5-0015-Clean-up-some-usage-of-Meson-features.patch > > For me that's not really an improvement in legibility, the indentation fo= r the > bulk of each test helps parse things visually. In some cases the removed= "if > feature.disabled()" actually leads to tests being executed when a feature= is > disabled, e.g. perl -MConfig ... would now be run even perl is disabled. Makes sense to not take the patch then. > Attached my version of 0007 and 0011 (with some changes from 0012 and > 0015). I'm running a test of those with the extended CI I have in a branc= h... Thanks for the further review. Did you by chance see my other email in another branch of this thread[0]? [0]: https://www.postgresql.org/message-id/CTBSCT2V1TVP.2AUJVJLNWQVG3@gonk --=20 Tristan Partin Neon (https://neon.tech) --f7137547e7babf4fbcba352a1eed9da70ec8aa73a68c2bc5f4cb7a7d0bc7-- --2eca9e845ddb461adaf774511162360fbe1dac129c6f3f6dc37a19059948 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=v6-0001-Make-finding-pkg-config-python3-more-robust.patch Content-Type: text/x-patch; charset=utf-8; name=v6-0001-Make-finding-pkg-config-python3-more-robust.patch RnJvbSA1YTFjMWMxNDgzZGNiOWM3ZT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lZCgpKQotICBpZiBub3QgY2MuY2hlY2tfaGVhZGVyKCdQ eXRob24uaCcsIGRlcGVuZGVuY2llczogcHl0aG9uM19kZXAsIHJlcXVpcmVkOiBweW9wdC5lbmFi bGVkKCkpCi0gICAgcHl0aG9uM19kZXAgPSBub3RfZm91bmRfZGVwCisgIHB5dGhvbjNfaW5zdCA9 IHBtLmZpbmRfaW5zdGFsbGF0aW9uKHJlcXVpcmVkOiBweW9wdCkKKyAgaWYgcHl0aG9uM19pbnN0 LmZvdW5kKCkKKyAgICBweXRob24zX2RlcCA9IHB5dGhvbjNfaW5zdC5kZXBlbmRlbmN5KGVtYmVk OiB0cnVlLCByZXF1aXJlZDogcHlvcHQpCisgICAgIyBSZW1vdmUgdGhpcyBjaGVjayBhZnRlciB3 ZSBkZXBlbmQgb24gTWVzb24gPj0gMS4xLjAKKyAgICBpZiBub3QgY2MuY2hlY2tfaGVhZGVyKCdQ eXRob24uaCcsIGRlcGVuZGVuY2llczogcHl0aG9uM19kZXAsIHJlcXVpcmVkOiBweW9wdCkKKyAg ICAgIHB5dGhvbjNfZGVwID0gbm90X2ZvdW5kX2RlcAorICAgIGVuZGlmCiAgIGVuZGlmCi1lbHNl Ci0gIHB5dGhvbjNfZGVwID0gbm90X2ZvdW5kX2RlcAogZW5kaWYKIAogCi0tIApUcmlzdGFuIFBh cnRpbgpOZW9uIChodHRwczovL25lb24udGVjaCkKCg== --2eca9e845ddb461adaf774511162360fbe1dac129c6f3f6dc37a19059948--