Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3033951imm; Fri, 20 Jul 2018 09:01:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdjkUNmlEjYS+X3g3ihFOA2EZGXT7WAcK0vyWiR7JDr5Y6Q6ZuoVvtubVD7j3KY6qmE6cOF X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr2612083pla.156.1532102482827; Fri, 20 Jul 2018 09:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532102482; cv=none; d=google.com; s=arc-20160816; b=B048zRbD6xy2/Nzj1UPzkJLxoM7nBniW+GEIbhK/9HLcJwiN/R5C5RWPI5CexCUVYN WsYyZpVLhmKiDW5xUCJbCDhFfKpaH5roxvSJwa0amytSLpzO9SiZlg5TMFdMwy4Rmfho GsZk1uX99honKAJnM80TvIET9T5yS/vHY3zlR1/2zVz5t7TJ9EOkkZQdNepzMBbsfkMO qzK5GFhpatmIivLvdPw4YK05ZHvwZDQASismFmgfK/oQVf6zFBjKE8p8Tu6YRNCcMFg2 M8+MbXX6nfZ8AnbjZbuj3eWDoWgFaNtJkDDxVH4kXoQyt+YjaqrQmf7D4vxDc+5+1iI5 siAg== 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:date:cc:to:from:subject:message-id :arc-authentication-results; bh=hLNrUVV+glgQGoXc2I2Z4hGzwt7AmHhtCyeErB50mMw=; b=BIDi9cP1LdNT/RpiwMCnAM1ZTz0ci1Jy5Qf6PBZ2Dnkz4+BjBXaPNsWLwlT7udXfFa yB5LUz27JdmeOpscxrDUhpvKsqWkvc0spR+buj7Uz7Qpqv/L1LY8JdtLjfTWlODHFRHL teqirYs12crbJoy9M62MhhzsWt2aGruSH99Rz1sga2Bg2AAXlqYVLwyM1Q7/Ey5FaECu 7auagzSm9+c998RAzQqWBtkKyGAa4pTtdAdNE1piI/Go2PJYK0KYHmqm/36QMxzTK+LP gJ8OjlVHkd34KeBwyzAlx9McuH9vANnCfSaBDrWMJ927Te8u1iLx57rroEFs3xG8w/GF 5+lQ== 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 5-v6si1975272pls.450.2018.07.20.09.01.07; Fri, 20 Jul 2018 09:01:22 -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 S2387691AbeGTQt3 (ORCPT + 99 others); Fri, 20 Jul 2018 12:49:29 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:32781 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbeGTQt3 (ORCPT ); Fri, 20 Jul 2018 12:49:29 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 85C4723F7DE; Fri, 20 Jul 2018 18:00:30 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.764 X-Spam-Level: X-Spam-Status: No, score=-2.764 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.136, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0YsKOzmgi-Yg; Fri, 20 Jul 2018 18:00:29 +0200 (CEST) Received: from ryzen (dyndsl-091-248-138-213.ewe-ip-backbone.de [91.248.138.213]) by smtp3.goneo.de (Postfix) with ESMTPSA id ED4FD23F6B7; Fri, 20 Jul 2018 18:00:28 +0200 (CEST) Message-ID: Subject: Re: Sphinx version dependencies? From: Markus Heiser To: "Theodore Y. Ts'o" Cc: "Darrick J. Wong" , Jonathan Corbet , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 20 Jul 2018 18:00:28 +0200 In-Reply-To: <20180720145235.GA27862@thunk.org> References: <20180719181556.GA21435@thunk.org> <20180719190400.GB4800@magnolia> <44d73cd9926f58976a1269ff3cd3afb845ec84fa.camel@darmarit.de> <20180720131206.GM30706@thunk.org> <20180720145235.GA27862@thunk.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 20.07.2018, 10:52 -0400 schrieb Theodore Y. Ts'o: > On Fri, Jul 20, 2018 at 03:45:37PM +0200, Markus Heiser wrote: > > Am Freitag, den 20.07.2018, 09:12 -0400 schrieb Theodore Y. Ts'o: > > > I'm not entirely sure what's the best approach. Right now I just want > > > to understand --- do I have to make ext4.rst work against one, or many > > > versions of Sphinx? And which version(s) of Sphinx do I need to > > > concern myself with? If that turns out to be an onerous burden, I'm > > > sure I won't be the only person complaining. :-) > > > > In that case ... > > > > > But when I did that, Sphinx had heartburn over the ext4.rst file. > > > > > > ./include/linux/spi/spi.h:373: ERROR: Unexpected indentation. > > > /usr/projects/linux/ext4/Documentation/filesystems/ext4/ext4.rst:139: ERROR: Malformed table. > > > Column span alignment problem in table line 5. > > > > ... its clear; the table was malformed. A markup error which is not detected > > by older versions of docutils (very special case). > > ... except that newer verions are A-OK with it. Apparently 1.3.x was > OK with it, and 1.6.x and 1.7.x were ok with it. ***ONLY*** Sphinx > 1.4.9 blew up on the "malformed table". Are you sure that it was not due to the docutils version? I can't reproduce it but the table parser is a part of docutils. > > So in this case, Darrick has come up with a patch that is makes it OK > with 1.4.9 without breaking on 1.7.5 --- and obviously, doing > something that makes it broadly portable is the right thing. Right, fix it by the markup .. is what I recommend. > I'm asking a larger question, which is moving forward, which is more > important? Make it work with Sphinx 1.4.9? Or making it Sphinx work > with Sphinx 1.7.5? > > And should we change Documentation/sphinx/requirements.txt to require > something newer, such as Sphinx 1.7.5? And should we require that > Ubuntu 18.04 which is using Sphinx 1.6.8 use a virtualenv and use > download Sphinx 1.6.8? The requirements.txt came from commit fb947f3f47 [1] (inital 24071ac1a6). Where Jon and Mauro decided to tag explicit versions ... docutils==0.12 Sphinx==1.4.9 sphinx_rtd_theme Maybe it is time to switch to something like .. ? Sphinx>=1.4.9 sphinx_rtd_theme I don't know. Mauro has tested on many distros, he has more experience with the wide range of distros then I. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fb947f3f47 > > My understanding that the Sphinx developers make no guarantees that if > we follow some external, version-indepedent spec, that it will work on > Sphinx version N, as well as Sphinx version N+1. (In the ideal world, > if there was such an independent spec for .rst format files, and a > compliant .rst file doesn't work for Sphinx version N, it's a bug, and > we should expect somebody --- perhaps the Distro's --- to backport the > fix from Sphinx version N+1 to Sphinx version N.) E.g., is there an > equivalent for ANSI C 1999 standard for .rst files? The reST markup is specified here: http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html but the (last) example of the simple table does not match your "1.4.9" experience. -- Markus -- > > - Ted