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 1r98rd-00EW5U-DI for pgsql-committers@arkaria.postgresql.org; Fri, 01 Dec 2023 19:07:49 +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 1r98rY-0094jG-H1 for pgsql-committers@arkaria.postgresql.org; Fri, 01 Dec 2023 19:07:44 +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 1r98rY-0094j8-1V for pgsql-committers@lists.postgresql.org; Fri, 01 Dec 2023 19:07:44 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r98rQ-008Jnm-7B for pgsql-committers@lists.postgresql.org; Fri, 01 Dec 2023 19:07:42 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5c61d135d74so689795a12.1 for ; Fri, 01 Dec 2023 11:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1701457654; x=1702062454; darn=lists.postgresql.org; h=in-reply-to:subject:references:cc:to:from:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=fL5eWuPZ35IcyD6hapUSQKH+5kcAj1ekbrQ5DivQkfI=; b=PnpX6iLNPwcIuk4Dpm/wxfPLWvI6QsTVDA5JXOtCBPVPysfQS0zoBNt9b4mctU0TML FTVgJAfRq8khdm/mK3R3aGlE2ONdhy+5ZG28dPttKwnY9oQgQwVQjWQU58DA6F6eM3yL QFHqXdwEouV8j9KNxLqROi2w/uWR4ZKheFTn5jMIkjLjNqv4XtM4wEc42/xtnjn0Tz81 JkXLeL/nhmrQOpZvZIJwlWrOVLZ7VpICYNn/JKJ5e4R1tIZqcz77yY22HdIXkvn0UvNv IPNoWDeDGbZxt5BCNefTALO/T4iI0XfKdY3sVp8aXAXb0Mu1C9VsIbegmhdtsGavyFo+ rf+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701457654; x=1702062454; h=in-reply-to:subject:references:cc:to:from:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=fL5eWuPZ35IcyD6hapUSQKH+5kcAj1ekbrQ5DivQkfI=; b=fQUl42QsbrHenfQwzCFA7g6XJ5GRoc6yWHi+vwq76WnJ/wDE+l4t3FUBA+pdrxPKBQ PU1NLMgbctdOULxnPHI+yEA80dmZJCckmHXWG8SrulGc6pP/7kJS6fIQNr13v7VFBhIY /jBEE+91Ub3EAQ2wsw6DZfWYMCuyvDAiO2Ft4/Yul8r6elY1yFKrseE2tzDKbWgGoTzc Mx3oXB8MwvhXblIznUZRyKIY/r2Uzi+ujqEciw+PSrPdRCFGJz+rIaOBHoTdomrG7g6B xMBJS/a6SKOcRqt7zBAjFeWT8fF9WULzSRwEEBh2q3le0mB5xO9aoyqSAdIeP+j5pEp2 g/RA== X-Gm-Message-State: AOJu0YxF2noTbaGSqDvgU+ij5vChbWd1INuLyIu6yGGGFHxpkP2lHvDF n0s7QtSedBvggJ3Y7EwwUATLE0EaVpE27IoE+Tc= X-Google-Smtp-Source: AGHT+IF/4sK/PtwGbvvBfISfziFdP54xair7GBTpOlVO8I1ytSj2877qU38qNDx1aWsRuLe8X2wuXQ== X-Received: by 2002:a05:6871:e488:b0:1fa:a7d2:2985 with SMTP id pz8-20020a056871e48800b001faa7d22985mr52151oac.56.1701457575144; Fri, 01 Dec 2023 11:06:15 -0800 (PST) Received: from ?IPV6:2605:a601:91bc:f600::2bb? ([2605:a601:91bc:f600::2bb]) by smtp.googlemail.com with ESMTPSA id u9-20020a0ca709000000b0067a2a621fadsm279070qva.53.2023.12.01.11.06.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 11:06:14 -0800 (PST) Content-Type: multipart/alternative; boundary="------------0r0a67F3jl3pXNO0y22O0QeG" Message-ID: Date: Fri, 1 Dec 2023 14:06:13 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US From: Andrew Dunstan To: Andres Freund Cc: pgsql-committers@lists.postgresql.org References: <746ba786-85bb-d1f7-b613-57bec35c642a@dunslane.net> <20231129022843.6vfvgxjqpbgb62p5@awork3.anarazel.de> <703110e4-b495-e409-26a5-28e9fca8f3a5@dunslane.net> Subject: Re: pgsql: meson: docs: Add {html,man} targets, rename install-doc-* In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0r0a67F3jl3pXNO0y22O0QeG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2023-12-01 Fr 09:04, Andrew Dunstan wrote: > > On 2023-11-29 We 07:20, Andrew Dunstan wrote: >> >> On 2023-11-28 Tu 21:28, Andres Freund wrote: >>> Hi, >>> >>> 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. > > > and doing this has broken the docs build for release 16. OK, so this code is what I have now, and seems to work on both HEAD and REL_16_STABLE:         my $extra_targets = $PGBuild::conf{extra_doc_targets} || "";         my @targs = split(/\s+/, $extra_targets);         s!^!doc/src/sgml/! foreach @targs;         $extra_targets=join(' ', @targs) ;         @makeout = run_log("cd $pgsql && ninja doc/src/sgml/html $extra_targets"); cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------0r0a67F3jl3pXNO0y22O0QeG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 2023-12-01 Fr 09:04, Andrew Dunstan wrote:

On 2023-11-29 We 07:20, Andrew Dunstan wrote:

On 2023-11-28 Tu 21:28, Andres Freund wrote:
Hi,

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<https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2023-11-23%2012%3A52%3A04>
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.


and doing this has broken the docs build for release 16.


OK, so this code is what I have now, and seems to work on both HEAD and REL_16_STABLE:

        my $extra_targets = $PGBuild::conf{extra_doc_targets} || "";
        my @targs = split(/\s+/, $extra_targets);
        s!^!doc/src/sgml/! foreach @targs;
        $extra_targets=join(' ', @targs) ;
        @makeout = run_log("cd $pgsql && ninja doc/src/sgml/html $extra_targets");


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------0r0a67F3jl3pXNO0y22O0QeG--