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 1qAHeR-0007Zv-1n for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2023 22:10:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qAHeP-0000q3-VW for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2023 22:10:37 +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 1qAHeP-0000pm-8w for pgsql-hackers@lists.postgresql.org; Fri, 16 Jun 2023 22:10:37 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qAHeL-002tlN-SR for pgsql-hackers@postgresql.org; Fri, 16 Jun 2023 22:10:36 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 06EA75C0125; Fri, 16 Jun 2023 18:10:30 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 16 Jun 2023 18:10:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1686953430; x=1687039830; bh=3C MjlJqc4wOzbEQLXO/Da0H8/QlPd0JOh6Oqtm5so3Y=; b=TkfPQ5ok4nkvXc5mDw dnLCGvHZcTHkkrd67NZd1cm4lbPLRBfyQ0BSmFGzE/a9H6ZA6mIucm1/EsV/sFNC d6TA9Qyon2Ypkr7DM3d6BCYhzJVXfuldrdasSJgiUBDrifAYdA7c3gVuG/ig9hHd PRe1bihAAuHg2euV8WUdZUkCOhBzRjkK6da4AQGhtwwkP9+4oHLUPlRnVVfcB2Ym GbKtSI6cfCXCSSRwep89BCWC7TSDoJJQWECcPPLGP+yko8LiiPpzfrV+UNDI4sUV gOt5+oXi7y/2iyJXL3uqmFnkibPCLQzx+amuGWAi8emddDCvK75Ew5HtdTX3yi3n /PVg== 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:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1686953430; x=1687039830; bh=3CMjlJqc4wOzb EQLXO/Da0H8/QlPd0JOh6Oqtm5so3Y=; b=TpcrEbN9A+WiZxkMpa7R3g92esKhE KfcReGHfcI+1zXS2al3UbYNjb/5Ygmij2J7twlHYvZ5f07OcpkLHF34KAAzZKZXt iMVm2EbRTINibVtEK2hdDByhRXYDq4kwZhPjpkff+R/g+/dBIIAXZS4hZu/+dDe0 2U9pdFXpLi3dRAeg99Bvq9uz70sk3QI4FsHg4yALQMbQK2zWLZ/6JMlE9Jxo0drP 0pCtpDnEOZOmi2zbZX8+s+I+F1qdsu92WW/FkeFF34IRy7VLvYMYZnLViImzBgwA cMfdfbC4qYTCARFUCVhovbuO8+8gsJqEy6CVIdT/kBLu4NLjgR/POGhOQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvhedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhf ihhnnhcukfhlmhgrrhhiucforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrih drohhrgheqnecuggftrfgrthhtvghrnhepkeeljeeufefhffekhfektdefleeuvdeiiefh heeffeefgeegudffudehjeejiefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrgh X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Jun 2023 18:10:29 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Andres Freund Cc: Andrew Dunstan , Tristan Partin , PostgreSQL Hackers Subject: Re: [PATCH] Missing dep on Catalog.pm in meson rules References: <329a690c-1f4e-4759-8018-8ee562c159f0@app.fastmail.com> <20230602130028.yf4jagpqqmivhx77@alap3.anarazel.de> <20230602134704.w2gg7nwe2jisd7es@alap3.anarazel.de> <20230609184354.5stlrg7vfj6dd7rz@awork3.anarazel.de> <20230614193213.74elqlrhb24i4ouq@awork3.anarazel.de> <52d98dc8-8107-7f42-5793-3a3eac30ecfa@dunslane.net> <20230616211628.3wxxt2cisexqrakq@awork3.anarazel.de> Date: Fri, 16 Jun 2023 23:10:26 +0100 In-Reply-To: <20230616211628.3wxxt2cisexqrakq@awork3.anarazel.de> (Andres Freund's message of "Fri, 16 Jun 2023 14:16:28 -0700") Message-ID: <871qibrrcd.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Hi, > > On 2023-06-16 16:20:14 -0400, Andrew Dunstan wrote: >> Unless I'm misunderstanding, this doesn't look terribly feasible to me. You >> can only get at %INC by loading the module, which in many cases will have >> side effects. > > I was envisioning using %INC after the use/require block - I don't think our > scripts load additional modules after that point? I was thinking of a module for writing depfile entries that would append `values %INC` to the list of source files for each target specified by the script. >> And then you would also need to filter out things loaded that >> are not our artefacts (e.g. Catalog.pm loads File::Compare). > > I don't think we would need to filter the output. This would just be for a > build dependency file. I don't see a problem with rerunning genbki.pl et al after > somebody updates File::Compare? As long as mason doesn't object to dep files outside the source tree. Otherwise, and option would be to pass in @SOURCE_ROOT@ and only include `grep /^\Q$source_root\E\b/, values %INC` in the depfile. > Greetings, > > Andres Freund - ilmari