Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp296512ybm; Wed, 22 May 2019 03:21:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMgyR3BBm32G+NVfwosHomM7pO0xMgjYJvGpcRfJh2mdMyOq7K7wMnoySVYN7Gqt4GJq9t X-Received: by 2002:aa7:8c12:: with SMTP id c18mr96858228pfd.194.1558520516394; Wed, 22 May 2019 03:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558520516; cv=none; d=google.com; s=arc-20160816; b=KhEYOlToBf5wDOwsIE2stUGSfTgI9Jkju/bzNxkeGNePzBi5BREUtbA6+VRXSPA+UA mSyxUhMJuDPJOgtxJ6zE317H+cL5IOZBdPMHGzw76fenG5k46kM5QWyYxhuG2RdqczMX m6VRVVOF3kt2ko4V97F84tYGVpxZcuJ3rWH6A5fwNIMYrv4M69JxVlVuZ+Bo7puXu2Ss WpRL4SuROPlknIUKM19GTys6P/LyYHUK8+jCxW/WMisGvrYPiEsjgj8E0Dr1HbzN9o6e A74e1N8hfb/rYWu7l49y6HB4oHceyyu6h4WoXtaV19gQBCcNz/Ig/NVZuinUNyVeoy2x xIkQ== 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=MNNWQkMpAeP5cdL0iBQSICJkN4ZWR11nVvJgfc6zMgU=; b=Zserf85bq+rfAA1PYV61hQhXiqubV5rhVagNbel4OTKh/dItanJ7I4ltsWXj3+z/6J 1Xt0PNi4RGeCY7JHGFtX/F3jVOFamhmek/zMXe235d5v+J6OcufmsxLwcORTT7uR0kW5 JfUkt/jrUeWusWLclGshzQ44LQHGhNIqUR4tPr1ID3OBGY0LiBsFu1suquK2iW9/gGQT RXvhgTmUIrnLaDIRo5rhS5bThXn3DwkntohOYLK+5tY4nszjyhBmSw02apD4Phf1pn+w kx+o80c+Wv/I7QI5kh8KETwRpW07c1NCUmz6nL9gW2bPO/wi00J6NyGQGNuEBJ5fE7kO HQSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=iNFlpcrN; 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 gn2si7180740plb.34.2019.05.22.03.21.40; Wed, 22 May 2019 03:21:56 -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=iNFlpcrN; 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 S1728975AbfEVKTW (ORCPT + 99 others); Wed, 22 May 2019 06:19:22 -0400 Received: from casper.infradead.org ([85.118.1.10]:51686 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728424AbfEVKTV (ORCPT ); Wed, 22 May 2019 06:19:21 -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=MNNWQkMpAeP5cdL0iBQSICJkN4ZWR11nVvJgfc6zMgU=; b=iNFlpcrN1RcMAP1iO9D+A4S/Ag Zdb4xTBd5u2hyuKpRMdb1cBJ2KS3URlwrQ79ofcRaMCLyOaPEY4p1YVeTPAPSBi9QGWl1dDCnwW/O /fMS7VXOzwbus5RYrWpOh9Hgtsof93tLpwnoaPUrWYh29iMHbzBh43bvqRpdzD5CAumypchvCZEXK JYN8Mca7dBM+1GucZlfls2sald9v6iDlohzoERJWaj9pEn6hXF23fCstUVdRU1g2V3zA5cSv2oxT7 McC4bzthb3qv4iEsiVfwdhx05Nb+62YhxmAgzDZ7F41flsimsXAMMhFVsAjLlWMrX6lbn24lFqboM zYHD2v9g==; Received: from [179.182.168.126] (helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTOL6-00062F-7v; Wed, 22 May 2019 10:19:16 +0000 Date: Wed, 22 May 2019 07:19:09 -0300 From: Mauro Carvalho Chehab To: Jani Nikula Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Heiser Subject: Re: [PATCH RFC 0/2] docs: Deal with some Sphinx deprecation warnings Message-ID: <20190522071909.050bb227@coco.lan> In-Reply-To: <87d0kb7xf6.fsf@intel.com> References: <20190521211714.1395-1-corbet@lwn.net> <87d0kb7xf6.fsf@intel.com> 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, 22 May 2019 10:36:45 +0300 Jani Nikula escreveu: > On Tue, 21 May 2019, Jonathan Corbet wrote: > > The Sphinx folks are deprecating some interfaces in the upcoming 2.0 > > release; one immediate result of that is a bunch of warnings that show up > > when building with 1.8. These two patches make those warnings go away, > > but at a cost: > > > > - It introduces a couple of Sphinx version checks, which are always > > ugly, but the alternative would be to stop supporting versions > > before 1.7. For now, I think we can carry that cruft. > > Frankly, I'd just require Sphinx 1.7+, available even in Debian stable > through stretch-backports. We can raise the bar and force a 1.7 or even 1.8 (Fedora 30 comes with version 1.8.4), but I would prefer to keep support older versions, at least while we don't depend on some new features introduced after the version we're using, and while our extensions won't require a major rework due to a new version. > > > - The second patch causes the build to fail horribly on newer > > Sphinx installations. The change to switch_source_input() seems > > to make the parser much more finicky, increasing warnings and > > eventually failing the build altogether. In particular, it will > > scream about problems in .rst files that are not included in the > > TOC tree at all. The complaints appear to be legitimate, but it's > > a bunch of stuff to clean up. There is a flag to cleanup the warning about a file not included at a TOC tree (:orphan:), but it will still try to parse it. There's also a conf.py way of doing it. For example, you can exclude an entire dir: exclude_patterns = ['includes/*.rst'] But using exclude_patterns will likely be too messy. > I can understand Sphinx complaining that a file is not included in a TOC > tree, but I don't understand why it goes on to parse them anyway. Yeah, this is, IMHO, a very bad behavior. > > BR, > Jani. > > > > > > I've tested these with 1.4 and 1.8, but not various versions in between. > > > > Jonathan Corbet (2): > > doc: Cope with Sphinx logging deprecations > > doc: Cope with the deprecation of AutoReporter > > > > Documentation/sphinx/kerneldoc.py | 48 ++++++++++++++++++++++++------- > > Documentation/sphinx/kernellog.py | 28 ++++++++++++++++++ > > Documentation/sphinx/kfigure.py | 38 +++++++++++++----------- > > 3 files changed, 87 insertions(+), 27 deletions(-) > > create mode 100644 Documentation/sphinx/kernellog.py > Thanks, Mauro