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 1r8PQE-009ibX-Hx for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Nov 2023 18:36:30 +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 1r8PQD-00CNoP-0U for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Nov 2023 18:36:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8PQB-00CNo8-OD for pgsql-hackers@lists.postgresql.org; Wed, 29 Nov 2023 18:36:28 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8PQ7-007ymB-1Y for pgsql-hackers@lists.postgresql.org; Wed, 29 Nov 2023 18:36:26 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id E0CA05C02AC; Wed, 29 Nov 2023 13:36:21 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 29 Nov 2023 13:36:21 -0500 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=1701282981; x=1701369381; bh=Um 4yL88fx6vjSOLp2F1zan/Qux9olWcCRH3YCzMm9C0=; b=LCX06xpnvQ4B4gqVU/ ibm8Zun2rUjnxr4e754kdfcKKXW3avASFMU7hJdZzYByAhWYq95oc5QlppUzW3RJ Px5qZ9HqEWf5C2EHR9UHsSqDLqDhaT3jTBmxjeZ5mf8Uk/jovx81qNX8eYlSBftL MRAUA8zRQ+dYnOXy8Fv14bGFg6HfXShxGKROK/8GGau9A/on0Qa1nrsEnvcLFZGN oY0M5VHxSNekgEDLh5qnIB081zkVQr07ffxJskUYOy9SAFxCSgA/xLscxIA8T54B jcn7HHnnJZrOKYkTaiK6L3NnRVyYEVyebJgwLOHEu/lv6jYOCzl/27pibkUPPEf8 936g== 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=1701282981; x=1701369381; bh=Um4yL88fx6vjS OLp2F1zan/Qux9olWcCRH3YCzMm9C0=; b=EbbatRuXWdPLnidggV9MxT8KPah4I 1pOX6xpnPU/FeEuB7aDlQrq3jXpKteq9iJ2pxGE7sWsgcjZ9X1hRILNm7uWY/Tli K+BHdjkBfyhw1kVWHgvlGRgiTKgIX0S3oHOW8ALPlTDwl/AENSIWnpvLYBBoIK4+ a8Zi/8XnvWYp1XyxWJAzdAjA457HX3/g/nIG9284v7JhIxLqurFUtq/Pdr+RPSJR mfFauj8I+zxDDN1EA0uXVRBahP7XLD+DTwE7HJ90OFNy9MrDZAH1PBphscjWhXNw nvmy+IVmM57nSYPu8C1630ZSwCv4JjWkf2jUwd4TQqJUSbsguuIZgqGXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeihedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehmtderredttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpeefudetgeekffehveevleeuhfefieelledvveehueekiedtuedvffeh gffhleduieenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgr rhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Nov 2023 13:36:21 -0500 (EST) Date: Wed, 29 Nov 2023 10:36:19 -0800 From: Andres Freund To: Andrew Dunstan , Tristan Partin Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: meson: docs: Add {html,man} targets, rename install-doc-* Message-ID: <20231129183619.3hrnwaexbrpygbxg@awork3.anarazel.de> References: <746ba786-85bb-d1f7-b613-57bec35c642a@dunslane.net> <20231129022843.6vfvgxjqpbgb62p5@awork3.anarazel.de> <703110e4-b495-e409-26a5-28e9fca8f3a5@dunslane.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="fle3yklcbyd4qrts" Content-Disposition: inline In-Reply-To: <703110e4-b495-e409-26a5-28e9fca8f3a5@dunslane.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --fle3yklcbyd4qrts Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This started at https://www.postgresql.org/message-id/746ba786-85bb-d1f7-b613-57bec35c642a%40dunslane.net but seems worth discussing on -hackers. On 2023-11-29 07:20:59 -0500, Andrew Dunstan wrote: > On 2023-11-28 Tu 21:28, Andres Freund wrote: > > On 2023-11-23 08:32:21 -0500, Andrew Dunstan wrote: > > > On 2023-11-20 Mo 20:53, Andres Freund wrote: > > > > meson: docs: Add {html,man} targets, rename install-doc-* > > > > > > > > We have toplevel html, man targets in the autoconf build as well. It'd be odd > > > > to have an 'html' target but have the install target be 'install-doc-html', > > > > thus rename the install targets to match. > > > > > > This commit of one of its nearby friends appears to have broken crake's docs > > > build: > > > > > > ERROR: Can't invoke target `html`: ambiguous name.Add target type and/or path: > > > - ./doc/src/sgml/html:custom > > > - ./doc/src/sgml/html:alias > > > > > > See > > Ah, I realize now that this is from meson compile html, not 'ninja html'. That > > explains why I couldn't reproduce this initially and why CI didn't complain. > > I don't really understand why meson compile complains in this case. I assume > > you don't want to disambiguate as suggested, by building html:alias instead? > > > > I've done that as a temporary fix to get crake out of the hole, but it's > pretty ugly, and I don't want to do it in a release if at all possible. If we want to prevent these kind of conflicts, which doesn't seem unreasonable, I think we need an automatic check that prevents reintroducing them. I think most people will just use ninja and not see them. Meson stores the relevant information in meson-info/intro-targets.json, so that's just a bit of munging of that file. I think the background for this issue existing is that meson supports a "flat" build directory layout (which is deprecated), so the directory name can't be used to deconflict with meson compile, which tries to work across all "build execution" systems. Prototype of such a check, as well as a commit deconflicting the target names, attached. Greetings, Andres Freund --fle3yklcbyd4qrts Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-meson-Rename-target-names-that-conflict-with-glob.patch"