Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2565185imm; Fri, 20 Jul 2018 00:31:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdvfGxeTX5m6gBemXOZX5jmOVPWi0OE/YjkcdNM1ceZ2lvndFzw1zfTH7+VIYI1PIqHhMLn X-Received: by 2002:a65:64d7:: with SMTP id t23-v6mr984683pgv.207.1532071888723; Fri, 20 Jul 2018 00:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532071888; cv=none; d=google.com; s=arc-20160816; b=G8A5k2Nd+gaXvfA2L6Qz7PD48w0OpF5QUh+4Q7WnMDxxl5PDabwAgtHxs/sZZjoQcH BR2AOxPaS4tf6mK4gS2FuEzCQwEmG9FmSXwzwV2kAelIZtfUpjr/X7Xup5w1CJQ3wKSD nPSgZww4mQUOFE/CWVkKXDHES8ZJ/WKUjCUio/zo94Z76AxtVZPeeII92wubiuCR92K6 8RypgEFPZqrcQroWWG6AF21pT9geU/XX3FVy4s7yxX5aB+dWZhG0PUZXq6gPCcYU8B/w OFDymhPmHVh+wt1kaR4RR5iH0FhLNohyQGgGnDTa6brCgTfhWspnFgPqmsUNrLeBBMnV oZpA== 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=tHSYuE4OuSidt/CPA6JdSZhr1KPr642OTtLI2+q93ss=; b=P12ipHcdh+91F0LKJT+POce9JRdhCFCcGFaGXjdofU7w5vMB5dYTUKxfB4jNcMZ0NC sTF0cRyoU+dob+tX2eJgUbM8wXnEA6YEpzzzQIoPRBTlfICEpZfCCQSnu1lO0LwqzyCS hunO56CNWnWL+NiEBkzpoRAAA95VqUBHMz+5BnEhpRnQzPruKTLCl7NW3CIqqKPK1XkC rUqQXEBube9Y0v3Jhx8D9u0yWRU7EU3Mln/Ya+sSXTWVP2sFMMza0U1Jm/h/qrL/Wn7U W5jO3BJ/eSB6g5gqqeuCWmvyBxm9l0QoGnLQy6YIy2Ey8Qwic/GfgGgJWzbZaXyR0Ocx pGQA== 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 e1-v6si1227484pfg.257.2018.07.20.00.31.14; Fri, 20 Jul 2018 00:31:28 -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 S1727240AbeGTIRd (ORCPT + 99 others); Fri, 20 Jul 2018 04:17:33 -0400 Received: from smtp2-2.goneo.de ([85.220.129.34]:42051 "EHLO smtp2-2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbeGTIRd (ORCPT ); Fri, 20 Jul 2018 04:17:33 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 9F3F423F728; Fri, 20 Jul 2018 09:30:35 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.807 X-Spam-Level: X-Spam-Status: No, score=-2.807 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.093, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id THwoZaMpEYZp; Fri, 20 Jul 2018 09:30:34 +0200 (CEST) Received: from ryzen (host-091-097-245-073.ewe-ip-backbone.de [91.97.245.73]) by smtp2.goneo.de (Postfix) with ESMTPSA id C6A7723F6F0; Fri, 20 Jul 2018 09:30:33 +0200 (CEST) Message-ID: <44d73cd9926f58976a1269ff3cd3afb845ec84fa.camel@darmarit.de> Subject: Re: Sphinx version dependencies? From: Markus Heiser To: "Darrick J. Wong" , "Theodore Y. Ts'o" , Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 20 Jul 2018 09:30:33 +0200 In-Reply-To: <20180719190400.GB4800@magnolia> References: <20180719181556.GA21435@thunk.org> <20180719190400.GB4800@magnolia> 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 Donnerstag, den 19.07.2018, 12:04 -0700 schrieb Darrick J. Wong: > On Thu, Jul 19, 2018 at 02:15:56PM -0400, Theodore Y. Ts'o wrote: > > Darrick has sent in patches to convert the ext4 documentation to use > > rst and to be built as part of the full kernel documentation thanks. > > In addition to that, he's imported the on-disk documentation from the > > ext4 wiki into the kernel sources, so hopefully we can keep it more up > > to date. > > > > When I was experimenting with this, I had to actually build the kernel > > docs using Sphinx for the first time. I'm using Debian testing, so at > > first I blindly followed the instructions by > > ./scripts/sphinx-pre-install: > > > > Detected OS: Debian GNU/Linux unstable (sid). > > /usr/local/bin/virtualenv sphinx_1.4 > > . sphinx_1.4/bin/activate > > pip install -r Documentation/sphinx/requirements.txt > > > > 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. > > Hmmm, apparently it's choking on the table heading borders not matching > the text: > > ====== =========== > Foo Bar > ====== =========== <-- need to extend to EOL > Blah Blah blah blah blah > ====== =========== > > Though weirdly while I /can/ get this error to reproduce with the > virtualenv 1.4.9 release, I can't get it to reproduce with the 1.3.6 or > 1.6.7 ubuntu packages. Maybe it's a python3 thing, maybe not? Not a py2 or py3 thing. I *guess* it is caused by changes in the underlying docutils. > Seems > pretty fragile to me. Yes, this is a very confusing and we have to look at reST, docutils, Sphinx-doc, virtualenv py2 & py3, all these distros and the philosophy of the Linux community to understand. Yes, this is a very confusing and we have to look at reST, docutils, Sphinx-doc, virtualenv py2 & py3, all these distros and the philosophy of the Linux community to understand. reST: Is the markup. docutils (python): Is the reST reference implementation with some changes in 2017[1]. Sphinx-doc (python): reST application based on the docutils lib (docutils>=0.11)[2]. Take in mind, this dependency opens a new array of confusion, cause its fulfillment is based on what is installed on your system (or in your virtualenv, see below). Side node: the pdf-builder (LaTeX, to be correct) is in a continues redesign since the last two years and was horrible in older Sphinx-doc versions. E.g. take a look at the current 1.8.0 development (section deprecated)[4]. python: py2 will retire in 2020 (py3 was released in 2008). All py applications we using are py2 and py3 compatible. If we have no bugs, py2 or py3 should never be the cause. distros: Nearly all distros using using py2 as there default python interpreter (mostly since there package managers are written/tested with py2). virtualenv: A virtualenv is build up in the $HOME folder where Sphinx-doc and docutils are installed from pypi, the python package manager[3]. Take in mind, using another package in parallel to the system package manager manager opens another array of confusion. Normally I would say, lets use (and test against) state of the art. This is easily done by installing py3 and using virtualenv. But this seems not match the philosophy of the whole Linux community. As one told me, the philosophy is to build the Kernel with less installations from the web by using what the distro ships. IMO this might be right for the Kernel but not for applications building viewing formats. When it comes to build PDF you will realize how naive this approach is. IMO there is also no need to build viewing formats as we can read the documentation in plain text as we can do it since the beginning ... and this is one reason why we changed from XML to a plain text markup. The script named 'sphinx-pre-install' is the crutch that supports this philosophy. We have this discussion over and over again an I believe we will have it again and again, as long as we do not change our POV .. building viewing formats is an application not a part of the Kernel. Anyway, I hope this helps to clarify, why we have those problems. [1] http://docutils.sourceforge.net/HISTORY.html [2] https://github.com/sphinx-doc/sphinx/blob/master/setup.py#L22 [3] https://pypi.org/ [4] https://github.com/sphinx-doc/sphinx/blob/master/CHANGES -- Markus -- > > Anyway, I'll fix ext4.rst and resubmit that part to get this moving. > > --D > > > ... > > > > After consulting with Darrick, it appears the problem is that Sphinx8 > > 1.4.9 was the problem. This is the version that > > Documentation/sphinx/requirements.txt calls for. He did his rst > > conversion work using Ubuntu 18.04's Sphinx 1.6.7. > > > > As it turns out Debian testing/unstable already has Sphinx 1.7.5 in > > its repository, so if I simply install Sphinx 1.7.5, it works fine. > > That's what I've done for now. > > > > So that leaves me with some questions: > > > > * Is there a reason why scripts/sphinx-pre-install suggested using a > > Python virtual environment and installing Sphinx 1.4.9 instead of > > using the distro's pre-packaged Sphinx for Debian unstable/testing? > > > > * Why does Documentation/sphinx/requirements.txt asking for such an > > old version of Sphinx? > > > > * Is it a requirement that *.rst files that are checked into the > > kernel repo have to work with Sphinx 1.4.9? Or is it sufficient > > that it works with Sphinx 1.6.7 and 1.7.5 (which are the prepackaged > > Debian and Ubuntu versions). And it looks like Fedora 28 has Sphinx > > 1.7.2 if I'm not mistaken. How many versions of Sphinx are various > > automated build/test systems using? > > > > Thanks, > > > > - Ted > > -- > To unsubscribe from this list: send the line "unsubscribe linux-doc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html