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 1qAHfs-0007gk-EV for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2023 22:12:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qAHfr-0004n8-9X for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jun 2023 22:12:07 +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 1qAHfq-0004my-Sq for pgsql-hackers@lists.postgresql.org; Fri, 16 Jun 2023 22:12:07 +0000 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qAHfm-002tm5-Aa for pgsql-hackers@postgresql.org; Fri, 16 Jun 2023 22:12:06 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-558b04141e2so844319eaf.0 for ; Fri, 16 Jun 2023 15:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20221208.gappssmtp.com; s=20221208; t=1686953520; x=1689545520; h=in-reply-to:references:message-id:to:subject:cc:from:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o6XUAo3vyQFlUtAcIwsJxVXSJj5lX1TAcCSjsphrFRA=; b=OZ7frfV4K9beNpt5hSX4kuAQiNARNm9TSVBtXuL40yf1gOQmCNNzdt5kGwV3b2z0Na SXedoR75bStzfUuRDhmB+Ej2P3Kyhyp8WADm/tzHz+oqVO/b3YT1UZP8M7TAA3oCtGt2 Y4kgX5S7Yw8lKj7uMm5Fwi+oCFMlXEZWJDc53xpXS0bUhLBG0KC2K7BUUSk+hW4eqrha 7SzYa9W5/trrsQOOWTRzJAl0BlKRkdijQ90c58dW79qVZfQSgHLdTH6nS8XJxXmPv7pR nvv6jZJ4mockbY0oI/ULs3hLYADtybJYKznoMm1u0FBKj4t8KDPMW22LBynSX2mVLpoB NAxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686953520; x=1689545520; h=in-reply-to:references:message-id:to:subject:cc:from:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=o6XUAo3vyQFlUtAcIwsJxVXSJj5lX1TAcCSjsphrFRA=; b=gbWmAyc5VQua7Oro8VpflRj/5RFJ2FxlRqtghgztXi9VW8cSw5tJrxhtR6oW1L0Jv6 EJyxDRj5a9mKf7bp5WujnxmVnkbJCoAc9o8ZQQqbdYOHklGpab3aIA7JvENRoYnc1Lgw u5IOivEuDAuDlneTTzOaqjRY5bHJlrZNV4LKWW/3G3T+IWejkHmAMqCRci8XGsiIM/0U JOIo5UkJBlOQoAzAmI01qw+AuFtwpyFyc1FSRfqy7UIv0xWRT/xkdHVnS32RdfgqagWj HKbuu9Aq/O5UwxwFs8nm6ZqXXu072IMgOYq/ypBzmEYkJx2UMJxNxA9m8IkF2Js2eN7X fNIw== X-Gm-Message-State: AC+VfDxUvI2S0usxOCbvGUo1QeeWQXNtBHcW2fY59Zwaa3FbPijglN6l ki2WC1jvgWyF5wvrNpoH/rlnjQ== X-Google-Smtp-Source: ACHHUZ413IQqxbFMYdrv1eKOvZ08PmjxN6Epde/Szm03SKMedvl51xMkOH7Cv5VNqVeWLapo5skP0A== X-Received: by 2002:a05:6808:14ce:b0:39a:abe8:afc3 with SMTP id f14-20020a05680814ce00b0039aabe8afc3mr4329047oiw.38.1686953520455; Fri, 16 Jun 2023 15:12:00 -0700 (PDT) Received: from localhost ([2607:fb90:e696:c1dc:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id c26-20020a544e9a000000b0039eb51a5dffsm346294oiy.43.2023.06.16.15.11.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 15:12:00 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 16 Jun 2023 17:11:59 -0500 From: "Tristan Partin" Cc: "Andrew Dunstan" , "PostgreSQL Hackers" Subject: Re: [PATCH] Missing dep on Catalog.pm in meson rules To: =?utf-8?q?Dagfinn_Ilmari_Manns=C3=A5ker?= , "Andres Freund" Message-Id: X-Mailer: aerc 0.15.2-46-g263d8cbec504 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> <871qibrrcd.fsf@wibble.ilmari.org> In-Reply-To: <871qibrrcd.fsf@wibble.ilmari.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri Jun 16, 2023 at 5:10 PM CDT, Dagfinn Ilmari Manns=C3=A5ker wrote: > 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 h= ave > >> side effects. > > > > I was envisioning using %INC after the use/require block - I don't thin= k 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 fo= r a > > build dependency file. I don't see a problem with rerunning genbki.pl e= t 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. Meson has no such restrictions. --=20 Tristan Partin Neon (https://neon.tech)