From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id E26B5386486E; Thu, 20 Oct 2022 16:43:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E26B5386486E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.95,199,1661846400"; d="scan'208";a="85227820" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 20 Oct 2022 08:43:11 -0800 IronPort-SDR: Ze9ws4Q4dlP9WMgJEEosctZpoUsqH+CYDyrXuH66T3H9aisWEVf53dcaSqfwDFVGuqmA9bzJvF TW5Uag2GU8FZltTfmMpxsrQrD6qx8xJ86ZRVdFM+V1DDdAl7TPEUqpsspRFD6rKpjA4WMJ1H7R 7dRQ4ZwE+J8PdvooP1JMgSGGmS3XUma8TllUqJ0iipGbkEa63Q6F1OQX2C8inbVR3vaOnajp6D Ukb1i2jXXXaPQb35rf0EBCVM93lkhyAJG7uJcPpeJrH/wmbYMYts63EoMRw/yUVVqxeJ8z3bwz e/M= Date: Thu, 20 Oct 2022 16:43:06 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: =?ISO-8859-15?Q?Martin_Li=A8ka?= CC: Xi Ruoyao , Sandra Loosemore , GCC Patches , "GCC Development" Subject: Re: Announcement: Porting the Docs to Sphinx - 9. November 2022 In-Reply-To: <2a4347ab-40a1-2afc-f48c-6d8290afb7c6@suse.cz> Message-ID: References: <9975b774-46d7-8870-fd92-498f5ec50ab4@suse.cz> <9ea57a95-fefe-81a3-848e-ede0893f5b61@suse.cz> <8198573b-89e2-a232-3e33-0e5c4153c112@suse.cz> <494cee6fc68c06e039f46c3d6f8331a32e81ab5e.camel@linuxfromscratch.org> <7bae16bc-9069-4964-a80e-7ebff82e007e@suse.cz> <2a4347ab-40a1-2afc-f48c-6d8290afb7c6@suse.cz> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-828583273-1666284186=:71947" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3110.5 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: ---1152306461-828583273-1666284186=:71947 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT On Thu, 20 Oct 2022, Martin Liška wrote: > > Also, but not strictly part of the release issue: > > > > (d) Builds with missing or old Sphinx should work regardless of whether > > such files are in the source directory - but if they aren't in the source > > directory, the effect of missing or old Sphinx (detected at configure > > time) should be to disable building and installing documentation. > > All right Joseph, is it something you're willing to help me once we start > using Sphinx? Apparently, there will be many consequent steps after we switch. Sure, but most of the conditionals are *already* present, just need updating as part of the Sphinx transition. E.g. gcc/Makefile.in has BUILD_INFO and GENERATED_MANPAGES conditionals based on configure tests for whether relevant tools are present and new enough; the rules for $(DESTDIR)$(infodir)/%.info quietly allow the info files not to be present, so installing also works without the info files or tools to build them, and the rules for installing man pages similarly ignore errors; and there are srcinfo and srcman rules, enabled based on @GENINSRC@, to copy those built files to the source directory, which are what's used when --enable-generated-files-in-srcdir is used as part of building a release tarball. The main thing I've suggested that I think may actually be new is an error for trying to build a release tarball without new-enough Sphinx (I think the current rules would quietly not copy info / man pages to the source directory if build tools were missing - but having those tools missing when building a release tarball is much less likely than not having new-enough Sphinx). -- Joseph S. Myers joseph@codesourcery.com ---1152306461-828583273-1666284186=:71947--