Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8PeO-009jlt-6l for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Nov 2023 18:51:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r8PeM-00CRLa-Q2 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Nov 2023 18:51:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8PeL-00CRLR-Nh for pgsql-hackers@lists.postgresql.org; Wed, 29 Nov 2023 18:51:06 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8PeD-009DLq-R2 for pgsql-hackers@postgresql.org; Wed, 29 Nov 2023 18:51:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 44E8E5C00CE; Wed, 29 Nov 2023 13:50:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 29 Nov 2023 13:50:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1701283855; x=1701370255; bh=3LvZzpuDfyazcyoKOwYHFCaVT X3Jc3/DwfPSSM5KVcs=; b=TETyXOcCnYNxLaepg8c62lGhVesGTgBBau/L88gLs NWi5i99YPqKkPdYH5+tek2y2JaCCB1NLj1uurNAvwoRD39w9g7By1V21dELXVFVz kEnmBirApLHqeHUC3i5LYUHK/vibLXkcZ5Ziy+M/rYckngxy8GRlT+482OpBlVAl 1/70nzkqJeo7hy+mX0ztTP8tnTkM0tKR2G5CEQMwZ6B3RGMGGvPtvPKosp7TfA/i N/l6eCtx36HfCMkbDvdEqI0bGNl5pVIQxQKufhMML6HhTXEsgEWNq6KbT/xoZRCS IJZ5Ifw2HWafQmuzcgcmj8ApWMmRkGZ4ccBVlPkaAZUjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701283855; x=1701370255; bh=3LvZzpuDfyazcyoKOwYHFCaVTX3Jc3/DwfP SSM5KVcs=; b=G5+VEd+JzAw/v89/WWaw5VXTn7czwB6O8NhDODTuZVgE6+lJumW XAUvYT0BN5DG54eBtqJ9EYqgusjLSpuANlizELf4jzbB45T4Oqrhcz4fkvqTppNp Ny2FjlxtmxCv1YvWOUXfhcj4XFYE4imr12uodoxcNc7dIzh+HXBHWS/fKV8PK0Ph 0kT82wuu20CSrEXVJCRLfibK32pyPpJ7vUMyA0ljXHnOGivYZpP81WnaU6qRMbuc 0O+mLrInH58hfC43GTiNRsxDaqOcztmS8nTzKWN+GUWGcS1A/KmQkWwfNfM9n2uc 7b9d7zlZQbO1quABfhuE7WuvWRsaiFavRSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeihedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggusehmtderredttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeevleevffekveekhffhgeekvdfgfeeggefgudffudefveegheduheekfeef keeuleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Nov 2023 13:50:54 -0500 (EST) Date: Wed, 29 Nov 2023 10:50:53 -0800 From: Andres Freund To: pgsql-hackers@postgresql.org Cc: Peter Eisentraut , Tristan Partin Subject: meson: Stop using deprecated way getting path of files Message-ID: <20231129185053.s6c7f73eg7b4ztfi@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qbfbz6cngmn2unfc" Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --qbfbz6cngmn2unfc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, The just released meson 1.3 strongly deprecated a hack we were using, emitting a noisy warning (the hack basically depended on an implementation detail to work). Turns out there has been a better way available for a while, I just hadn't found it. 1.4 added a more convenient approach, but we can't rely on that. Everything continues to work, but the warning is annoying. The warning: Message: checking for file conflicts between source and build directory ../home/andres/src/postgresql/meson.build:2972: DEPRECATION: Project uses feature that was always broken, and is now deprecated since '1.3.0': str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.. [...] WARNING: Broken features used: * 1.3.0: {'str.format: Value other than strings, integers, bools, options, dictionaries and lists thereof.'} I plan to apply this soon, unless I hear some opposition / better ideas / .... Greetings, Andres Freund --qbfbz6cngmn2unfc Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-meson-Stop-using-deprecated-way-getting-path-of-f.patch" From d296c088ceadeac281a54d6f7f748112c5efb33a Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 29 Nov 2023 10:47:20 -0800 Subject: [PATCH v1] meson: Stop using deprecated way getting path of files The just released meson 1.3 strongly deprecated a hack we were using, emitting a noisy warning (the hack basically depended on an implementation detail to work). Turns out there has been a better way available for a while, I just hadn't found it. 1.4 added a more convenient approach, but we can't rely on that. Author: Reviewed-by: Discussion: https://postgr.es/m/ Backpatch: 16-, where the meson build was added. --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 0095fb183af..d8ff5cb51f0 100644 --- a/meson.build +++ b/meson.build @@ -2924,8 +2924,12 @@ potentially_conflicting_files = [] foreach t : potentially_conflicting_files_t potentially_conflicting_files += t.full_path() endforeach -foreach t : configure_files - t = '@0@'.format(t) +foreach t1 : configure_files + if meson.version().version_compare('>=0.59') + t = fs.parent(t1) / fs.name(t1) + else + t = '@0@'.format(t1) + endif potentially_conflicting_files += meson.current_build_dir() / t endforeach foreach sub, fnames : generated_sources_ac -- 2.38.0 --qbfbz6cngmn2unfc--