Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1593310ybm; Thu, 23 May 2019 03:47:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwChuu0UjfHPa0d1hULcq+zgMG6eAkfJ5vQyRQNBwXvkrhIFoV1T12QLzHbkhcr7TJHI3jJ X-Received: by 2002:a17:902:e311:: with SMTP id cg17mr29227974plb.202.1558608444739; Thu, 23 May 2019 03:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558608444; cv=none; d=google.com; s=arc-20160816; b=IngVfmG6WRmhmUikMKAH57puzp0fC4h6LWVkuv97KM4ZBsA+/K6Ou6klYOd1+btZnO 6QATgf0CJ6ZApRe5q8KlMpPolGbXos8FApdRnZsTTuDFGheankSN8AgypfMgV+kJYmjA Na/sUAnUe9ixPxZur2lw/Q9zjLGmlilnXIbGYIc+rtWpyGqN74SZrsAt2ZaS9VEArKqf swKXeXqcxd+qt7lY5Gi2updC391U6rlIKbWjpqqflwIMoC4fLz51sJ3X5P13crk/ShIc 4+zSKRPGp1XSvEOt9YvANkWihb+1C/1FNvCDWXF7jHjDnqXR4j17NCCA77nugjM0S0lK WyhQ== 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=fjMPrd2+xzbd1Cr2J5ISSgp6rqzlaCnr5IwuSuxJoic=; b=U2AR5/M7QwyJiiQ1YmMLBwz2/JoKMUh/qyCfjdksOU7aHzsrmnSlnuoMYRYzbe2lAC aq6nuPD5u+lCgMobZTVIsdzuTNI6apM5UbEN1uIRJcMazovVQgx+KUJlVgfPpjRTusB0 LtF3jw8Ss8aQNA6iW9O9OEbnYhMvZAVII4y9YfKWv0Micdb5MEzd/xlz2nGQVQEetReg gX8sPhDzsfI6gS46V7ccnMuTYTWjfyjO00pgzXSkd8mW404920aTIxUoJABDpGEhJfs5 tAPdVoCSiU3pe4TrwOjko43OWNXHS1TQI8k3XkwOqHBe9S8YSROZWRFMwzYu9lDLdOW2 vZfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=fF1VRCpk; 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 d197si27203718pga.110.2019.05.23.03.47.08; Thu, 23 May 2019 03:47:24 -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=fF1VRCpk; 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 S1730034AbfEWKpy (ORCPT + 99 others); Thu, 23 May 2019 06:45:54 -0400 Received: from casper.infradead.org ([85.118.1.10]:44008 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbfEWKpx (ORCPT ); Thu, 23 May 2019 06:45:53 -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=fjMPrd2+xzbd1Cr2J5ISSgp6rqzlaCnr5IwuSuxJoic=; b=fF1VRCpk2egpSuxYOGeGtHi5dJ bLBlrF1R0dr9Bfi8daRRXn3xjd0rebJi33VBoTt/qEV1b8d/EcZqvO4p+DuXqqXCCVUP1zvRaHzS6 PU+jrvmSNcbzmnfByVsT6hEMg8ToT2v0NCGB2PS9jlbhG74wzHolzZxYI7pI1byzryoY1yZ19aJ2d UUWgdQ6gU9lH4IHX7yi0t30oI6fUuFIBLIJrsmz29NxLOpHgZ1pOEK1VVRN35832yo01I+sNA6wPU xRA1U3ZsZH6JixL/SUHw9g/PGNjTkuA2/uANSr8l/VxbvoxHy5yOUj+ZZm40/tWst9IlD9ENn4i7O PWNCQf/g==; Received: from [179.182.168.126] (helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTlEM-00020w-IN; Thu, 23 May 2019 10:45:51 +0000 Date: Thu, 23 May 2019 07:45:45 -0300 From: Mauro Carvalho Chehab To: Oleksandr Natalenko Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula , Markus Heiser Subject: Re: [PATCH 0/8] docs: Fixes for recent versions of Sphinx Message-ID: <20190523074545.65642eac@coco.lan> In-Reply-To: <20190523093944.mylk5l3ginkpelfi@butterfly.localdomain> References: <20190522205034.25724-1-corbet@lwn.net> <20190523093944.mylk5l3ginkpelfi@butterfly.localdomain> 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 Thu, 23 May 2019 11:39:44 +0200 Oleksandr Natalenko escreveu: > Hi. > > On Wed, May 22, 2019 at 02:50:26PM -0600, Jonathan Corbet wrote: > > The Sphinx folks deprecated some interfaces in the 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. > > > > - 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. > > > > This version of the patch set fixes up the worst problems (the i915 error > > in particular, which breaks the build hard). I've tested it with versions > > 1.4, 1.8, and 2.0. > > > > Given that these problems are already breaking builds on some systems, I > > think I may try to sell these changes to Linus for 5.2 still. > > > > Changes since v1: > > - Fix up a couple of logging changes I somehow missed > > - Don't save state when using switch_source_input() > > - Fix a few build errors > > - Add Mauro's sphinx-pre-install improvements > > > > Jonathan Corbet (7): > > doc: Cope with Sphinx logging deprecations > > doc: Cope with the deprecation of AutoReporter > > docs: fix numaperf.rst and add it to the doc tree > > lib/list_sort: fix kerneldoc build error > > docs: fix multiple doc build warnings in enumeration.rst > > docs/gpu: fix a documentation build break in i915.rst > > docs: Fix conf.py for Sphinx 2.0 > > > > Mauro Carvalho Chehab (1): > > scripts/sphinx-pre-install: make it handle Sphinx versions > > > > Documentation/admin-guide/mm/index.rst | 1 + > > Documentation/admin-guide/mm/numaperf.rst | 2 +- > > Documentation/conf.py | 2 +- > > .../firmware-guide/acpi/enumeration.rst | 2 +- > > Documentation/gpu/i915.rst | 4 +- > > Documentation/sphinx/kerneldoc.py | 44 +++++++--- > > Documentation/sphinx/kernellog.py | 28 +++++++ > > Documentation/sphinx/kfigure.py | 40 +++++---- > > lib/list_sort.c | 3 +- > > scripts/sphinx-pre-install | 81 +++++++++++++++++-- > > 10 files changed, 166 insertions(+), 41 deletions(-) > > create mode 100644 Documentation/sphinx/kernellog.py > > > > -- > > 2.21.0 > > > > Thanks for the efforts. I've run this on top of Linus' tree, and the > only sphinx-related deprecation warning I've spotted is this one: > > /home/onatalen/work/src/linux/Documentation/sphinx/cdomain.py:51: RemovedInSphinx30Warning: app.override_domain() is deprecated. Use app.add_domain() with override option instead. > app.override_domain(CDomain) > > Otherwise, it builds. > Just sent a fix. Could you please test? https://lore.kernel.org/lkml/b38a9fdfdcda49b2c6118072afac564e96406800.1558608217.git.mchehab+samsung@kernel.org/T/#u Thanks, Mauro