From nobody Wed Oct 1 22:32:40 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 B34AC27E04C; Mon, 29 Sep 2025 08:54:07 +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=1759136047; cv=none; b=ZKcEhkfvw1/mgCUJSUegPOJleW1r9+/C9xHgGITZ1wtYJBpN6mR9dVvME+sp0vATGU9Uls6BvlvnBc1X45Cf7zUmlpN5+GCTkvdC/4q7hKiBPYn9ADlNiSsSssvnTG6U29jZITUsuw4zRNVVupQDVSyv6WUM48tiDUsriULMWkI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759136047; c=relaxed/simple; bh=qmAx3BU5iYpF0BhCqjMwryZ9h4swiPNSkQhkpvI834A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OSy09KhlG5NW10/faDOzwunhhehwVjj5Ix484E9w3/aoCtgewd8XuKF0N3R1UfJ293i53ukG6wLwKmDlQKwgOi3mtpg4aXNaDarOlW2Uw/Ia1T57kEuctkxwLN779ZhQbMBTROWWlRgFSF2ucjB/Gn+CyfN+I+sjow1E87dyTns= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k2Ln2C9S; 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="k2Ln2C9S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 673BAC4CEF5; Mon, 29 Sep 2025 08:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759136047; bh=qmAx3BU5iYpF0BhCqjMwryZ9h4swiPNSkQhkpvI834A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k2Ln2C9STkQUXU5rWhlWXnGOaW9Uv2XytplcMDqHPGHRIYiNs44j6pI5oCJXK+m3/ eo6PbQU9TMD3U8cF2pl0SbG+p2Lsa1be/C4zWtmVLHlTBUfA5oz68w48OGWIVJVGNx e3x8eaASe1+Wm38I5S5xTh6lLP3mG1OD+Xm2zX2Myl0ra9CJHflzniWjDEmn1y4H5s XWtPrHVws4PMPMZJZdfbWMFUgYQqCsoQAdmAXoSXcAU5CCdU6RTh+iNMsy16NGJzbu PkdVQ4tUz1CjcrmrAmuLi111u+bodT7WZdmyEKl5D3vS1kmt4t3etDL5JfRrL9Z/08 83sVYBWYTE9Bg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v39e1-00000009dSF-21WI; Mon, 29 Sep 2025 10:54:05 +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 1/3] docs: Makefile: avoid a warning when using without texlive Date: Mon, 29 Sep 2025 10:53:28 +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 Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- 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 22:32:40 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 D2A6527F012; Mon, 29 Sep 2025 08:54:07 +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=1759136047; cv=none; b=fKwxWGA8wYtgFyZK0VcQOreHoOX4awIU4vxvIaqXR6ZPHMoBiZ5ViFWANcVSFw0Q/adMP33MfrMXZgYV54jfOmlHUKBEEef/EILy623C1MbiXjm9vDtDI3JKF5FuG54fFFf600xYXHW6qQd7mqLldNyYGLAHYpSDJ7KihhIDlUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759136047; c=relaxed/simple; bh=f2nvQNoldy0Wr0lssrlNF9UVO/sGaqRBBP1u0vyUoFM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZLhqlXlVy5xzBe+fYytIgmj5tq14fAfuEMJjZ4L87U6P+OObDuJF1MyKYygh5BLioKUJIuOvcooEhb3EpmqPrUK6CLx1qoHQDj7/TaI5g8osMX/9PTyQz7yk+nJyYDIaA13kJP/unS46lZV7USVE4YIr2yfpSZImFdgzYku8Cqc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IzOyU37h; 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="IzOyU37h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89FB3C19421; Mon, 29 Sep 2025 08:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759136047; bh=f2nvQNoldy0Wr0lssrlNF9UVO/sGaqRBBP1u0vyUoFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IzOyU37h0LYHQBxkuVhOn+byCi9x0mogP2akPVmofET6ImL3xSamgmJUHTBxMg4IY gOD6YHDge5v9S3CBs8Iod/+DlQjeT8Ze5zW4Rok3MCCssR0YB9hTgAJ3ksOmZpyHFl qm+lSA7hHXlzpwvH8dJSOH7JKhB0m+7ELciDEKzyE3rZZoikB3jrgCnl9AqpvTj1YF BmylS4Dkvy3m27tt+iiyO9LqyYVEQT+YKip8BPL9l0hhLd6OqVgRz0PqZ8BwBis8Nt vywK5ISJ1gM6vUpzLxO7GbyJe8MScCNgOcE+DzEFcDyEE77tdVM5Xi0lXuUO7Ud0Uw 6f1v+DlFwS0zQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v39e1-00000009dSJ-27sn; Mon, 29 Sep 2025 10:54:05 +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 2/3] tools/docs: sphinx-build-wrapper: pdflatex is needed only for pdf Date: Mon, 29 Sep 2025 10:53:29 +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" 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 22:32:40 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 07EFF2BEFE8; Mon, 29 Sep 2025 08:54:07 +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=1759136048; cv=none; b=eD9Y6RxOjN9MS0VHHaSRARmPu3jeCHO8/aBS0FfyYUx8VtjMCSSqH+FDXwlX6uop7wrIK8QN/urEhDRo1SUL9JaeRMwq0gc0B1jFD4cHpvIk+0lFA+dmJtmMPcswOJMOoI/w+IJlhEDWVddW96URrrBGWH5CtX104j8QBiRzwcs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759136048; c=relaxed/simple; bh=VblHNgwcKUasqczayKzhX0tS6LvSdnh19eIzfXV+JJA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JpNqLvE9gLMR4pgBnFEnU9TXXTB6cC95LKcehbiaXyKiwkbn7yo1ze92vGx24evCUeZgJ21AhS4/h17fWYkR4C3kXeEM1FR1TJrf93gkogoowtwV6n6vk3bpprKt6GN2cvDjhVpFpWwLPQl2HoAH0CzD0UiI1saBHOltzzKm680= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D2ecV4X2; 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="D2ecV4X2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A729C19422; Mon, 29 Sep 2025 08:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759136047; bh=VblHNgwcKUasqczayKzhX0tS6LvSdnh19eIzfXV+JJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D2ecV4X2YxBTd2Xv7J7ByRDgaXm8dR+Nx6fNyYOrrqBG36HFlONCga331IOGsSUOT De4HVkYVD3yYhjIYjKicAjI0LjXO+0pCLoPJz1rKsPtVkdKSC2vlq/z9jtVsuqL1pd 172UFz9iFeWAjPzR0XHNeHYCoDzWZP281dbI0blw0yAVnQ/s0IMQybZAoKA4kdezCa v8Hsn8qpnQsB3nYONbTFUh7x78nQ+u+w18pNMMk5l4onDx4JocEYJI3y26DLDVV4Bc ffacQdf6ElxBKzBxHhMHLCjH2g5a9Sm46VWA68WZyXDyV7Z7phAeDBFlzEps7Z2lIe uLznz6vNsvBaw== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1v39e1-00000009dSN-2EKq; Mon, 29 Sep 2025 10:54:05 +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 3/3] docs: Makefile: use PYTHONPYCACHEPREFIX Date: Mon, 29 Sep 2025 10:53:30 +0200 Message-ID: <65f341d516c329e2b57252176b188ae68f3bb6ca.1759135339.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..cf26d5332fb5 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