lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260129175321.415295-1-i@rong.moe>
Date: Fri, 30 Jan 2026 01:49:55 +0800
From: Rong Zhang <i@...g.moe>
To: Nathan Chancellor <nathan@...nel.org>,
	Nicolas Schier <nsc@...nel.org>,
	Masahiro Yamada <masahiroy@...nel.org>
Cc: Rong Zhang <i@...g.moe>,
	linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] kbuild: install-extmod-build: Add missing python libraries

scripts/lib has been moved to tools/lib/python recently. Since then, I
got a regression while building out-of-tree modules with W=<anything>
(1/2/3/c/e):

  $ make -C /lib/modules/6.19.0-rc6/build/ M="$(pwd)" modules V=1 W=1
  [...]
  make -f /usr/src/linux-headers-6.19.0-rc6/scripts/Makefile.build obj=. need-builtin=1 need-modorder=1
  # CC [M]  mod.o
  [...]
  # cmd_checkdoc mod.o
  PYTHONDONTWRITEBYTECODE=1 python3 /usr/src/linux-headers-6.19.0-rc6/scripts/kernel-doc.py -none mod.c
  Traceback (most recent call last):
    File "/usr/src/linux-headers-6.19.0-rc6/scripts/kernel-doc.py", line 339, in <module>
      main()
      ~~~~^^
    File "/usr/src/linux-headers-6.19.0-rc6/scripts/kernel-doc.py", line 295, in main
      from kdoc.kdoc_files import KernelFiles             # pylint: disable=C0415
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ModuleNotFoundError: No module named 'kdoc'
  make[3]: *** [/usr/src/linux-headers-6.19.0-rc6/scripts/Makefile.build:287: mod.o] Error 1

Fix it by installing python libraries from tools/lib/python.

Fixes: 778b8ebe5192 ("docs: Move the python libraries to tools/lib/python")
Signed-off-by: Rong Zhang <i@...g.moe>
---
 scripts/package/install-extmod-build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build
index 2576cf7902dbb..a15de610afed3 100755
--- a/scripts/package/install-extmod-build
+++ b/scripts/package/install-extmod-build
@@ -20,6 +20,7 @@ mkdir -p "${destdir}"
 (
 	cd "${srctree}"
 	echo Makefile
+	echo tools/lib/python # required by scripts
 	find "arch/${SRCARCH}" -maxdepth 1 -name 'Makefile*'
 	find "arch/${SRCARCH}" -name generated -prune -o -name include -type d -print
 	find "arch/${SRCARCH}" -name Kbuild.platforms -o -name Platform

base-commit: 8dfce8991b95d8625d0a1d2896e42f93b9d7f68d
-- 
2.51.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ