From nobody Wed Oct 1 20:28:50 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 D82C048CFC; Wed, 1 Oct 2025 14:15:36 +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=1759328136; cv=none; b=HPukxYFt2ZcDQOwVaDAOl3DnewZWrgaiTMo3YRT0ISiszA5+J4PfvEGKQcmIhl3ziexQPwKjmxoIZFtZIS13MXP/FWchOCaPo9P/I6p198eqGIhL2dj6YvDqJwq2+h1cunAftBdj+J6osH2dil+Z5yCrVMLfTZGqqpSd7ZrF1Qw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759328136; c=relaxed/simple; bh=qmAx3BU5iYpF0BhCqjMwryZ9h4swiPNSkQhkpvI834A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hAW5MqtsT92ymlH5wO6v4qvq5Zai/3clQ2hiJZ25+8i8VggBJ9lSKYp2qS2nOWgqta8nzkpB2Ac9LdguhIwYkRBG3nfz3PIS3GcdNDdFMRBnp6O7bfuInoSnt/PDZhukfan/hXuHV3mO2hwyuwZu/+3Ni73GhPS6mW+bCsAykkE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DYnKIJGZ; 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="DYnKIJGZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DBABC4CEF5; Wed, 1 Oct 2025 14:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759328136; bh=qmAx3BU5iYpF0BhCqjMwryZ9h4swiPNSkQhkpvI834A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DYnKIJGZV2kdgcDaXkRkUeELPfwyrroADbIE9SFPuGFRJpQDhw+jcZD3YimmlEb9S StAlb6xbUC4ESEnTMWHFGBZH3k/SYpI1xkah6GHHKpP5gZpziac9jCW2cMKy1rZ4un Y4jvqxt1MWnlnkwRCGD8dGGXobn9+pJ+LoJh1hMuPKXi2OKBBrBcxmj3G1awzORt2u XPb5kjhoaWAv3Y6ztp/bYYv4/4O79wJRsd9v6r2BUWlJ+2LpRRWV51nzH+HFlxZ6Ja hSeEJJCIt91vdM9gv1qxxcTRGbvtCmsE5/zUr8qutmjuAymK/hdatm9LylGf9qQgnG ywYe8aZHX+G2w== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v3xcE-0000000BJ9N-38G3; Wed, 01 Oct 2025 16:15:34 +0200 From: Mauro Carvalho Chehab To: "Jonathan Corbet" , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , linux-kernel@vger.kernel.org, Randy Dunlap Subject: [PATCH v2 1/3] docs: Makefile: avoid a warning when using without texlive Date: Wed, 1 Oct 2025 16:15:24 +0200 Message-ID: X-Mailer: git-send-email 2.51.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" As reported by Randy, running make htmldocs on a machine without textlive now produce warnings: $ make O=3DDOCS htmldocs ../Documentation/Makefile:70: warning: overriding recipe for target 'pd= fdocs' ../Documentation/Makefile:61: warning: ignoring old recipe for target '= pdfdocs' That's because the code has now two definitions for pdfdocs in case $PDFLATEX command is not found. With the new script, such special case is not needed anymore, as the script checks it. Drop the special case. Even after dropping it, on a machine without LaTeX, it will still produce an error as expected, as running: $ ./tools/docs/sphinx-build-wrapper pdfdocs Error: pdflatex or latexmk required for PDF generation does the check. After applying the patch we have: $ make SPHINXDIRS=3Dpeci htmldocs Using alabaster theme Using Python kernel-doc $ make SPHINXDIRS=3Dpeci pdfdocs Error: pdflatex or latexmk required for PDF generation make[2]: *** [Documentation/Makefile:64: pdfdocs] Error 1 make[1]: *** [/root/Makefile:1808: pdfdocs] Error 2 make: *** [Makefile:248: __sub-make] Error 2 Which is the expected behavior. Reported-by: Randy Dunlap Link: https://lore.kernel.org/linux-doc/e7c29532-71de-496b-a89f-743cef28736= e@infradead.org/ Signed-off-by: Mauro Carvalho Chehab --- Documentation/Makefile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index c60db1038c9c..f764604fa1ac 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -66,20 +66,15 @@ htmldocs mandocs infodocs texinfodocs latexdocs epubdoc= s xmldocs pdfdocs linkche --builddir=3D"$(BUILDDIR)" --deny-vf=3D$(FONTS_CONF_DENY_VF) \ --theme=3D$(DOCS_THEME) --css=3D$(DOCS_CSS) --paper=3D$(PAPER) =20 -# Special handling for pdfdocs -ifneq ($(shell which $(PDFLATEX) >/dev/null 2>&1; echo $$?),0) -pdfdocs: - $(warning The '$(PDFLATEX)' command was not found. Make sure you have it = installed and in PATH to produce PDF output.) - @echo " SKIP Sphinx $@ target." -endif =20 -htmldocs-redirects: $(srctree)/Documentation/.renames.txt - @tools/docs/gen-redirects.py --output $(BUILDDIR) < $< -endif # HAVE_SPHINX +endif =20 # The following targets are independent of HAVE_SPHINX, and the rules shou= ld # work or silently pass without Sphinx. =20 +htmldocs-redirects: $(srctree)/Documentation/.renames.txt + @tools/docs/gen-redirects.py --output $(BUILDDIR) < $< + refcheckdocs: $(Q)cd $(srctree);scripts/documentation-file-ref-check =20 --=20 2.51.0 From nobody Wed Oct 1 20:28:50 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 E91CE70814; Wed, 1 Oct 2025 14:15:36 +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=1759328137; cv=none; b=qxVz2Ur2LOFDz+CeEvgi6kpyq4F9yHaAXgY6fig/5ewUpR7jQFeSnHV2yOq5rYI+KoWlatiDxB/b9h/h0vtJSzcktdAJ2md9WxFyuYpfHMDongUf0jkXNagcHnHAgddLjIg6RhE7Od4H9RLOergNEeIw9CkQzdoDaTlcgJCgImo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759328137; c=relaxed/simple; bh=ByrMKW6U9oaI4lD+zo8zFpFS4hv7Szimd0l86ILcZmc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NtphAWM//mdxV0UXxs1nviHxNMA2BYaol11puyIoLclUXi7HQE4tJ6Ol+X8pnmHd1s3WiWX2tUQpdUe+U/IEPPDMUY8a5hWCH33A2+qco5LaIS2LLrlqf0CzG1PiKUvlLMj1NarZD4NbMKmqvJbhBduKtNaLGSp2NoWknDN9sA8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dAMRMnLk; 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="dAMRMnLk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89195C4CEFA; Wed, 1 Oct 2025 14:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759328136; bh=ByrMKW6U9oaI4lD+zo8zFpFS4hv7Szimd0l86ILcZmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAMRMnLkABaPgeVImbKFr2GlnwxNEs6uRbTyqu59AZ8LtdkTlsxEFoSQ/bNRT0yhH i/wr596D1r2aLRdTsTcdzw3rFo+jljjm+adia8b+s8m5BK3TkeGLbz1fmEHh0pjLd7 6oh92rPrsR2eb84THYI4zf3J+F1g8JPjpqhUgSralOc6fsJaygMS4u0QLDzkLDM4By zfE5mPOwLiveAFroi+c9DOiXB8+tgw/k3rZUPPWuukkxMnRsq7JrwCDLPUFmbeX3FL IYfAKt8Lh60Bx6/885wdT/OGQ1z55MFAGbZU4hKjO4xNHzoiZA5Vf3iD8wXxp3PXMF azZ5KxN332vnQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v3xcE-0000000BJ9R-3F5M; Wed, 01 Oct 2025 16:15:34 +0200 From: Mauro Carvalho Chehab To: "Jonathan Corbet" , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , linux-kernel@vger.kernel.org, Akira Yokosawa Subject: [PATCH v2 2/3] tools/docs: sphinx-build-wrapper: pdflatex is needed only for pdf Date: Wed, 1 Oct 2025 16:15:25 +0200 Message-ID: <313df7b4aab653e8fc40c30120c0dbebf8a0bcb1.1759328070.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.51.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" Fix the logic which checks for pdflatex. Currently, it complains for both pdfdocs and latexdocs, but for the latter, all it is needed is Sphinx. Reported-by: Akira Yokosawa Closes: https://lore.kernel.org/linux-doc/cover.1758881658.git.mchehab+huaw= ei@kernel.org/T/#ma81ff2e11b8579e5edc23e4381e464081ae668b7 Signed-off-by: Mauro Carvalho Chehab --- tools/docs/sphinx-build-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docs/sphinx-build-wrapper b/tools/docs/sphinx-build-wrap= per index cce985dced00..a74998e8309a 100755 --- a/tools/docs/sphinx-build-wrapper +++ b/tools/docs/sphinx-build-wrapper @@ -650,7 +650,7 @@ class SphinxBuilder: if not sphinxbuild and target !=3D "mandocs": sys.exit(f"Error: {self.sphinxbuild} not found in PATH.\n") =20 - if builder =3D=3D "latex": + if target =3D=3D "pdfdocs": if not self.pdflatex_cmd and not self.latexmk_cmd: sys.exit("Error: pdflatex or latexmk required for PDF gene= ration") =20 --=20 2.51.0 From nobody Wed Oct 1 20:28:50 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 26B481D9663; Wed, 1 Oct 2025 14:15:36 +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=1759328137; cv=none; b=shN9o9ux08Zdf/45uxVdUpFElPLssieCVpLyD+QOAI1bbXw+ct/ePeHsotG+L0zMMQtWrlIyCUIUKTtghGNEyBAdp08Q3drbo2H4Gwon/q6+5A2BPH/uStK+4gz0zB2TsgRBExKRcwf4HQHy8DK8QCq/mrsK+CX+2b7LMMXSlHU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759328137; c=relaxed/simple; bh=poQHc0zUbKi61U3MBi9zrVxyTLo30MnCelCecnP23IY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LR/QVMi7buEnRZzHKDzurUxDs4ImKSpzDIbDAXnhQmsgiu9dAeTyrs1rGSl9elaldZTNJjW91FSy1k9JvuIkYcWDZWxz+XEykhJxOyOA3uJ+Ec7GvdnpwG0vMlu+Y05HgR2anbn87W2wRWpkinH+45ShxwDhL0RoAnt6KvhtEqM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OZxkeUKF; 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="OZxkeUKF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CF55C4CEFB; Wed, 1 Oct 2025 14:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759328136; bh=poQHc0zUbKi61U3MBi9zrVxyTLo30MnCelCecnP23IY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZxkeUKF0TF/wLILhFVfszckjTsin7PEfSFK3zlB87zXTGDiQnxGWC1Kgiw8hMesN KHQgMCX0Bnd4W1Bpowyuc8Uw3aOPmr8lVDa78RE4M56JGxgMUdfqsrNLRuRauGTdXc +GcnMPJF67agz47HebhpwIv38mHEtpB8lIg0m7yJkU387SRWlxY5NL2E5ySr3AZseZ TRWqLIazV2h7XSCLP3VirfpzKK3AJj61Dw6R1XH+2sovQwcOzN7x2WMdIG7+ketvxJ QCDFNXPE5SluVAiZZRLcy5DEslDY18UBe+jxroxHkdwN4mtT7xsjFfEhi5naKwfLte W5p3vyHUMmrVg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v3xcE-0000000BJ9V-3Log; Wed, 01 Oct 2025 16:15:34 +0200 From: Mauro Carvalho Chehab To: "Jonathan Corbet" , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] docs: Makefile: use PYTHONPYCACHEPREFIX Date: Wed, 1 Oct 2025 16:15:26 +0200 Message-ID: <8c37576342994ea0e3466eec2602a8d989d9a5f0.1759328070.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.51.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" Previous cleanup patches ended dropping it when sphinx-build-wrapper were added. Also, sphinx-pre-install can also generate caches. So, re-add it for both. Signed-off-by: Mauro Carvalho Chehab --- Documentation/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index f764604fa1ac..65d184eab739 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -60,8 +60,10 @@ else # HAVE_SPHINX =20 # Common documentation targets htmldocs mandocs infodocs texinfodocs latexdocs epubdocs xmldocs pdfdocs l= inkcheckdocs: - $(Q)@$(srctree)/tools/docs/sphinx-pre-install --version-check - +$(Q)$(PYTHON3) $(BUILD_WRAPPER) $@ \ + $(Q)PYTHONPYCACHEPREFIX=3D"$(PYTHONPYCACHEPREFIX)" \ + $(srctree)/tools/docs/sphinx-pre-install --version-check + +$(Q)PYTHONPYCACHEPREFIX=3D"$(PYTHONPYCACHEPREFIX)" \ + $(PYTHON3) $(BUILD_WRAPPER) $@ \ --sphinxdirs=3D"$(SPHINXDIRS)" $(RUSTDOC) \ --builddir=3D"$(BUILDDIR)" --deny-vf=3D$(FONTS_CONF_DENY_VF) \ --theme=3D$(DOCS_THEME) --css=3D$(DOCS_CSS) --paper=3D$(PAPER) --=20 2.51.0