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 1oVmu6-0004V2-Cn for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 04:43:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oVmu4-0005wV-DU for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 04:43:08 +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 1oVmu3-0005wL-Dy for pgsql-hackers@lists.postgresql.org; Wed, 07 Sep 2022 04:43:08 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVmtz-0007Oa-Iy for pgsql-hackers@postgresql.org; Wed, 07 Sep 2022 04:43:06 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 62BC05C0097; Wed, 7 Sep 2022 00:43:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 07 Sep 2022 00:43:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm2; t=1662525782; x=1662612182; bh=6 hpzWjjm9NfQw0rMH20nkZWIAgvHq1UvnVdBNxJp4sY=; b=jeAYajJKMPnVgmrUP AKpRSeO4L1OXXB0bkHZpoceXfMQmYFgnYCLxbAxD/WAle4yL8qG5tLp/EqzjR4IS wYdUEYLOXrPuzSlcoA8xL0Lfk/SmUI6UKfDKPpcRwpG5ui5pR1FSo5kOSTFyBnTL VGiPZJzoCeOArHZlKSS5Y+yjBy2kqNgJnh6VCarJe5a/JowhopKwdN8ZGZaFsQdV IQA8iG0WMG9w8yxlEqNEI8876Kd70gtvg1LjCvzXhstLNDEIJS2PUDfMg/NAaL3z VY0Icsr3XDuA6pznxqa2FUiuem9uB6FhDlRO3otOflRbBl65N/B4ciN84Hoyrugi 7q7Bg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelledgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Sep 2022 00:43:00 -0400 (EDT) Message-ID: <1cef5b48-32bd-5cbf-fb62-fb648860f5ef@enterprisedb.com> Date: Wed, 7 Sep 2022 06:42:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: windows resource files, bugs and what do we actually want Content-Language: en-US To: Andres Freund , pgsql-hackers@postgresql.org, Magnus Hagander , Andrew Dunstan , Kyotaro HORIGUCHI References: <20220829221314.pepagj3i5mj43niy@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20220829221314.pepagj3i5mj43niy@awork3.anarazel.de> 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 30.08.22 00:13, Andres Freund wrote: > 1) For make based builds, all libraries that are built with MODULES rather > than MODULES_big have the wrong "FILETYPE", because Makefile.win32 checks > $(shlib), which is only set for MODULES_big. > > This used to be even more widely wrong until recently: > > commit 16a4a3d59cd5574fdc697ea16ef5692ce34c54d5 > Author: Peter Eisentraut > Date: 2020-01-15 10:15:06 +0100 > > Remove libpq.rc, use win32ver.rc for libpq > > Afaict before that we only set it correctly for pgevent. Note, when I worked on this at that time, it was with the aim of simplifying the version stamping script. So I don't really know much about this. > 3) We don't add an icon to postgres ("This is a daemon process, which is why > it is not labeled as an executable"), but we do add icons to several > libraries, at least snowball, pgevent, libpq. > > We should probably just remove the icon from the libraries? Wouldn't the icon still show up in the file manager or something? Where is the icon actually used? > 4) We include the date, excluding 0 for some mysterious reason, in the version > number. This seems to unnecessarily contribute to making the build not > reproducible. Hails from long ago: Yeah, that is evil. > 5) We have a PGFILEDESC for (nearly?) every binary/library. They largely don't > seem more useful descriptions than the binary's name. Why don't we just > drop most of them and just set the description as something like > "PostgreSQL $name (binary|library)"? I doubt anybody ever looks into these > details except to perhaps check the version number or such. We do an equivalent shortcut with the pkg-config files: echo 'Description: PostgreSQL lib$(NAME) library' >>$@ Seems good enough.