Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp263216ybm; Wed, 22 May 2019 02:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQSMVw6A0WvPIiDz5fmWVphBrA9ZxUTwH+SmCKo/IY5PTVBPO2IDfJHlQdLJdq2MiPDQJY X-Received: by 2002:a63:2226:: with SMTP id i38mr14247348pgi.403.1558518317457; Wed, 22 May 2019 02:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558518317; cv=none; d=google.com; s=arc-20160816; b=aUhkE1iGDuWckTvofxrpdnF8aoBhopmEwcBszXGp98rtyl4z78c014O+Vuh4Sw1V1p 0MMSp8bo/A+kjakCgbLuGT+YWzmoHOjvSxqJxvdcXCOeqNTEtr31TlqZnwLggTj5G0Uv j7aTRAbNxwwxr5kscqqtzI6zsXcmioG5IKfc+0yw1heoZgydEmWSYEGcetNoNNcpOQTI Y/kEMpoWHrX0jkAc44lNEPTfkmCtVSLkL8/R+Dkk5z7/DfWWwYQGYoBx7E5QlD3hwibF dIWHX5Fh9Rjieb3jwltzWALYqjqpQknqDtaCtPWXxwbpAz6pJcPWj2I9j/CeFZPALF/e zFxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PrB8bjazqrKTtujd36+ScpTpMElxgI18Lk1sVXG1EeM=; b=p94tG1v2MKwVbF1UOi32aRtGvf5d224I44w8rj9naM23xhMexaYBR1nVlu64h6KgvS 9pjwItHn7YDSTxmWvrKYHVeZk9iFvw6udiDpeRbxebkDhLG+rKANAUs0AxCvlloEVpK4 IZcmVV5qGGlRBkfHbhjrzocBQgfKhXqGb4usBurC8iGfUtjcbpQ+GgRzllraPp498Nxo F6I67pbyYoj0FITwkUR1CEBdcPzWhK15Rzty1lxJ9mctCO/VjvGivGtm2kCBMWMVGAp/ Kev2R7H7MDZMPc/OAnGjF4Ya6iw7tXOcR2T4INwiH0ug2sfSOxfQImyZI5x8wYkhxicP /dag== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si7640711pgk.500.2019.05.22.02.45.01; Wed, 22 May 2019 02:45:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728743AbfEVJn5 (ORCPT + 99 others); Wed, 22 May 2019 05:43:57 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:32801 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbfEVJn5 (ORCPT ); Wed, 22 May 2019 05:43:57 -0400 Received: by mail-wm1-f68.google.com with SMTP id c66so4292929wme.0 for ; Wed, 22 May 2019 02:43:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PrB8bjazqrKTtujd36+ScpTpMElxgI18Lk1sVXG1EeM=; b=hIetolzazur1SGvFSXhMU2z2eymdPQmVHd7Rz0mQykHyi5Q/f7nXhg+AxR/sFxDBpI CjRvmlGSnNPF9ezoR3yEakcnCaFGdMcXJlKRzvdgkduF6OtPAuH7eSbSwO4cSJFFgrQv HLKguGQM+SKQ5uAH34SzY95PFeAP4dOTlDwJ/xgb3UWcv6dgcIqcqi67ZiL26HYR7pKw blcZKc+xRhqhfzPATm2Jm94I6DdjiAG8eUnGjqE8KUoKU7WF8NEYG5NjDisfKUggsglN 6DYRDfUBNxGY+Ham9SXjhD9tBjIRtgupuxwT2w5XCmCKYVro0gocYYy5jDgIhnI9p6ZK VM7w== X-Gm-Message-State: APjAAAXsaKkMo7jhW04HVmsQuiQlXgYElXzOxrVd2mdrSq1Fpm8Gkhlk HwnDTqfArpbcq0WEZmkFWmZV0Q== X-Received: by 2002:a1c:a804:: with SMTP id r4mr6672470wme.21.1558518235860; Wed, 22 May 2019 02:43:55 -0700 (PDT) Received: from localhost (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id a5sm22071464wrt.10.2019.05.22.02.43.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 May 2019 02:43:54 -0700 (PDT) Date: Wed, 22 May 2019 11:43:54 +0200 From: Oleksandr Natalenko To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula , Markus Heiser , Mauro Carvalho Chehab Subject: Re: [PATCH RFC 0/2] docs: Deal with some Sphinx deprecation warnings Message-ID: <20190522094354.mnolo6bh6yeiza5h@butterfly.localdomain> References: <20190521211714.1395-1-corbet@lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190521211714.1395-1-corbet@lwn.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 03:17:12PM -0600, 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: A minor correction, if I may and if I understand this correctly: 2.0 is not an upcoming release, but a current one (2.0.1, to be precise), and this means that in some distros (like, Arch [1]) `make htmldocs` is already broken for quite some time. [1] https://bugs.archlinux.org/task/59688 > > - 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. > > - 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. > > 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 > > -- > 2.21.0 > -- Best regards, Oleksandr Natalenko (post-factum) Senior Software Maintenance Engineer