Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1050188imi; Fri, 1 Jul 2022 01:51:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNDub5SA2LoBg4ldmAo8zZSgUjH92/37pf8xkUzRQ+fVU09U4fDQijTecmf4QCYMT+Zi8y X-Received: by 2002:a63:4710:0:b0:410:ac39:831b with SMTP id u16-20020a634710000000b00410ac39831bmr11493088pga.395.1656665471349; Fri, 01 Jul 2022 01:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656665471; cv=none; d=google.com; s=arc-20160816; b=zGgqfV0F/KPAE7f9h2nCH+Vmquw5SRrmiyovy2nCHZbpGM7tCt31jaGh8PoFTvqc6p R2Cl/hn2JlUuLcAQQlZr4+WmG+qiLBDZlvWCU89KTY5s2YhOpcWELYSDK9mwMwVjj9Ll nObCi8VvvvGAxuaD32JXleSk68qMBcQyyqZZmjjESt7IQaVtDzteg7EIjCISuqfJNL/G g5oYtX0cAehOE523f3WxJppEpVTEdqY1It0BLEgSFs+H23+fXoUH4XvYwOSIhC/aOwYO loy1LwM5x1QFCRnoQ+KcpCFz8iWm3AzT8smjuYxY5M+ZuJDBNTHXeKo/zU6WWRehOv+W uJWw== 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=J0HKS1olynD3Ef20eOJBNsAapsyRHizlD8qc8B0xc30=; b=bKTafRTyCLQ7gy1H7okEFJMGbwr+beUVz9T63j7+HfsHv8qShMAhL4BthVSrWc+YuL JYOC4ijMzWPu8VeS78Sa1RAMnD4zWZxl43Q9bGj3yp2r5crxcwEAg1IYuDBfmnRaxRpN Bqu8IPhIGwMoSLDoaMf9FtxQblfPTp3ge8OZaTDHHe9O/Ir+/tqJisS4IR4x9ov/r+Wr 41fafG62gwZpM2ol4jngx3rhS20xk2Sj6xq3AuwO7HO0aa17BP9QUltuyNaynTh4e3rq M73shwrD6hULLAYmRT14efaXx9hmNcT8XoTCnT6INA9FPfdujaFeItsvBGqFj93OAo4/ hB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DFxRs9rO; 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 b16-20020a170902d51000b0015e583f7b54si36625237plg.14.2022.07.01.01.50.59; Fri, 01 Jul 2022 01:51:11 -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=DFxRs9rO; 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 S235911AbiGAItZ (ORCPT + 99 others); Fri, 1 Jul 2022 04:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232946AbiGAItL (ORCPT ); Fri, 1 Jul 2022 04:49:11 -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 332567393E; Fri, 1 Jul 2022 01:48:56 -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 C0FD36223B; Fri, 1 Jul 2022 08:48:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E63BC341CB; Fri, 1 Jul 2022 08:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656665335; bh=pVzRk2aOjBqChxhGbyCkErNxF6Xl2nyq8gDIuD1VAr0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DFxRs9rOQ9H4j3Skeg9fNug+kN8gVWr/U7RHSaZDz6vh1bSPdcpQw6WmxQOjDNcgm LIBQsp/E+IjQHCybJZzXvQbaY5FHMK2bWiSoVLOHp9YbG27Q27n5OqQhIDIkF8UXEH NUfJCn1WU4sj7dyPSFcfA21+uetXFu4xl+9xHwL7IAPIxkXCjdCU/6T/pkiR8piOBl BSJFxw41l/Irj3taBZYQW2ISaaTAjqlfyzCXfD7dapDJAwa9ca4Uw9Pfc+wXr2i2MZ PHuCcppiGeS3zeopc/jjJJ3YIeYqCl7lmwpzv7mHlqf/INmosSWHLvW9lO0DszrN05 1SDLTFvFGRI5w== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1o7CKZ-006T9H-Rw; Fri, 01 Jul 2022 09:48:51 +0100 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , ksummit-discuss@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] scripts: sphinx-pre-install: check for PDF min version later on Date: Fri, 1 Jul 2022 09:48:48 +0100 Message-Id: <3f8199555a432aededab38b1df7750ebba07d35c.1656664906.git.mchehab@kernel.org> 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 Cc: "Jonathan Corbet" Cc: "Mauro Carvalho Chehab" Cc: Jonathan Corbet Cc: Mauro Carvalho Chehab Cc: ksummit-discuss@lists.linuxfoundation.org Cc: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Better to add the PDF note late for venv recommendation. Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH 0/4] at: https://lore.kernel.org/all/cover.1656664906.git.mchehab@kernel.org/ scripts/sphinx-pre-install | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index 18537e5af692..930a6d058c12 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install @@ -785,12 +785,13 @@ sub recommend_sphinx_version($) { my $virtualenv_cmd = shift; - if ($latest_avail_ver lt $min_pdf_version) { - print "note: If you want pdf, you need at least Sphinx $min_pdf_version.\n"; - } - # Version is OK. Nothing to do. - return if ($cur_version && ($cur_version ge $rec_version)); + if ($cur_version && ($cur_version ge $rec_version)) { + if ($cur_version lt $min_pdf_version) { + print "note: If you want pdf, you need at least Sphinx $min_pdf_version.\n"; + } + return; + }; if (!$need_sphinx) { # sphinx-build is present and its version is >= $min_version @@ -837,6 +838,10 @@ sub recommend_sphinx_version($) printf "\t. $activate_cmd\n"; deactivate_help(); + if ($latest_avail_ver lt $min_pdf_version) { + print "note: If you want pdf, you need at least Sphinx $min_pdf_version.\n"; + } + return; } -- 2.36.1