lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 14 Jul 2019 12:10:05 -0300
From:   Mauro Carvalho Chehab <>
To:     Linux Doc Mailing List <>,
        Jonathan Corbet <>
Cc:     Mauro Carvalho Chehab <>,
        Mauro Carvalho Chehab <>,,
        Herbert Xu <>,, Sean Paul <>,
        Maarten Lankhorst <>,
        Rich Felker <>, Takashi Iwai <>,
        Daniel Vetter <>,,,
        Maxime Ripard <>,, David Airlie <>,, Jaroslav Kysela <>,,
        Yoshinori Sato <>,
        Ingo Molnar <>, Borislav Petkov <>,
        "David S. Miller" <>,, "H. Peter Anvin" <>,
        Dmitry Torokhov <>,
        Thomas Gleixner <>
Subject: [PATCH 0/8] docs: some improvements when producing PDF files

Hi Jon,

This series addresses your concerns related to CJK fonts that are
needed for translations.pdf.

It touches only the documentation build system, not the docs

It ended to be bigger than I originally foreseen, as I found several issues
when running "make pdfdocs" for the distros that are recognized by
the  scripts/sphinx-pre-install script.

It also took a lot of time, as I tested it with several VMs (each
one updated to latest packages):

- Fedora 30, CentOS 7, Mageia 7, ArchLinux, Ubuntu 18.04, Gentoo, 
  OpenSuse Tumbleweed.

Patch 1 addresses an issue that could be related to the fact that I
don't use openSUSE. Basically, I was unable to find the right package
for texlive to use CJK fonts on openSUSE. [1]. So, the first patch on this
series adds a workaround: if the needed CJK font is not found on a
system, won't use xeCjk extension. That sounds a good
thing to have, as other distros may not package it, or maybe the
one building the doc is not that interested on translations.pdf file;

[1] I actually found some, but they are not recognized with the
    font name is expecting ("Noto Sans CJK SC"). Perhaps
    SUSE uses a different name for those fonts?

Patch 2 fixes the logic with recognizes CentOS/RHEL;

Patch 3 is another workaround: CentOS 7 (and similar distros) don't
package all texlive packages we need. So, it just ignores PDF when
recommending packages on such distros, and point to a URL with
explains how to install TexLive outside distro-specific package
management (for the brave enough people);

Patch 4 fixes latexmk dependency on a few distros;

Patch 5 suppreses a Gentoo specific instruction if the user already
followed in the past;

Patch 6 is the one that actually does what you requested.

Patch 7 solves an issue when SPHINXDIRS is used with make pdfdocs:
right now, using it will produce a lot of warnings and won't do anything,
if a dir-specific file is not found. With the patch, latex_documents
are now properly updated when SPHINXDIRS is used.

Patch 8 is a cleanup: with patch 7 applied, we don't need to have anymore
any file due to pdfdocs. 

With regard to the extension, It keeps accepting custom
configuration. That's helpful if someone wants, for example, to have
something like:


with would enable extra nitpick options if one wants that.



Please let me know if you prefer if I submit those together with the big
pile of doc files I have, or if you prefer adding (some of?) them on your
tree after the merge window.


Mauro Carvalho Chehab (8):
  docs: only use CJK if the font is available
  scripts/sphinx-pre-install: fix script for RHEL/CentOS
  scripts/sphinx-pre-install: don't use LaTeX with CentOS 7
  scripts/sphinx-pre-install: fix latexmk dependencies
  scripts/sphinx-pre-install: cleanup Gentoo checks
  scripts/sphinx-pre-install: seek for Noto CJK fonts for pdf output
  docs: avoid needing a just due to LaTeX docs
  docs: remove extra files

 Documentation/admin-guide/      |  10 ---
 Documentation/                  |  13 ++-
 Documentation/core-api/         |  10 ---
 Documentation/crypto/           |  10 ---
 Documentation/dev-tools/        |  10 ---
 Documentation/doc-guide/        |  10 ---
 Documentation/driver-api/80211/ |  10 ---
 Documentation/driver-api/       |  10 ---
 Documentation/driver-api/pm/    |  10 ---
 Documentation/filesystems/      |  10 ---
 Documentation/gpu/              |  10 ---
 Documentation/input/            |  10 ---
 Documentation/kernel-hacking/   |  10 ---
 Documentation/maintainer/       |  10 ---
 Documentation/media/            |  12 ---
 Documentation/networking/       |  10 ---
 Documentation/process/          |  10 ---
 Documentation/sh/               |  10 ---
 Documentation/sound/            |  10 ---
 Documentation/sphinx/    |  25 +++++-
 Documentation/userspace-api/    |  10 ---
 Documentation/vm/               |  10 ---
 Documentation/x86/              |  10 ---
 scripts/sphinx-pre-install             | 118 ++++++++++++++++++++-----
 24 files changed, 131 insertions(+), 237 deletions(-)
 delete mode 100644 Documentation/admin-guide/
 delete mode 100644 Documentation/core-api/
 delete mode 100644 Documentation/crypto/
 delete mode 100644 Documentation/dev-tools/
 delete mode 100644 Documentation/doc-guide/
 delete mode 100644 Documentation/driver-api/80211/
 delete mode 100644 Documentation/driver-api/
 delete mode 100644 Documentation/driver-api/pm/
 delete mode 100644 Documentation/filesystems/
 delete mode 100644 Documentation/gpu/
 delete mode 100644 Documentation/input/
 delete mode 100644 Documentation/kernel-hacking/
 delete mode 100644 Documentation/maintainer/
 delete mode 100644 Documentation/media/
 delete mode 100644 Documentation/networking/
 delete mode 100644 Documentation/process/
 delete mode 100644 Documentation/sh/
 delete mode 100644 Documentation/sound/
 delete mode 100644 Documentation/userspace-api/
 delete mode 100644 Documentation/vm/
 delete mode 100644 Documentation/x86/


Powered by blists - more mailing lists