From nobody Mon Feb 9 05:03:46 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05278242D8F; Mon, 30 Jun 2025 21:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751320365; cv=none; b=aZXyUW+u3P1ROELfJkpjEjM5nmLb7XwUEVtuHVSVyL93yaPdGuGGCyaet2vkfctLkqc9uKc2JFHXz4xQ/aV1wXnhdrqdqCw2i5287sBd2SwafX+cHebmu+xIwwyXAI0wIRkhD72QVz5ebSh9loAptmKBwwY5Z9szj3kCVmI3zW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751320365; c=relaxed/simple; bh=Ygtsq+De4GW5sas3J8PyjFBax+Pkg5M1g2qs8BnKYFE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fN73d8Fdjx0Xm6YoPfjTauE4W6/mR5pYiU33/xAp9VaDhmh0WEG+SiSft0IHhQmT+Pq2pPGQkSpQWeiDctIFsTUHqnbO9mlEPaQF8D/VjJqFl1/dUzWTKUPVHoyQxQw6uuTuceoXLIt1AqM6fmp2MfLU3yOHk+1x7s5HJJSZRsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lZ/aDM/g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lZ/aDM/g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DFF4C4CEFC; Mon, 30 Jun 2025 21:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751320364; bh=Ygtsq+De4GW5sas3J8PyjFBax+Pkg5M1g2qs8BnKYFE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lZ/aDM/gEQHlykyeQunFAOnvgm2VsQEJMctRRiRa13N1U7VAIgPpPAGd+ckwPRTKl RiuHHlr3h8mItnI/6tm6xT/S4nGopZ0XaGdq5X4EyZj0qDCnLXF25JPDe5C2Y0Va3g Q8saZ0A3nSfx5ZLq4rpBP3ZO9jOEArGNeNZvhxKTHOBQIBwWC9sulpfdpbJK27dgsZ abH+Zv92y5cfaGZGyWxcuQpEDHvGz3SvTGCLzXwkIu1ieD+IBHI7tZhJD6IOhN2ea3 yd4iI1ZzNn4bc+zMzpwak65Rje7e8vqi7Def8X1zsOW+XqUQjDwzkiEMSABqB+rPCc L7tSPGRROHFiw== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uWMQc-00000003QX5-2ulK; Mon, 30 Jun 2025 23:52:42 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Akira Yokosawa" , "Mauro Carvalho Chehab" , "Sai Vishnu M" , linux-kernel@vger.kernel.org Subject: [PATCH 13/15] scripts: sphinx-pre-install.py: cleanup rhel support Date: Mon, 30 Jun 2025 23:35:01 +0200 Message-ID: X-Mailer: git-send-email 2.50.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Mauro Carvalho Chehab --- scripts/sphinx-pre-install.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/scripts/sphinx-pre-install.py b/scripts/sphinx-pre-install.py index a941eae17a9e..50413b7d2f2c 100755 --- a/scripts/sphinx-pre-install.py +++ b/scripts/sphinx-pre-install.py @@ -487,15 +487,31 @@ class SphinxDependencyChecker: =20 progs["virtualenv"] =3D "python-virtualenv" =20 - if rel and rel < 8: + if not rel or rel < 8: old =3D 1 self.pdf =3D False =20 - # RHEL 7 is in ELS, currently up to Jun, 2026 + print("ERROR: Distro not supported. Too old?") + return + + # TODO: check if RHEL8 still works. + # On my tests with docker "redhat/ubi8" image, there's no + # python3-sphinx (or similar) package. It comes with Python 3.= 6, + # but there are other python packages over there, so it may be + # possible to work with venv. + + if self.first_hint: + print("Note: RHEL-based distros typically require extra re= positories.\n" \ + "For most, enabling epel and crb are enough:\n" \ + "\tsudo dnf install -y epel-release", \ + "\tsudo dnf config-manager --set-enabled crb\n" \ + "Yet, some may have other required repositories. Tho= se commands could be useful:" \ + "\tsudo dnf repolist all" \ + "\tsudo repoquery --available --info ", + "\tsudo dnf config-manager --set-enabled '*' # enabl= e all - probably not what you want") + + self.first_hint =3D False =20 - print("Note: texlive packages on RHEL/CENTOS <=3D 7 are in= complete. Can't support PDF output") - print("If you want to build PDF, please read:") - print("\thttps://www.systutorials.com/241660/how-to-instal= l-tex-live-on-centos-7-linux/") =20 if self.pdf: pdf_pkgs =3D [ --=20 2.50.0