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 1qEwvO-0002xj-0K for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jun 2023 19:03:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qEwvM-0007Uv-MK for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jun 2023 19:03:24 +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 1qEwvM-0007Um-Cn for pgsql-hackers@lists.postgresql.org; Thu, 29 Jun 2023 19:03:24 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qEwvJ-00199Q-O4 for pgsql-hackers@postgresql.org; Thu, 29 Jun 2023 19:03:23 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-1aa30191d08so669568fac.0 for ; Thu, 29 Jun 2023 12:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20221208.gappssmtp.com; s=20221208; t=1688065401; x=1690657401; h=in-reply-to:references:message-id:from:to:subject:cc:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hdZTfiBWqI98jKe2RUlUNalubh3W1DvD6WN6wxbyoUg=; b=x18inWqgST6Xcub4zKY/QxdcC9erS46I+IMSAYcPwNpOglSQXj3W8vpK++HiLtV18E RFux1sMAiX4NC6QSfymLOXhRjZXacOOf51SJpwSkPBnC2NBMUFoSjTKQQHAzXYK2wcqP LQXYUdBuO1LVi7FXkK6UCxMvcfurroqLXeGKbp2Q/JqyqEyAt2uZvjxCW3XmQBBGnDhi yNGpuQB8iZTN7av4UbjJAx6hE5AO/eREciCX2wofk4lVz1iEvf9k4g3WkaBZNnSh15sK V7//X7OoskqiL9eTuKCyeJDpQd/PYRpfy3DZP4bMw/1OmFFk5W/sP0Yn7bdYL1QYMAYG OIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688065401; x=1690657401; h=in-reply-to:references:message-id:from:to:subject:cc:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=hdZTfiBWqI98jKe2RUlUNalubh3W1DvD6WN6wxbyoUg=; b=VBNNIqncCdtqtBrho+sKewTTPJpL+glUYFZsdxMHRy/LM+3ZScUE8CQB5SG3faIUyb RC86hmBITFePKqpNizHdLNz7LRCNEyVZ+yr/jj9vsqx8XDWIFZDZw0X5F68XgRvnwgww CS7/nW8NN01h7kMPPlvNCJjoDS57ToSN63J3iobXeIwtqasAglGP02Iwsr13ROSCaZ/S eLirheltVw4gQMdRbivEjhlwP/HVoJQLslstKzjYUbMBBCcFlvUVyN0PiuZMmdiang9P ZilAJ/modubYt3Ir53ziLIOyjmwaw2eH8mDjyr11L997S2Lyty7OC4f5uEJD6syqk9Fk ceSg== X-Gm-Message-State: ABy/qLY9GC+LbocyEsejQPPkdAAdKJ/QdYr+QYamVC2xBk5HJBQKQwLL MWqEWjjt8WPVt6ewipUGE5Know== X-Google-Smtp-Source: APBJJlEwiwkT2x4qaBDCuvJTFHMzu4Y8mzZ6JFU5fF9yamaqCgp9JEuia+1yyy6BE6LAykfFKAVtyA== X-Received: by 2002:a05:6870:d61e:b0:19e:941a:8c5c with SMTP id a30-20020a056870d61e00b0019e941a8c5cmr495338oaq.10.1688065400624; Thu, 29 Jun 2023 12:03:20 -0700 (PDT) Received: from localhost ([2607:fb90:f280:130d:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id l10-20020a056870f14a00b001b011efb1ebsm7557142oac.0.2023.06.29.12.03.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jun 2023 12:03:20 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 29 Jun 2023 14:03:19 -0500 Cc: "Peter Eisentraut" , Subject: Re: Meson build updates To: "Andres Freund" From: "Tristan Partin" Message-Id: X-Mailer: aerc 0.15.2-74-gdfabb5232875 References: <20230612172038.f2xf2cwlnhjldqng@awork3.anarazel.de> <277c356e-7ef7-4c87-f4b2-97a13914dd02@eisentraut.org> <20230629173532.cdcydvqf3x5j7524@awork3.anarazel.de> <20230629185845.mrtzkwkwporfmdbn@awork3.anarazel.de> In-Reply-To: <20230629185845.mrtzkwkwporfmdbn@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu Jun 29, 2023 at 1:58 PM CDT, Andres Freund wrote: > Hi, > > On 2023-06-29 13:34:42 -0500, Tristan Partin wrote: > > On Thu Jun 29, 2023 at 12:35 PM CDT, Andres Freund wrote: > > > > v5-0012-Make-finding-pkg-config-python3-more-robust.patch > > > > > > The commit message here is clearly outdated (still talking about Pyth= on.h > > > check not being required). Does the remainder actually add any robus= tness? > > > > > > I'm on board with removing unnecessary .enabled(), but from what I un= derstand > > > we don't gain anything from adding the if python3_inst.found() branch= ? > >=20 > > 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. > > Ah - I somehow thought .find_installation().dependency() would return a > not-found dependency when the install wasn't located. Inspecting the Meson source code... If find_installation() fails, you get returned a NonExistingExternalProgram, which doesn't implement dependency()[0]. > > > 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 b= ranch... > >=20 > > Thanks for the further review. Did you by chance see my other email in > > another branch of this thread[0]? > >=20 > > [0]: https://www.postgresql.org/message-id/CTBSCT2V1TVP.2AUJVJLNWQVG3@g= onk > > I had planned to, but somehow forgot. Will reply. Thanks! [0]: https://github.com/mesonbuild/meson/blob/master/mesonbuild/programs.py= #L333 --=20 Tristan Partin Neon (https://neon.tech)