Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp955039ybm; Wed, 22 May 2019 14:36:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLqgoJLLE1LW3U42eo/fjfyJ2h3PiOjh7x3g20vfzRMPxltcYTXK6A93p/fBokJ1q8Lu4p X-Received: by 2002:a62:aa15:: with SMTP id e21mr99666590pff.140.1558561000328; Wed, 22 May 2019 14:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558561000; cv=none; d=google.com; s=arc-20160816; b=cNOlK7iI+CQbEB26ypjaShTufnig5lcvzEXoVrpzhrF31xfL/9tTEaxzqwypQGHo8y Juf1GYSrvTxx/uLkDLHXfGYmyaDqLer1uGqZkEKD4LpC9awHB6rayXdqKTyZe9qH7G2A k/4tFq5eamVAkrHaD9dr8mtc61iPjQR/P9Oo/G1S2N1kSDDUgFtHM2sK2llic/cpKhKV bc4ipIt9+nAgWy1z/uMx8uqeW9beNRSXEWIQQv1019mwxGnzZZMIzt/SKK3nxdgAhMk9 L5/oF+q8I5NVXvPkUkmUL41udvJWqJXN0tLCdKy6KIEM9dWgrdsa5UGLN2qu06t2g7Ne y3SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pHTjN6wqc8g/ZIVk8Anky3A0M/XSsFSNE+YjZtKGi/c=; b=exiD8emtjl5MCKYSLfi5ahLKLRBqqB/yEVEhl3M/MRgwu3/gwU2kUs2Z2KZzmWklq4 VQmJOomOh+3f140sT/C+43WmuXEbEx5Lh0gRHsAEPSuE6bcmCpO5W9IPtXabFqfpOskt dIzbLErTmm+ySKdX/CJECRux2jaSBZ1sfbRIY7OE3P54eYCQbvtHZJiVvFbOnQ4xWUtO tGsL/+YgOBUE5CiwOVmcfffXfAw8KvZHFy4Ku7Teumjwvpm/bv90Py8oYH1CgEG8HqSt WeYXgNRz5R8DL/PyEA2GmRHzm4pn6ywDNA+C06Ui0mdf4RDiUxCNtv267cyRvztZsldG Qh4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=T1ea4h6n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si26414327pgc.152.2019.05.22.14.36.24; Wed, 22 May 2019 14:36:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=T1ea4h6n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729898AbfEVVfV (ORCPT + 99 others); Wed, 22 May 2019 17:35:21 -0400 Received: from casper.infradead.org ([85.118.1.10]:59032 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729691AbfEVVfV (ORCPT ); Wed, 22 May 2019 17:35:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pHTjN6wqc8g/ZIVk8Anky3A0M/XSsFSNE+YjZtKGi/c=; b=T1ea4h6nm160C0WMkvM1lESEY9 WXfv48hsTBFxwOSwjCtOO1+U/G1e53R5eWrzHofyLrtumixBqtfxzlz/vmPyMEoDWE7nb3xbEAlIj LfD7cOyZgAxbyzxYho2+bCd0v0q3MO9VL8R06BdwQAEV76ABsu2O9/wU/C6+D2NPmYWd/nibp5wbN k6fPfrFve/0vvs4B+03AcaU3pNy4uvKkDiVyQH2ZE1nbmw0lPYE6l1G5O7hC4nNzoyn3ElUeYzw3j +euH4npnrYlNZKB2quntJlQFqJft+TfmVbr5zvd7oC7paQdPPvTddHMtv+E4c7ytp3Hslw5qCN0Y4 BolVrh3A==; Received: from [179.182.168.126] (helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTYtJ-0006n4-5u; Wed, 22 May 2019 21:35:17 +0000 Date: Wed, 22 May 2019 18:35:11 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Markus Heiser , Jani Nikula , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/sphinx-pre-install: make it handle Sphinx versions Message-ID: <20190522183511.1c4a3317@coco.lan> In-Reply-To: <20190522143506.34049678@lwn.net> References: <20190522143506.34049678@lwn.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 22 May 2019 14:35:06 -0600 Jonathan Corbet escreveu: > On Wed, 22 May 2019 13:28:34 -0400 > Mauro Carvalho Chehab wrote: > > > As we want to switch to a newer Sphinx version in the future, > > add some version detected logic, checking if the current > > version meets the requirement and suggesting upgrade it the > > version is supported but too old. > > > > Signed-off-by: Mauro Carvalho Chehab > > I've applied this in the branch with my other fixes (coming soon to a > mailing list near you), thanks. I do think we eventually want to emit a > warning during a normal docs build as well, and to raise the recommended > version, but one step at a time... The enclosed patch should do the work. It will probably be too verbose, but it should be easy to add a "--silent" parameter to the script, making it only display a message with the version warning. Thanks, Mauro diff --git a/Documentation/Makefile b/Documentation/Makefile index e889e7cb8511..9c80105995e7 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -70,6 +70,7 @@ quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4) $(abspath $(BUILDDIR)/$3/$4) htmldocs: + @./scripts/sphinx-pre-install @+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,html,$(var),,$(var))) linkcheckdocs: