Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1A1C-009sOr-Hk for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Apr 2024 19:16:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s1A19-00Dt4y-S9 for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Apr 2024 19:16:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1A19-00Dt4q-Gh for pgsql-hackers@lists.postgresql.org; Sun, 28 Apr 2024 19:16:56 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1A16-000Xzg-VD for pgsql-hackers@lists.postgresql.org; Sun, 28 Apr 2024 19:16:55 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 8E3A7138018C; Sun, 28 Apr 2024 15:16:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 28 Apr 2024 15:16:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714331810; x= 1714418210; bh=nLmQTp3ppK86ZdGO42xwy8+b91S/I4J1CSkq/qDWwZ0=; b=T OLUwpR3BsxpWHxV7PSFiiax13lBKu/Ho4DJAntnAh9LDg911mu7lh2FhDxVQbXwa CkNgUX74hwcjgWlgVn3q/x2QJWeCFt9mlZE3nvJBQdSDGWQgyyfyZq0MSHFEcVA4 kU/tVyOetZnwwoG8xpMfO5qZSSIY4yFBmbNKc5Or0uiYfazd5GyNrjrEjX5BQ/PJ fD92rh+EP60W5MJYOm8nqkuNL9WyitfJRtijU5JB/2L1g41R04eDs6ZvOeexhvUk sw2dl6K3nV7vVI+f9runlK4V4mQmiZUjYRJDaWtk4FshGgOUg6KZOaM1UIEbiiCG vvxn0LVWMEBxzhP8sWiYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddthedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 28 Apr 2024 15:16:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1714331808; bh=o1N3EfSJY1axqsxa5seMx8eVMEj1nbeC0PaFhbX7WUc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=IPatECmXefyEBbhSTL8OU3ERMKhCAx87X2fOmDZn/OQdScSPFuw81xddJWMWUYRTu 15SfhUJPAhhL98g9b0tZ1UpUZYDl99eP57XLWG+MIUJ5IHRz1G2x12oq1o9z3gTWtv +aRITP5WhWTb2nYoBvTs2Pzk2nvX4g3bGCvrpHBr5r72bwPRTuFO9ONu+QdGgnKkup nyFi/PYBPkKNlzOanwDiP4Zapz0gGwNh3Wu+E8Ea99yvKGhK00A4HB6kRRz7/IoVxL uKXqNOZzicPm+tVbSBbVKgPjSxfoxdBRhh2NuHMoulUCGR0S4jnnsE+aT2DkawHwNA kdEHLQ0LoXBhA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 5B99A92; Sun, 28 Apr 2024 21:16:48 +0200 (CEST) Date: Sun, 28 Apr 2024 21:16:48 +0200 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , Greg Sabino Mullane , pgsql-hackers@lists.postgresql.org, Magnus Hagander Subject: Re: Tarball builds in the new world order Message-ID: <202404281916.cpngjkjnosj2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15181.1714159448@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Apr-26, Tom Lane wrote: > --- mk-one-release.orig 2024-04-23 17:30:08.983226671 -0400 > +++ mk-one-release 2024-04-26 15:17:29.713669677 -0400 > @@ -39,13 +39,17 @@ mkdir pgsql > git archive ${gitref} | tar xf - -C pgsql > > # Include the git ref in the output tarballs > +# (This has no effect with v17 and up; instead we rely on "git archive" > +# to include the commit hash in the tar header) > echo ${gitref} >pgsql/.gitrevision Why is it that the .gitrevision file is only created here, instead of being added to the tarball that "git archive" produces? Adding an argument like --add-virtual-file $(distdir)/.gitrevision:$(GIT_REFSPEC) to the git archive call should suffice. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food" (Donald Knuth)