Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp45344ybi; Wed, 29 May 2019 16:21:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL2W0nNti6+F+bq+dxofS8wWkxUnrGhYHwG2HxAQ9wm0abRd09uVFexWOa84GAugHhof2r X-Received: by 2002:a62:3085:: with SMTP id w127mr292111pfw.170.1559172099887; Wed, 29 May 2019 16:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559172099; cv=none; d=google.com; s=arc-20160816; b=u7MMUngIfaIr1envKd2hYW+2iArKAuhn9e3AKvrVxv9W/4CLGBPMg0mBk6ZLttPCF/ 3ZQbnsSvdIuPg6g5VRBYmyF6Ebtg34tNkf7OysXSctNnqd3SlIMZoQA/MV4EWYPxPU7o 5HtEtxhOLgnFuM+XsVyOaBR6K0w0t1RPoZtEgO8PTd7oANpxKatPtwD+DBbjUUCZRmMU NxupBXz+WIAMjPkDDEOKvQJqFTD8+apsId5KOVsZaEZAkkZh8EWyfoxkXW45Ytex18WL DqqWtT9QHI0ogSH+zGVYgfu5MV27SKlKSTLQ/4TMW+sTl6+y+0CsGvSr9ku17l9hUl72 bW1A== 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=HxAos5nfvGsI/xjg+zDGTU3seNu/Mutb6DCGcKjvXw8=; b=fZ/AD1auQ42Srs0xsiINdyqUhZhF51SspvpiUtgfOYTAKdAQWhYXytRBKxOVfZCfal mgUXP2H509hx5t97yOTyKInvVCi0XDczNiPXgfgqU2hcr9fXrUTJhQA7PJwEowD8Kw+N sNfV+kQ03ecjAb0gpSNZNKrig1K/Uf0NAI4isoyhQR/fgRnoSpvR6gw3TjNmKZS5nSaP lzwNVIgXiNGTo5XKkvD85fy2JxOt5z++z8WmaK6FdEb8lSf3kOpcIHUZz+CPNreI1RkK tBu0F1H/GdOzwyP77T6Q1kPF0omzh5/4rouaoqC2+2m0p1yQ92ETQaB1JdJEs0opw7xY GZUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="L/HjP6UG"; 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 f6si1368117pgg.207.2019.05.29.16.21.23; Wed, 29 May 2019 16:21:39 -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="L/HjP6UG"; 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 S1726546AbfE2XUM (ORCPT + 99 others); Wed, 29 May 2019 19:20:12 -0400 Received: from casper.infradead.org ([85.118.1.10]:38662 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbfE2XUM (ORCPT ); Wed, 29 May 2019 19:20:12 -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=HxAos5nfvGsI/xjg+zDGTU3seNu/Mutb6DCGcKjvXw8=; b=L/HjP6UGpJkvCYRqZTyA1WFFKR WxnIrcPjYcS5QRbPWQD9qI7L8w/f17R4osvGmBYeMmT1GYAi4Dfytxp2sxncOp9RKOwxAXcIuVTLH HaMQGsPRBYBqEVD+amoV3g3gJKEIxzzPM6hpWUYmibTFMPohDjnAPdgtHUgIdrMF/nTl1imZGWkEn +dlFFOaxRz7p2OQL7nWafEBzYG+WB+O4bUwbOqcqrL75JQqARBsAMAhqQcwsgqfgVSoUvECaVR42B 3mqMmg6Hgtjj65Fps7/+8J897Lh7cIDqt9opaFmKTP7BjNWvAckmPN/lr1V/4Aya24GszmI4Ps8U+ 9jKdW0Kg==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7rd-0004DZ-JC; Wed, 29 May 2019 23:20:09 +0000 Date: Wed, 29 May 2019 20:20:05 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] docs: by default, build docs a lot faster with Sphinx >= 1.7 Message-ID: <20190529202005.04dcd4a0@coco.lan> In-Reply-To: <20190529170202.65c7f9ca@lwn.net> References: <20190529170202.65c7f9ca@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, 29 May 2019 17:02:02 -0600 Jonathan Corbet escreveu: > On Mon, 27 May 2019 08:07:40 -0300 > Mauro Carvalho Chehab wrote: > > > Since Sphinx version 1.7, it is possible to use "-jauto" in > > order to speedup documentation builds. On older versions, > > while -j was already supported, one would need to set the > > number of threads manually. > > > > So, if SPHINXOPTS is not provided, add -jauto, in order to > > speed up the build. That makes it *a lot* times faster than > > without -j. > > > > If one really wants to slow things down, it can just use: > > > > make SPHINXOPTS=-j1 htmldocs > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > Documentation/Makefile | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/Makefile b/Documentation/Makefile > > index 380e24053d6f..794233d05789 100644 > > --- a/Documentation/Makefile > > +++ b/Documentation/Makefile > > @@ -28,6 +28,8 @@ ifeq ($(HAVE_SPHINX),0) > > > > else # HAVE_SPHINX > > > > +SPHINXOPTS = $(shell perl -e 'open IN,"sphinx-build --version |"; while () { if (m/([\d\.]+)/) { print "-jauto" if ($$1 >= "1.7") } ;} close IN') > > + > > So this totally fails to work for me with any version of sphinx, and I'm > not enough of a Perl person to figure it out. Sometimes I'll see the > sphinx-build output, i.e.: > > sphinx-build 1.8.4 > > and sometimes (like with 2.0) I don't, but I never get -jauto regardless. Hmm... with 2.0.0 --version prints the version. $ sphinx-build --version sphinx-build 2.0.0 Afaikt, only too old versions will output it with a different format: $ sphinx-build --version Sphinx (sphinx-build) 1.2 > Not sure what's going on here? Do you have SPHINXOPTS already set on your environment? If so, Makefile will not override the existing environment. Here, if I call it by hand (replacing $$1 by $1), it does the right thing. For example: 1.8.4: $ sphinx-build --version sphinx-build 1.8.4 $ perl -e 'open IN,"sphinx-build --version |"; while () { if (m/([\d\.]+)/) { print "-jauto\n" if ($1 >= "1.7") } ;} close IN' -jauto 2.0.0: $ sphinx-build --version sphinx-build 2.0.0 (sphinx_2.0) $ perl -e 'open IN,"sphinx-build --version |"; while () { if (m/([\d\.]+)/) { print "-jauto\n" if ($1 >= "1.7") } ;} close IN' -jauto Thanks, Mauro