History

scripts: sphinx-pre-install: cleanup rhel support

Rhel < 8.0 is not supported anymore. Drop support for it. Rhel 8 is problematic: at least on the tests I did with a docker repo, it didn't work, but it could be due to the issue that it is actually different than a real One.

Mauro Carvalho Chehab committed 1 year ago

Commit 8f6f54c1 parent 12bdcf81 file · +21 −5Browse files

Unified · Split

scripts/sphinx-pre-install.py+21−5
@@ -487,15 +487,31 @@ class SphinxDependencyChecker: · 486 unmodified lines
487487
488488 progs["virtualenv"] = "python-virtualenv"
489489
490− if rel and rel < 8:
490+ if not rel or rel < 8:
491491 old = 1
492492 self.pdf = False
493493
494− # RHEL 7 is in ELS, currently up to Jun, 2026
494+ print("ERROR: Distro not supported. Too old?")
495+ return
496+
497+ # TODO: check if RHEL8 still works.
498+ # On my tests with docker "redhat/ubi8" image, there's no
499+ # python3-sphinx (or similar) package. It comes with Python 3.6,
500+ # but there are other python packages over there, so it may be
501+ # possible to work with venv.
502+
503+ if self.first_hint:
504+ print("Note: RHEL-based distros typically require extra repositories.\n" \
505+ "For most, enabling epel and crb are enough:\n" \
506+ "\tsudo dnf install -y epel-release", \
507+ "\tsudo dnf config-manager --set-enabled crb\n" \
508+ "Yet, some may have other required repositories. Those commands could be useful:" \
509+ "\tsudo dnf repolist all" \
510+ "\tsudo repoquery --available --info <pkgs>",
511+ "\tsudo dnf config-manager --set-enabled '*' # enable all - probably not what you want")
512+
513+ self.first_hint = False
495514
496− print("Note: texlive packages on RHEL/CENTOS <= 7 are incomplete. Can't support PDF output")
497− print("If you want to build PDF, please read:")
498− print("\thttps://www.systutorials.com/241660/how-to-install-tex-live-on-centos-7-linux/")
499515
500516 if self.pdf:
501517 pdf_pkgs = [

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t