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 1ogAsX-0000sF-RG for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 20:20:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogAsW-0006uW-Nn for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 20:20:28 +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 1ogAsW-0006uN-Eu for pgsql-hackers@lists.postgresql.org; Wed, 05 Oct 2022 20:20:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogAsU-00031U-4O for pgsql-hackers@postgresql.org; Wed, 05 Oct 2022 20:20:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 295KKM2Z2551487; Wed, 5 Oct 2022 16:20:22 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, Nazir Bilal Yavuz , Peter Eisentraut Subject: Re: meson PGXS compatibility In-reply-to: <20221005200710.luvw5evhwf6clig6@awork3.anarazel.de> References: <20221005200710.luvw5evhwf6clig6@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 05 Oct 2022 13:07:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2551485.1665001222.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Oct 2022 16:20:22 -0400 Message-ID: <2551486.1665001222@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On macOS we ran ranlib after installing a static library. This was add= ed a > long time ago, in 58ad65ec2def. I cannot reproduce an issue in more re= cent > macOS versions. I agree that shouldn't be necessary anymore (and if it is, we'll find out soon enough). > I'm on the fence about removing the "touch $@" from the rule building = static > libs. That was added because of macos's ranlib not setting fine-graine= d > timestamps. On a modern mac ar and ranlib are the same binary, and may= be > that means that ar has the same issue? Both do set fine-grained > timestamps: Please see the commit message for 826eff57c4c: the issue seems to arise only with specific combinations of software, in particular with non-Apple versions of "make" (although maybe later Apple builds have fixed make's failure to read sub-second timestamps?). That's a relatively recent hack, and I'm very hesitant to conclude that we don't need it anymore just because you failed to reproduce an issue locally. It very possibly isn't a problem in a meson build, though, depending on how much meson depends on file timestamps. regards, tom lane