Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp167703ybi; Wed, 29 May 2019 18:54:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYVYl8nM5+2OW0hybvA9svO1pyLGLm0H6vg6i298giNOgPtTP0GJiS0F439ihGQy4rjiiY X-Received: by 2002:a17:90a:9b8b:: with SMTP id g11mr891089pjp.95.1559181273775; Wed, 29 May 2019 18:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559181273; cv=none; d=google.com; s=arc-20160816; b=eNAy3un0HC4s5b8Ig9fHdjza7RKSv3A3xqdtz4zWFTLhn5Ody78BDkIv/yd14lVhki bPu+fxhiHIJ9osaKPuirQXfdKQwkb9CntIYHc/fVYB/TVrfcE6bLnKUKB1CCR6RqTO1S 0+ZTY4iTKth5Yzd0zPE/XvjR/ZzPX+PR6nT0buRVCz+l+L5H4IVVlgduiR8TXMwc8IYI OjF5zZ0wfhgDlP23ppowW6BG52PUa0x5sEu1om8AEortniE1Pf5IrW/7xdlDvfUOMa6h va665Cb1fUsZBLCO9dx8DbALsvL5/hqbgCTuDYJksQMtapQxtdf8fber8yjK6mQD30Zm IpKA== 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=fCwm8alnbwX/xB7Ci+E1tlPcE/UJ0YinibQMNsn2oSg=; b=0/WxuHFrjsG5gf68GuaxdwtDV76ucWQr1Fe5bAiBvDv19C2grCHGBFtAKqNJzN7Ljd JEKLkNZaVhUn1smRDUmn7qrvlR93tXOxshzVivSlGmIT9ntkkB85+Nz9jWp7hZRMWlYb AHLnUUe1dJn+7F3jC6OHODBN/9ebAjI/Vzy5myviU3YXLIZinHTCUHrTxBX3RJjemp+O HsxmHx6u2FEEhzHnwqL/QRRPE2aTtqVy+qkfeWZUBvttiMAhupq6mUqqlkqChwdfkdkj 9YPIeXCtF4vyXjtBkpE0OT4KmmiPCeF6DOsjvtgwyrDqKkVwoyv8T6lu4732EXGLXpMu Uoew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ChtggQYj; 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 bg7si1628865plb.63.2019.05.29.18.54.17; Wed, 29 May 2019 18:54:33 -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=ChtggQYj; 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 S1727374AbfE3BxO (ORCPT + 99 others); Wed, 29 May 2019 21:53:14 -0400 Received: from casper.infradead.org ([85.118.1.10]:44700 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbfE3BxN (ORCPT ); Wed, 29 May 2019 21:53:13 -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=fCwm8alnbwX/xB7Ci+E1tlPcE/UJ0YinibQMNsn2oSg=; b=ChtggQYj5MM4I6juXBtPd++rCK 47zXILgRY3zNl9Lm3pXFKS7GrhYSV3bLmN2+og291ofYdP/gltHagZLC/xksZteOwkgRhiJyl33+d 9+3vXhZSi7rckEZCFRvn6cj5INFtLA3f9Uz+kkkzJT8KG0zM6/EZE3wQfOO5s3e2mjh4t6VgUH4OX ZFfwkbxKcjQ8fTCibEYF0MCUJZADsCSQVeKIur7oCVHA4c6BI5HjwCIYGf4cl28W5FXaK/2TVLpB/ k8jpGUfnko3+78q/U9g1C0K63cq6fJVYX37CVlyr8NcQrEgxbkZi+D5nULJjf/UqJQa6Q1t/JW7js AclIn1MA==; 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 1hWAFi-000846-4c; Thu, 30 May 2019 01:53:10 +0000 Date: Wed, 29 May 2019 22:53: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: <20190529225305.213d8c36@coco.lan> In-Reply-To: <20190529174716.4f0e21ad@lwn.net> References: <20190529170202.65c7f9ca@lwn.net> <20190529202005.04dcd4a0@coco.lan> <20190529174716.4f0e21ad@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:47:16 -0600 Jonathan Corbet escreveu: > 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). 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. > > > > 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. Yeah, really weird. Here I'm using Fedora 30 too: python3-sphinx_rtd_theme-0.4.3-1.fc30.noarch python3-sphinx-1.8.4-1.fc30.noarch It works with both installed version and pip3 virtualenvs. I didn't try the python2 versions, though. > > jon Thanks, Mauro