Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp68230ybi; Wed, 29 May 2019 16:49:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9Xf9dxEkEkTEoQxQbToNya65o6BdcwgeFh81NYeNg5GzH46TsMi0IxTSxaqvc2eB3RkU/ X-Received: by 2002:a65:5684:: with SMTP id v4mr803783pgs.160.1559173792240; Wed, 29 May 2019 16:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559173792; cv=none; d=google.com; s=arc-20160816; b=ovfXxYnpjUkCQESs+r3QvA3gUR1Mn99LvvRpdm1ILHhWrq6tALKcJO4d+AiZsbvdwW OOj5SbyMCnAXN5kifOxJpQjjktLz5+sn3hYYh+D5WL0N9BU+O7qLWKV7lTz4cy3JnQit 0X9brrD3nRs9A/jkh266lfacEQcRzuL/yYZvAqRF/gTwO82du8aRafLHSdTa+8b/O+1E VHTZznIRxdcmyBUc/0oEzt42+QrcVeGrLk1D34x9esY17FfkGdMUn7Nd5ttyiTmVQZ8Z mZijhyUw6vhZLhcMTChUJUR0ozyitts5kH1O+Q39KeLyY7kEr6MdKPZn705uBuKVUfk8 laVQ== 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=U3tK8Si3ltOKajV3pS56IhS9WUU1C6u+61oxmLO1yt0=; b=Dg4XyldRUS1XTZ7LXlaH7QZX+GdOMCzbw7rN1P1LTrwd24WV+t7nu6p2rUaFYuGUIV c8FlgomI8Dllu2YbsL3nx68cFOrttFBQjEcKAQ/h9Bgq/UwXvwxIc7ha111h47Gle/sW jxx0mJgWWkCwWyBmuxbpg7BA/5pDv0ke3PRVRjAWBNYiHb2QSku2AItRhXZRjc3ObCR/ m5XBdi1Xpb/odvFXAEjGfLVCY8qzlvuUr8nbfAQ1XIRvAQzpZA3l1rq9DI2s0lO9bCXH qa+AClc9+sw/SmfBV9+aUmLenl/1Cc72jJwaMgeg1OprkBJIdi4bJXsRp0UONC9O9LpE wVwA== 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 o4si1385168pfo.92.2019.05.29.16.49.34; Wed, 29 May 2019 16:49:52 -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 S1726604AbfE2XrS (ORCPT + 99 others); Wed, 29 May 2019 19:47:18 -0400 Received: from ms.lwn.net ([45.79.88.28]:44142 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbfE2XrR (ORCPT ); Wed, 29 May 2019 19:47:17 -0400 Received: from localhost.localdomain (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 0A0CD6D9; Wed, 29 May 2019 23:47:17 +0000 (UTC) Date: Wed, 29 May 2019 17:47:16 -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: <20190529174716.4f0e21ad@lwn.net> In-Reply-To: <20190529202005.04dcd4a0@coco.lan> References: <20190529170202.65c7f9ca@lwn.net> <20190529202005.04dcd4a0@coco.lan> Organization: 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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 May 2019 20:20:05 -0300 Mauro Carvalho Chehab wrote: > > 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 Yup. The point is that I see the sphinx-build output *in the docs-build output", not when I run it standalone (where it does the expected thing). > > 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. Yeah, I had it set to -j1 because I want to wait as long as possible for my docs builds :) No, I didn't have it set separately, made a point of that. > 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 $ perl -e 'open IN,"sphinx-build --version |"; while () { if (m/([\d\.]+)/) { print "-jauto\n" if ($1 >= "1.7") } ;} close IN' sphinx-build 1.8.4 $ It works properly with 2.0.1 - but only on the command line; I still don't get the right behavior in a docs build. Most weird. This is an Fedora 30 system, FWIW. jon