From nobody Tue Oct 7 14:57:05 2025 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 2D70B2E265B; Wed, 9 Jul 2025 13:52:21 +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=1752069141; cv=none; b=Vo3rglxV4Qf3E6UWBVBaOzJ8srDntLHpYAxmm6gtp34BuVlxNx+cVTJLk5d9EsYwXiPYxh79ghSomtS4m/qu1rGy6oYsKk5iibaic/z1V09oM6S4bVfCJuuHPE7041HEA5CvTGcTDKBNhFF4e1wZDpK20xaAi0Y1UbVYNkDNC6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752069141; c=relaxed/simple; bh=xFZLNwkdYKL1EU7gu8VeeFOwcLL2l6SYNOrdu6yu8Lg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OKVwCR6XvkOuIeWUMFkFgZ7BWxSD61zNt7bInW8ZP+CXsegoDzuhK28J9ws9l9goULEGQ15BLmx1/2Y+t0KklRSO5IUbEP9zLp+mJBInikvJ4Q8RqAFA7YcelEBEqw5JCjLOrsU3fmBouU8gnj2vdQW0IBrPPERMZF+trOdS7P8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lzgMQhH4; 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="lzgMQhH4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8EC1C4CEFD; Wed, 9 Jul 2025 13:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1752069140; bh=xFZLNwkdYKL1EU7gu8VeeFOwcLL2l6SYNOrdu6yu8Lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzgMQhH4JoiZn1WOmnEvdnea7AIYUF1l83VRxelysw25y4ouXjVCr59+FwZ9diOW0 JT8yYoxqmhNTBCuehdql+3BLfS0rrhs5wa/kKCdpyy7OeTs1JwWEwiYXe8DDStNXHI EFSeYGzqpbPt5eR3ITZEmsTEcXWTr/u34sfRcVQhbSYstpVcVPiO8Cc6qNkyIWatzt MLm12olIOyGoqT9FLl2aJiVZpOFoHEPSC4cMM3XMiP1f9n6elXkwZDHtJQPzICX2sS rCSfhIcFm3Q/p5VbYy/4LSZu2gjV5Dy49byqWTdO6rf1i+3W70JHSwDEkyXbAhPNpF fOe5FLFbQt0xw== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uZVDd-00000000ECj-1jQA; Wed, 09 Jul 2025 15:52:17 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Akira Yokosawa" , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH v2 13/39] scripts: sphinx-pre-install: cleanup rhel support Date: Wed, 9 Jul 2025 15:51:45 +0200 Message-ID: <65ae48c45bf7aada8b90a7bdb8d97bc661ead4f8.1752067814.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.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 808d31bfa790..42f55e67256d 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.49.0