Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp649592imn; Sat, 2 Jul 2022 03:13:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5quSS2ZifUu9VVbn7s6Sk9dswbr8LDzyHqibCgQ4Ttj0YGqUA/REAW0rm5kiu3YITBvKM X-Received: by 2002:a17:903:20f:b0:16b:d01c:d689 with SMTP id r15-20020a170903020f00b0016bd01cd689mr2075241plh.92.1656756818100; Sat, 02 Jul 2022 03:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656756818; cv=none; d=google.com; s=arc-20160816; b=EtvRQ2fK5EHItYknB2AQo6qzsd9uoiYwEGqEjt0n9Wk+3keE8pJrjJnBJI2NKJtxbE GAuNKPcbZgS7X9RpJPnPiF/jXFr7rnTiyXZyTilQuGLCXWCJ3pY/7e59Wh1IR1iToDkG i/qiJsRtRrqA9brhb0oWGprtt069/s/XgvHQxvRNhOkNYKqJtBm58U5JXgE2P52IrYWN f9WM2U8MCVSY8aJqO9xOhloos2R0t7atioEnuX35D6TmiW4ZlW2/KQRiN42weIo6J3VE 7kTshvalCjG5kVQewWyFx3qcCXYN/gZjukEh4jSnNHnspSEfnGobRcVXO+MsLpamSTW/ hrwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ppj93md3TE65OSHAIATLtrOO6mgXMqjqsypwXfu+sAE=; b=GoxDv09C4osYzfjZBhCG9dYaMy0S2rheqndg/OMKDYXfw28GeY4BHPg3zg/HRmGyGe C1xgQW4zIpnlZxJvxnQmjkPkZ4dAkcyUx8jd3cxvpF3knGjWiFsoAz1L2xEe3Zn/yZyX +VBBG/pu3AMjfqHmsckpDjVvfP1k/OX2OUL9/Q/36XcyA+vc1vI5vKo/RIlM+KRj2JKZ Q15QBim7tZ0FD+S/c3H0UtOQl/FnSduL1Okkgz5PRE6vVRbtr33J2bOxnuQcVSuSRMCM +Iw5AFbRJXKlFTfjQDDMwuZe8yHY1hHahR+RipNBPfgEZ1TI3f6mA5kpoqNxd4KhqryR pFYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Iy/R/QTj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020a17090a55cc00b001eef74545bfsi13625429pjm.59.2022.07.02.03.13.25; Sat, 02 Jul 2022 03:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Iy/R/QTj"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbiGBKLk (ORCPT + 99 others); Sat, 2 Jul 2022 06:11:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231882AbiGBKLh (ORCPT ); Sat, 2 Jul 2022 06:11:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D8D418B2D; Sat, 2 Jul 2022 03:11:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8396F60BBF; Sat, 2 Jul 2022 10:11:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCD37C385A5; Sat, 2 Jul 2022 10:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656756694; bh=2cPnueYfcyPLeWd1Vx9za0f/VkxYofU2dhMu+bNUAP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iy/R/QTjg/Xw8RZ0M2F4IFIYYzB8jLqQe+kQ7RGpm5KX2RMNp2CDtqGNHMaWKOEDp sbAkRDv0ZVUoAsm+mDFLc5IEl4/RomYXe06lRm2ZS6QK7lxo55pjgbPjK+1jLxjH8T dgQrlU7wUshZZ8quhKVa+zK1qTYiuzdcGqY8nx8HvPFmM47s5fD32BE4RJ2jqM8clf X/BAk/4W9nstbwbVXAjkbHJ6vOXU6/6KciPdHmNvvRtEH92cRrNECy+VvzG51zKA3+ a1PZmGCCumW6kY4EHnvtyxIBGmKznijza3UgC7A7SQWZcPX0/v6VrLQVNI9LEeGavG zeIN0UU2iUl2Q== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1o7a67-007cMa-Kr; Sat, 02 Jul 2022 11:11:31 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , ksummit-discuss@lists.linuxfoundation.org Subject: [PATCH v2 0/5] Address some issues with sphinx detection Date: Sat, 2 Jul 2022 11:11:24 +0100 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Checking if Sphinx is available and read to run is tricky, and may involve installing several packages for the document build to happen. There are two options to install Sphinx: - via distro-provided packages; - via pip, using virtualenv/venv. Some recent discussions showed a couple of misleading instructions. This series improves the Sphinx detection by: - Fixing the logich with checks if a past venv is working and recommend just enabling it instead of installing a new venv; - Detect if sphinx-build stopped working on a venv. This may happen during distribution updates; - Move the PDF minimal version to be later, in order for it to be printed only after finishing the Sphinx version check; Additionally, as now the Sphinx provided on almost all modern distros are above the minimal required version, place instructions about how to install Sphinx from the distro-provided packages after placing the instructions for installing it via venv. This will hopefully help to have more developers checking documentation builds with make htmldocs --- v2: - Fix some issues at the logic that was recommending installing via distro-package manager; - Add a notice about Sphinx 3.0+ false-positive warnings due to a Sphinx bug. People using a version different than the recommended one should know about that. Mauro Carvalho Chehab (5): scripts: sphinx-pre-install: fix venv version check logic scripts: sphinx-pre-install: report broken venv scripts: sphinx-pre-install: check for PDF min version later on scripts: sphinx-pre-install: provide both venv and package installs scripts: sphinx-pre-install: place a warning for Sphinx >= 3.0 scripts/sphinx-pre-install | 90 +++++++++++++++++++++++++++++--------- 1 file changed, 69 insertions(+), 21 deletions(-) -- 2.36.1