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 1rRz9a-00AcOa-8c for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 18:36:15 +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 1rRz9Y-006Hdw-Es for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jan 2024 18:36:12 +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 1rRz9W-006Hdn-NL for pgsql-hackers@lists.postgresql.org; Mon, 22 Jan 2024 18:36:12 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.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 1rRz9P-003AP1-CQ for pgsql-hackers@postgresql.org; Mon, 22 Jan 2024 18:36:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 13FA9320010B; Mon, 22 Jan 2024 13:35:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 22 Jan 2024 13:35:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1705948558; x=1706034958; bh=9u+1qphX0qDnQtd6FGc9YHaK/lk1sKXc 9Q3LTU+2kPk=; b=Nx7Vy6lbUILens+BGFmYpvaw1/2I6rp4lhxo0a5c3cu4bS2C wYEXrLQpdBao2ASxoZ9FiUtf9ssmPQNYegjXk4B32X0fQlm08wiYaKDKCTiiklM5 9WhxwkyMZzBD6y5QrHdgbYVM+k2OBYp2xSvCJDZJwviu3LBMbw3Bti9fVu22/pVJ mF4/dNz7moJ7JYoLXlyGktbILacK6cx9Z20XNmDZrdw+32U02cKJhj04Ma27rq69 sVKnfnPcvA+rPqBEpwA/MvDWwwlBt5cxWQ7rxLaRdVVI7FfNBO5MjFnyXklj+dER 6OB1/nSjpryN5OrLEAmv08QWYbwk0nSvM+++Ow== 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 :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705948558; x= 1706034958; bh=9u+1qphX0qDnQtd6FGc9YHaK/lk1sKXc9Q3LTU+2kPk=; b=W YDwyES2JSSwOSjOPBF22O5w+1pr5UViJoNSpVKaEVvO/2Ek8NZ5m46XTAOPAenXV EDpy85slQdf9KGl5OI0Kuv4leOC4nuxgIGN+eBda/Fc9GHZkYqpIcHs8EVPEdMMN 4ms8newt4KgGIX4K9qMA//lKpkCwqrTNdWRFnsV/zKHwP3Q+77yK0JhnaH9Z3QxP hEbAEg0YjE55YZxDB9nN8BUV1W72wPW5D2Bb0Olqr/Xn+8BA2c2RCBHzf03yNVzB 8rjZyAylQr5QtqubHw7TwvPuhNuMi93C4rMDEC0rQoDtClGSt45DPI1rCHGPFXEE ltyplSJEgFi4tcVXRpreA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekiedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htjeertddtvdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvght vghrsegvihhsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhke eftdeugfeileehteeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnh htrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 13:35:57 -0500 (EST) Message-ID: <106cbedd-8a64-4e22-91a5-a2033abc3bed@eisentraut.org> Date: Mon, 22 Jan 2024 19:35:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: make dist using git archive Content-Language: en-US To: Junwang Zhao Cc: pgsql-hackers References: <40e80f77-a294-4f29-a16f-e21bc7bc75fc@eisentraut.org> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22.01.24 13:10, Junwang Zhao wrote: > I played this with meson build on macOS, the packages are generated > in source root but not build root, I'm sure if this is by design but I think > polluting *working directory* is not good. Yes, it's not good, but I couldn't find a way to make it work. This is part of the complications with meson I referred to. The @BUILD_ROOT@ placeholder in custom_target() is apparently always a relative path, but it doesn't know that git -C changes the current directory. > Another thing I'd like to point out is, should we also introduce *git commit* > or maybe *git tag* to package name, something like: > > git archive --format tar.gz --prefix postgresql-17devel/ HEAD -o > postgresql-17devel-`git rev-parse --short HEAD`.tar.gz > git archive --format tar.gz --prefix postgresql-17devel/ HEAD -o > postgresql-`git describe --tags`.tar.gz I'm not sure why we would need it built-in. It can be done by hand, of course.