Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751081AbdFSOny (ORCPT ); Mon, 19 Jun 2017 10:43:54 -0400 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49]:44820 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750782AbdFSOnw (ORCPT ); Mon, 19 Jun 2017 10:43:52 -0400 Date: Mon, 19 Jun 2017 11:43:42 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet , Markus Heiser Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Davis , Daniel Vetter Subject: Re: [PATCH 0/5] Make PDF builds work again Message-ID: <20170619114342.22acdef2@vento.lan> In-Reply-To: <20170618221829.4573592b@vento.lan> References: <20170618234630.19964-1-corbet@lwn.net> <20170618221829.4573592b@vento.lan> Organization: Samsung X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3361 Lines: 100 Em Sun, 18 Jun 2017 22:18:29 -0300 Mauro Carvalho Chehab escreveu: > Hi Jon, > > Em Sun, 18 Jun 2017 17:46:25 -0600 > Jonathan Corbet escreveu: > > > I've just spent rather more time than I would like figuring out why the PDF > > builds fail and what was needed to fix it. The result is the following > > patch series. It's a combination of little mistakes and fragility in the > > whole PDF build tool chain. > > Yeah, the PDF toolchain is very fragile. Yet, I'm pretty sure I was able > to build PDF in the past without noticing the problems fixed by patches > 1 and 2. Maybe the bugs has to do with some specific incompatibility with > toolchain versions. > > What Sphinx version are you using? > > It is too late now, but tomorrow I'll test with a few Spinx versions > and see if PDF builds equally well with them. > > > > > Mauro, Daniel: Do you want the last two? Or otherwise give me acks? I'd > > like to send the set Linusward forthwith so that 4.12 can come out with > > a working PDF build. > > For the media and EDAC changes (patches 3 and 4), once I test it, > feel free to add my ack and send via your tree: > > Acked-by: Mauro Carvalho Chehab > > > > > In general, I'm dismayed by the fragility of the whole thing. I'm also a > > little concerned that nobody except Jim complained about the problem. > > Actually, despite any "errors", usually it produces the PDF files. > I have a robot building just the media documentation, daily basis, > from media development tree, at: > https://linuxtv.org/downloads/v4l-dvb-apis-new/media.pdf > > The robot is using Sphinx 1.4.8 version. I tested building here with Sphinx 1.4.9, 1.5.6 and 1.6.2. With those patches applied (using my version of the patch adjusting the margins), the result is that it seems to be building fine with versions 1.4.9 and 1.5.6. However, with 1.6.2, I'm getting build errors: Output written on driver-api.pdf (847 pages). Transcript written on driver-api.log. Documentation/Makefile:83: recipe for target 'pdfdocs' failed make[1]: *** [pdfdocs] Error 2 Makefile:1470: recipe for target 'pdfdocs' failed make: *** [pdfdocs] Error 2 Despite what's written there, I was unable to find a problem on driver-api build so far. Yet, the media.pdf book is written with just a few pages. It turns that the build breaks on the tables that need scaling to fit at the paper's page. The first one to break is this piece of .rst file, located at media/uapi/v4l/extended-controls.rst: enum v4l2_vp8_golden_frame_sel - Selects the golden frame for encoding. Possible values are: .. raw:: latex \begin{adjustbox}{width=\columnwidth} It seems that adjustbox doesn't work anymore. It fails with: ! Missing \endgroup inserted. \endgroup l.4104 \begin{savenotes}\sphinxattablestart I suspect that we'll need to redefine sphinxattablestart for Sphinx versions 1.6.x. I'm starting to think that the only way we'll get some sanity on documentation build is if we enforce that builds will happen with only sanctioned Sphinx versions. Markus, Are there some way for us to have an extension that would provide something that would modify the LaTeX output to Anyway, I'm seeking for some hack at conf.py that would fix it. Thanks, Mauro