Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp29070ybi; Wed, 29 May 2019 16:03:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4qddAlMo+C2nsjR7diwtSMB40xqaEuRK4p1WOukrwK7QgkvAVHkZ2JPaI7JlKzsm8AA2Z X-Received: by 2002:a17:90a:cf0c:: with SMTP id h12mr444798pju.72.1559171020434; Wed, 29 May 2019 16:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559171020; cv=none; d=google.com; s=arc-20160816; b=VWCVV0V4eFrHshmWsbx5wqprZEPLcg4EmXZ/LMGKIviYzD76f8+qn/2R2mtlqZiEI5 e5u7NsYnuto8dCf0fnan+pqZR0LXxwEyFohCNQI6GZseDYdqxx2bY1ge3QIcVPL+OxxE Xr8mfJWgKzdCW6ABd7ERr+HhlDLG4IUHkbTRVlNhyy5kJmnxpicuqGVXf/HTKzzg9L/u g8kPzxyGs9fOKGKx/l93AgMULv/kpjzl6bZHoP+wBwEWfrX+fRQwCt2d6Wk7LcaHwCzm rqKDgZ45z9KVQbA1GTJY/zbwzkUjUWbr1+urnvnLf9wgl7xwGU5EWoY91yrUufbSkAnj yPLw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=hDF7rmkaxStiJ6XkOnu3XBcmHVjDScoMJ22jlcpyiOE=; b=fRrMjZEjBBvkPWZepqKTANLXNWOASQjEwChktjCJk3cKwRlyPaq9pZBX6DEfCKPNfh AheRyWDcPkn1tJMB4isKRlIBZKObgXN0M/wjkPl0PLqSbsK56vwyCNytiyUjYGYp/tWB ZusT4QeFHq9ClTB5aB6VTTQivpcyJUMGSt2bkgBzPxsTjqPNDYGMokbmI0q7k/TlHfIE 7IF8MiAGEJx/lb/ABm/4rUlmSWfYWy1rQ25d4oWXI1UNAZo7AgvymE4aCKlNX4SBVv4K sqTW9v/utY2oid641reQvdsQK+86eYA0H24krePu8jKi1JnLXUiuf3wmPJREDg5qPQpz znHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si1171885pff.237.2019.05.29.16.03.24; Wed, 29 May 2019 16:03: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfE2XCE (ORCPT + 99 others); Wed, 29 May 2019 19:02:04 -0400 Received: from ms.lwn.net ([45.79.88.28]:43954 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfE2XCE (ORCPT ); Wed, 29 May 2019 19:02:04 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id E8E952B4; Wed, 29 May 2019 23:02:03 +0000 (UTC) Date: Wed, 29 May 2019 17:02:02 -0600 From: Jonathan Corbet To: Mauro Carvalho Chehab 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: <20190529170202.65c7f9ca@lwn.net> In-Reply-To: References: Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Not sure what's going on here? Thanks, jon