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 1q4hcj-0007ql-T5 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2023 12:41:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q4hci-0007yk-64 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Jun 2023 12:41:48 +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 1q4hch-0007yb-P8 for pgsql-hackers@lists.postgresql.org; Thu, 01 Jun 2023 12:41:47 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q4hcf-0034eZ-4i for pgsql-hackers@postgresql.org; Thu, 01 Jun 2023 12:41:46 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DECEC3200708 for ; Thu, 1 Jun 2023 08:41:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 01 Jun 2023 08:41:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1685623303; x=1685709703; bh=4i/NaJh+cLjQVwX9cDexT3BBL IGPJixjpb9K2XXEA0c=; b=GcHaddW6JOLL/Bn925af7+9t/KGYkVKPPvofjlEru lw3K1Nj8GYKUFXkKmlnQ+V1slWA0eP6s4/Y2G5G/UVp7zUrMYgKMr+HEl022oioH J5CYw5Aj9h7VZzfQrwKPaJt1WsAQOD9VyxroASrYlifp8XslqhLQh/BJsN9yomXe ADF9IiR6JtYzStaoz2Kp7EHcpQDqKv/q+gDohq32rtx9MqDUMQyis26/ApL0YHa4 R7lCFykrI46Fh/doXXEDLc4mj4AjiXCYmxe1sojjPBCfpqDdEtcqcfL5rAsMr2ow 3VsVSCY+MHkzMyW1ASLqVSvakPfH6N1F+t/Hjhg9K/x+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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= 1685623303; x=1685709703; bh=4i/NaJh+cLjQVwX9cDexT3BBLIGPJixjpb9 K2XXEA0c=; b=HsVL4kJHfyYCC+zW8TiaQ2/srbkntYnIVyBzu3amy6RCXZLKsrg Mr0TfOQse6379PGFVXje/JG+bK3IKuRd0rTJdAEZMDEjlOb6BzqY32noHkYYWDzv r2Mq/lE/szroDQq+WKLWiLBKF2ts2VvV6XJkeMAkUlGpwClj+2tcIHQQAV6EyGbi 1hxFXnz6kC5bXIScIKqFflJB0K8xYDeZZLY6v8Js0xb1aT7QmuHZ1tQgluaWg0Rw 7CxucC/IYyYBBByAlKYdlp03l5RGuUXu6e1p8G9PM8xFLg5v3I4vK+RhRhdcLybj fZu2dVxCHx06atHcR7FggoJmP8ajbimdZPQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeluddgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgfgggtsehmtderredtreejnecuhfhrohhmpeffrghgfhhinhhn ucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrhhirdhorh hgqeenucggtffrrghtthgvrhhnpefguddujeegudegkeevgfdukeeifeeltdevudekvdeu hfehtdehteevleekfffgueenucffohhmrghinhepphhoshhtghhrrdgvshenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhl mhgrrhhirdhorhhg X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 1 Jun 2023 08:41:42 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: PostgreSQL Hackers Subject: [PATCH] Missing dep on Catalog.pm in meson rules Date: Thu, 01 Jun 2023 13:41:40 +0100 Message-ID: <87v8g7s6bf.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Hi Hackers, While hacking on Catalog.pm (over in https://postgr.es/m/87y1l3s7o9.fsf%40wibble.ilmari.org) I noticed that ninja wouldn't rebuild postgres.bki on changes to the module. Here's a patch that adds it to depend_files for the targets I culd find that invoke scripts that use it. - ilmari --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-meson-declare-dependency-on-Catalog.pm-for-targets-t.patch From 63e8cdbd2509feeb493bf7b52362e8b429e8279c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= Date: Thu, 1 Jun 2023 13:27:41 +0100 Subject: [PATCH] meson: declare dependency on Catalog.pm for targets that use it --- src/include/catalog/meson.build | 2 +- src/include/nodes/meson.build | 1 + src/include/utils/meson.build | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/catalog/meson.build b/src/include/catalog/meson.build index 3179be09d3..01181ae1fc 100644 --- a/src/include/catalog/meson.build +++ b/src/include/catalog/meson.build @@ -111,7 +111,7 @@ generated_catalog_headers = custom_target('generated_catalog_headers', output: output_files, install_dir: output_install, input: input, - depend_files: bki_data_f, + depend_files: bki_data_f + files('../../backend/catalog/Catalog.pm'), build_by_default: true, install: true, command: [ diff --git a/src/include/nodes/meson.build b/src/include/nodes/meson.build index 9a8e85c4a5..dafad003ed 100644 --- a/src/include/nodes/meson.build +++ b/src/include/nodes/meson.build @@ -50,6 +50,7 @@ node_support_install = [ generated_nodes = custom_target('nodetags.h', input: node_support_input, output: node_support_output, + depend_files: files('../../backend/catalog/Catalog.pm'), command: [ perl, files('../../backend/nodes/gen_node_support.pl'), '-o', '@OUTDIR@', diff --git a/src/include/utils/meson.build b/src/include/utils/meson.build index 2fed1e3f8e..3cbe21350c 100644 --- a/src/include/utils/meson.build +++ b/src/include/utils/meson.build @@ -44,6 +44,7 @@ fmgrtab_output = ['fmgroids.h', 'fmgrprotos.h', 'fmgrtab.c'] fmgrtab_target = custom_target('fmgrtab', input: '../catalog/pg_proc.dat', output : fmgrtab_output, + depend_files: files('../../backend/catalog/Catalog.pm'), command: [perl, '-I', '@SOURCE_ROOT@/src/backend/catalog/', files('../../backend/utils/Gen_fmgrtab.pl'), '--include-path=@SOURCE_ROOT@/src/include', '--output=@OUTDIR@', '@INPUT@'], install: true, install_dir: [dir_include_server / 'utils', dir_include_server / 'utils', false], -- 2.39.2 --=-=-=--