mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: Linux Doc Mailing List <linux-doc@vger.kernel.org>,
	Jonathan Corbet <corbet@lwn.net>,
	linux-kernel@vger.kernel.org,
	Sai Vishnu M <saivishnu725@gmail.com>
Subject: Re: [PATCH 00/15] Translate sphinx-pre-install to Python
Date: Wed, 9 Jul 2025 10:58:33 +0200	[thread overview]
Message-ID: <20250709105833.48a56708@foz.lan> (raw)
In-Reply-To: <d37eab74-a034-4be6-b92b-e0da60a99477@gmail.com>

Em Tue, 8 Jul 2025 12:09:52 +0900
Akira Yokosawa <akiyks@gmail.com> escreveu:

> Hi Mauro,
> 
> On Mon, 30 Jun 2025 23:34:48 +0200, Mauro Carvalho Chehab wrote:
> [...]
> 
> > The test script also ran the install procedure for system,
> > venv and native Sphinx install.  
> 
> Which install procedure did you test?  The short one with the "--no-pdf"
> option?

No, I'm testing it with PDF.

> I am asking because installing the full list of packages in podman run
> of opensuse/leap:15.6 didn't complete successfully for me.

I got a couple of extra fixes for Leap. Will be submitting in a few.

> And by the look of things, you stopped at installation, because you are
> well aware of all the issues in running "make htmldocs" and its friends
> after the install.
> 
> I assume you (or somebody else) are going to update the script once this
> series is applied to make the suggested lists of packages be useful for
> newcomers.

I'm not actually building the docs, just checking that the script will
install Sphinx and required dependencies. There are a couple of reasons
for that:

- the disk space on my desktop. Right now, I'm just copying the
  files instead of doing a Kernel git clone. Even so, testing all
  those distros is requiring about 100GB on my /var partition;
- test time. Right now, I'm starting dozens of machines in
  lxc or podman in parallel. Still, it takes a lot of time to
  download and install all packages;
- compilation build itself is out of the scope of the script.
  I'm pretty sure we'll have compilation issues(*).

(*) on some RHEL-based distros, for instance, texlive-ctex package
    is not there (I guess version 8). so, I suspect that CJK
    builds may fail.

Anyway, fore sure there will be space for improvements after it, and
I really appreciate if you could send patches on the top of the new
series addressing the issues. 

> > The tests were done with those containers, obtained from
> > lxc download templates or via podman run:  
> [...]
> 
> > It also properly detected RHEL 8 string:
> > 
> > Detected OS                : Red Hat Enterprise Linux release 8.10 (Ootpa).
> > Installing venv            : WARNING: No such file or directory: 'sphinx-build'
> > Installing package_install : WARNING: No such file or directory: 'sphinx-build'
> > 
> > But, at this particular docker container, no repositories had
> > python3-sphinx nor python3-virtualenv, but I suspect that this
> > is a problem on this particular image, as I'm almost sure we
> > tested RHEL 8 in the past, so, I have hopes that this could
> > still work with real RHEL, if it has Python >= 3.7.  

On this container, you can only install Sphinx with packages with
a subscription, as the repository where it sits can't be enabled
without registering. 

> FWIW, almalinux 8 provides python3-sphinx in the "PowerTools" repo.
> It installs Sphinx 1.7.6 on top of python 3.6.8.
> python3-virtualenv is in the "AppStream" repo. It also comes with
> python 3.6.8.

I added a version check on my test script. I'm opting to use
rockylinux 8 instead, as it is meant to be 1:1 binary compatible
with RHEL.

I will provide the output for it at the next version.

> > 
> > Yet, our goal is to support the latest LTS version, so
> > RHEL 8 is out of scope.  
> 
> Yes, I think it is reasonable to ignore RHEL 8 and its clones.

Yes, but still it may work with venv. I'm adjusting the script
right now for it to propose installing python39 package and
accepting install on venv.

> For the record, here is a WIP scorecard of suggested procedure by
> actually running "make htmldocs" and its friends after installing distro
> packages (if it succeeds):
> 
> ------------------------------------------------------------------------
> * debian:12
> 
> htmldocs:  OK
> latexdocs: NG
> 
> Debian and its derivative prohibit convert(1) (of ImageMagick) from
> generating PDF by their default policy, so you'll get a bunch of:
> 
> [while building userspace-api.tex]
> 
> WARNING: Error #1 when calling: /usr/bin/convert /<srcdir>/Documentation/userspace-api/media/typical_media_device.svg /<srcdir>/Documentation/output/userspace-api/latex/typical_media_device.pdf
> WARNING: Warning msg from convert(1): convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/426.
> 
> , and if you ignore them and try to build PDF, you'll get:
> 
> [while building userspace-api.pdf]
> 
> ! Dimension too large.
> \spx@boxes@fcolorbox ...dimexpr \ht \spx@tempboxa 
>                                                   +\spx@boxes@border@top +\s...
> l.54887 \end{sphinxVerbatim}
>                             
> ? 
> ! Emergency stop.
> \spx@boxes@fcolorbox ...dimexpr \ht \spx@tempboxa 
>                                                   +\spx@boxes@border@top +\s...
> l.54887 \end{sphinxVerbatim}

I use Debian to regularly produce html results. It requires a
change at ImageMagick policies for it to run.

> * fedora:latest (42)
> 
> htmldocs:  NG
> 
> Container images of fedora has stopped having "which" as a command.
> You need to install it manually.  After installing "which": OK

Thanks for the feedback! I'm installing which on my container's
setup, as my test scripts require it. I'll add a check to install
it.

> 
> pdfdocs:  OK
> 
> * opensuse/leap:15.6
> 
> htmldocs:  NG
> After installing "which": OK

Will do the same here.

> 
> latexdocs: NG
> Can't complete "zypper install" inside a podman container run using the
> full package list ???

I added some fixes for it.

> Having look at these poor results, I don't see any reason to continue
> testing further.

Thanks for the feedback!

Thanks,
Mauro

      parent reply	other threads:[~2025-07-09  8:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-30 21:34 Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 01/15] scripts: sphinx-pre-install: fix version check for Fedora Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 02/15] scripts: sphinx-pre-install: rename it to scripts/sphinx-pre-install.pl Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 03/15] scripts: sphinx-pre-install: Convert script to Python Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 04/15] scripts: sphinx-pre-install: Make it compatible with Python 3.6 Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 05/15] scripts: sphinx-pre-install: run on a supported version Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 06/15] scripts: sphinx-pre-install: drop obsolete routines Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 07/15] scripts: sphinx-pre-install: drop support for old virtualenv Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 08/15] scripts: sphinx-pre-install: Address issues with OpenSUSE Leap 15.x Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 09/15] scripts: sphinx-pre-install.py fix opensuse hints Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 10/15] scripts: sphinx-pre-install.py: fix support for gentoo Mauro Carvalho Chehab
2025-06-30 21:34 ` [PATCH 11/15] scripts: sphinx-pre-install: Address issues with OpenSUSE Tumbleweed Mauro Carvalho Chehab
2025-06-30 21:35 ` [PATCH 12/15] scripts: sphinx-pre-install.py: only show portage hints once Mauro Carvalho Chehab
2025-06-30 21:35 ` [PATCH 13/15] scripts: sphinx-pre-install.py: cleanup rhel support Mauro Carvalho Chehab
2025-06-30 21:35 ` [PATCH 14/15] docs: Makefile: switch to the new scripts/sphinx-pre-install.py Mauro Carvalho Chehab
2025-06-30 21:35 ` [PATCH 15/15] scripts: sphinx-pre-install.pl: get rid of the old script Mauro Carvalho Chehab
2025-07-02 23:03 ` [PATCH 00/15] Translate sphinx-pre-install to Python Jonathan Corbet
2025-07-09  8:25   ` Mauro Carvalho Chehab
2025-07-08  3:09 ` Akira Yokosawa
2025-07-08 14:25   ` Jonathan Corbet
2025-07-08 14:56     ` Akira Yokosawa
2025-07-09  9:17       ` Mauro Carvalho Chehab
2025-07-31 11:51       ` Mauro Carvalho Chehab
2025-07-31 17:55         ` Mauro Carvalho Chehab
2025-08-06  3:13         ` Akira Yokosawa
2025-07-09  8:58   ` Mauro Carvalho Chehab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250709105833.48a56708@foz.lan \
    --to=mchehab+huawei@kernel.org \
    --cc=akiyks@gmail.com \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=saivishnu725@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®