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 1q56as-0000xX-PM for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jun 2023 15:21:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q56ar-0008QU-6K for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jun 2023 15:21:33 +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 1q56aq-0008QJ-Pe for pgsql-hackers@lists.postgresql.org; Fri, 02 Jun 2023 15:21:32 +0000 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q56al-003H0Y-4i for pgsql-hackers@postgresql.org; Fri, 02 Jun 2023 15:21:31 +0000 Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-75afa109e60so206704385a.2 for ; Fri, 02 Jun 2023 08:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon-tech.20221208.gappssmtp.com; s=20221208; t=1685719286; x=1688311286; 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=odhJwfPGKA8pKBsHcegJU0cSDqIMMQ9hcvLwuwRBf2Q=; b=YcePE7P6zXUwoCdWewX2Y3Bz45eAF2pRIlyKHP8WjPzVwED3U9g333mVrXqoix01mM uFnomZitYahV+7v/qNcP8BmO4G8xlWc1O8GKuQotJOE0IE3DqyGcgBrS19PAgj9ePhCz JL+3t+OJtycaM+SeDRHycuLTuZtoSDpdxgtYuUHi3+38OA9u9Vsl4vaEgaplqSPnW/RQ fuE9ClN5Zw6mKHGZmdYPYaXuDAbZ0fwcSaXsUzEguLr+LRV22wFSazV4NRfLrrJMMWFC XppIElXdtpZpjlaFW7arbMQ0ciQEMoTy81jGshWbeHi8JRBISOb9TOJlzJkt6Rh7R8Ge eVyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685719286; x=1688311286; 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=odhJwfPGKA8pKBsHcegJU0cSDqIMMQ9hcvLwuwRBf2Q=; b=h26dDnlJq0kmGQ58NSiY72IbO47gjzLpy1dIz01Qm+BcuTTgR010pFNq031rxW/wYn iI7SPSO2bxaQjj1buiRhSyy6vma2HLK416ShygCrXAbJE14z83lFCYwUtZERw/ONk3g7 HWD0eI95czVHuRmw4RCbodwooXbOkefk2GnJGmmry+bJILnupwqrOuKqSlqGDhjSGhU6 HbpfUpO8g5NZpll1QBCX/3Q1WbTg9VYqy9SoHrXnImiKQWyUpP1GwoclToT8A5/VqbJ1 g6eifdb38/hgGtZTdosRbFxS65G9C3PAHc6RSONpibiDgYecQX/5pbNOKdCE/sbXL/k5 PkvA== X-Gm-Message-State: AC+VfDxseRsgmRP1y6qhmUPQQ0d71g+gWOzRup06CeOCBDFnWnFgsq/f PS1S9Uj2W6bNShomg7evmcDeH6MdoNqM2+io7MA= X-Google-Smtp-Source: ACHHUZ6l1TTI+cL9g7+7NpQom3VGxLO0J8b8NR+rRvADNtoZhQdagGLbEDKaAm7MJ//Mmfa8H+DJKA== X-Received: by 2002:a05:6870:e516:b0:19f:3567:a0b5 with SMTP id y22-20020a056870e51600b0019f3567a0b5mr1548011oag.34.1685718825525; Fri, 02 Jun 2023 08:13:45 -0700 (PDT) Received: from localhost ([2607:fb90:e696:c1dc:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id zh35-20020a0568716ba300b0017fea9c156esm718935oab.18.2023.06.02.08.13.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 08:13:45 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 02 Jun 2023 10:13:44 -0500 Cc: =?utf-8?q?Dagfinn_Ilmari_Manns=C3=A5ker?= , "PostgreSQL Hackers" Subject: Re: [PATCH] Missing dep on Catalog.pm in meson rules To: "Andres Freund" From: "Tristan Partin" Message-Id: X-Mailer: aerc 0.15.2-33-gedd4752268b2 References: <87v8g7s6bf.fsf@wibble.ilmari.org> <329a690c-1f4e-4759-8018-8ee562c159f0@app.fastmail.com> <20230602130028.yf4jagpqqmivhx77@alap3.anarazel.de> <20230602134704.w2gg7nwe2jisd7es@alap3.anarazel.de> In-Reply-To: <20230602134704.w2gg7nwe2jisd7es@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri Jun 2, 2023 at 8:47 AM CDT, Andres Freund wrote: > Hi, > > On 2023-06-02 08:10:43 -0500, Tristan Partin wrote: > > > I wonder if we instead could just make perl output the files it loads= and > > > handle dependencies automatically that way? But that's more work, so = it's > > > probably the right thing to go for the manual path for now. > >=20 > > I am not familar with Perl enough (at all haha) to know if that is > > possible. I don't know exactly what these Perl files do, but perhaps it > > might make sense to have some global lookup table that is setup near th= e > > beginning of the script. > > It'd be nice to have something more general - there are other perl module= s we > load, e.g. > ./src/backend/catalog/Catalog.pm > ./src/backend/utils/mb/Unicode/convutils.pm > ./src/tools/PerfectHash.pm > > > > perl_files =3D { > > 'Catalog.pm': files('path/to/Catalog.pm'), > > ... > > } > > I think you got it, but just to make sure: I was thinking of generating a > depfile from within perl. Something like what you propose doesn't quite s= eems > like a sufficient improvement. Whatever I am proposing is definitely subpar to generating a depfile. So if that can be done, that is the best option! > > Otherwise, manual as it is in the original patch seems like an alright > > compromise for now. > > Yea. I'm working on a more complete version, also dealing with dependenci= es on > PerfectHash.pm. Good to hear. Happy to review any patches :). --=20 Tristan Partin Neon (https://neon.tech)