Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp865163ybi; Thu, 30 May 2019 07:56:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPPy4ny4o0vthsvipazhjuA4d6r3eJ2xYfxyGpL5PNI+khW7mdk7/3oXlskxWXGUAU/RNc X-Received: by 2002:a63:f710:: with SMTP id x16mr4089734pgh.216.1559228211272; Thu, 30 May 2019 07:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559228211; cv=none; d=google.com; s=arc-20160816; b=xx9fIwr765ZMDNL54ac6ZgXSe/TMAXL8FGLvmkJmjapdw+Br/RljLm49wFfxStb/VK yZOdSLbeP9JVRBegPZxAyiKLu0u4PyIEmyQtth5MY15hGV/JpboXCkavZ/tm/vnZYEyR Ohr5TMzFua78yOePok1b2wgyCW/TboYDxAFIrIjxIitax4tQt0If4QPecbV0jJOT+Tcx C0ktKofgilT2hcetV1xghGGNIHmUYHmfSGwKDUJA4swHrUposyXzMOpoan6xQZum+BCa CTJzkzvdZrgpbEsHsarhOUt2kBh8dsBq+VVRAvzuNLs7dom4sM4K2nzkBYluXZX0Xk13 09Sg== 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=0voele1ybZBkwdn6EWd8axdXOtt7IYe+0iNOOVRSLzA=; b=Kmz4d8VPWnDymniyksbnj69lEM+LWLXMpJnKRjp+09GawSGpt4UQYb0HjrD1mF/o8j Ikalryv+7QiCqdtXpIQAyQ9afWvp+MZi0BMwaHz/Bnb++hkMOabk2yRSIYdmik4hFtd9 uGXxaSnHRm8XFax24aYuwMWw754blI3R4u0OU6M1StvyGrr4C8WWwcUA37/c9juTyHL7 mneRru1j53x8BelQjQ0XJYC9GGebFeQuC0dJTJPSEqpFGLzJS97MVvm9fevOPPYsKYCG s6DYSqsGmFGK8bWZNnOxm7kxgup8/85M1QL3fbCVR/q5qCGTkC9bpPCF8yOyaxDLCIrG FP6Q== 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 y125si3711436pfb.115.2019.05.30.07.56.34; Thu, 30 May 2019 07:56:51 -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 S1727582AbfE3OyG (ORCPT + 99 others); Thu, 30 May 2019 10:54:06 -0400 Received: from ms.lwn.net ([45.79.88.28]:57006 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfE3OyF (ORCPT ); Thu, 30 May 2019 10:54:05 -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 5DD576D9; Thu, 30 May 2019 14:54:05 +0000 (UTC) Date: Thu, 30 May 2019 08:54:04 -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: <20190530085404.54973d02@lwn.net> In-Reply-To: <20190529225305.213d8c36@coco.lan> References: <20190529170202.65c7f9ca@lwn.net> <20190529202005.04dcd4a0@coco.lan> <20190529174716.4f0e21ad@lwn.net> <20190529225305.213d8c36@coco.lan> 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 Wed, 29 May 2019 22:53:05 -0300 Mauro Carvalho Chehab wrote: > > 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). > > Weird... could some versions of Sphinx be redirecting the output of > --version to stderr instead of stdout? > > If so, something like: > > perl -e 'open IN,"sphinx-build --version 2>&1 |"; while () { if (m/([\d\.]+)/) { print "-jauto\n" if ($1 >= "1.7") } ;} close IN' > > would make it print "-jauto" with those other versions you're trying. That does improve the behavior from the command line; it seems that sphinx-build is indeed writing to stderr. BUT that still doesn't fix the docs build! To get the option to take effect, I also have to explicitly export SPHINXOPTS. So the winning combination is: export SPHINXOPTS = $(shell perl -e 'open IN,"sphinx-build --version 2>&1 |"; while () { if (m/([\d\.]+)/) { print "-jauto" if ($$1 >= "1.7") } ;} close IN') I don't have any weird version of make, so I'm not sure why you see different results than I do here. I can apply those tweaks to your patch if it's OK with you. > I didn't try the python2 versions, though. Interestingly, I would appear to have both versions installed, with python2 winning in $PATH. jon