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 1q72sI-0008IQ-KY for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jun 2023 23:47: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 1q72sH-00082H-9c for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jun 2023 23:47:33 +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 1q72sG-000828-WC for pgsql-hackers@lists.postgresql.org; Wed, 07 Jun 2023 23:47:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.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 1q72sD-000uu0-Rl for pgsql-hackers@postgresql.org; Wed, 07 Jun 2023 23:47:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2E5F15C010F; Wed, 7 Jun 2023 19:47:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 07 Jun 2023 19:47:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1686181648; x=1686268048; bh=ve RJ6pN6zsU0/bw1pwoeD6Xh4T1pVkx0mF4YQXwgeMI=; b=oa51Wv820xVAbcbkSB +UboRzIje+iRJxP9I8vz0kSO5HlhbAOcJn3yi+6COyLaunMvYn0doRjnhqB5x5ud oCExiR206lF4kojK4pu0/GO7AgGFFq6stZ39aGNqYH6no//5eDD0ekj8L+EChdBY 05/BpIHRN8JHPidZ9JMD0G44b1XMOtSr9Mc8Pf77XGgDJ2aW2zkp4m+1aZ2DXJkd kAldy5Ssf7mgCikvZA3tVd98qO5lXJuiUQ9aHgipGsHSkZ0UooYU3bsqCBCw9g0H LRTAkxDMcWUMDZInxZjLDbo8YXGoMqq+kULEzhXEAccJny9M96o3fVQjatWnM2Yb Kd3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686181648; x=1686268048; bh=veRJ6pN6zsU0/ bw1pwoeD6Xh4T1pVkx0mF4YQXwgeMI=; b=a1OJVM1bmcKDSzZmkjOHzZt3VKsum 2nQh5HSU7roWhX+N8YXknNz3CG8SEIIaYdZh54eHAtRix7KMkoJPSqzL7Us/XZTz ghg7pCavymAPVKN8jcTkPfe4eFyy840jum9jN+YuwJUQghYqbLpG0wRPcqg4ibKH PxtqHxJ8t9V0kMTEUwZ+uOAk6W5Dq2p1jg83V4LlfkisND7hLkCHp3q4X5KXWFPm gQ/n5YaeRxsg+wjvVrsJGDbsoeZqklE77q/LQQroNQ9w+A3mTnVroY/aRkCL+cF/ u9VuWnnHP7SYecPxKK5VGOIHBvKlmHQYgCy7wnc7bN4XYiCeKmsNNAG8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedthedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Jun 2023 19:47:27 -0400 (EDT) Date: Wed, 7 Jun 2023 16:47:26 -0700 From: Andres Freund To: Noah Misch Cc: pgsql-hackers@postgresql.org Subject: Re: win32ver data in meson-built postgres.exe Message-ID: <20230607234726.gqvydjl6qamoyq2k@awork3.anarazel.de> References: <20230607231407.GC1334487@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230607231407.GC1334487@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-06-07 16:14:07 -0700, Noah Misch wrote: > A postgres.exe built with meson, ninja, and MSVC lacks the version metadata > that postgres.exe gets under non-meson build systems. Patch attached. I dimly recall that we discussed that and basically decided that it doesn't really make sense to attach this information to postgres.exe. > This preserves two quirks of the older build systems. First, > postgres.exe is icon-free. We could also just change that. > Second, the resources object is not an input > to postgres.def. I don't see what negative effects that could have: postgres.def is used to provide symbol "thunks" to extension libraries, which don't need to access this information. If we used the rc compiler to inject binary data (say bootstrap.bki) into binaries, it'd possibly be a different story (although I think it might work anyway) - but if we wanted to do something like that, we'd build portable infrastructure anyway. > - rcgen_bin_args = rcgen_base_args + [ > + rcgen_server_args = rcgen_base_args + [ > '--VFT_TYPE', 'VFT_APP', > - '--FILEENDING', 'exe', > + '--FILEENDING', 'exe' > + ] > + > + rcgen_bin_args = rcgen_server_args + [ > '--ICO', pg_ico > ] Somehow it seems a bit wrong to derive non-server from server, but ... ;) Greetings, Andres Freund