From 61e49c93c9c89e8abab86c96ce162ad7f5f46181 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 30 Jan 2022 19:58:49 +0000 Subject: [PATCH] linux: remove mutable modules.foo files The files are generated by depmod, and as of recently, fully managed by our kmod package. The latter recently grew a depmod-remove.hook to explicitly prune the files. As result `pacman -Qkk linux` no longer complains about "Modification time mismatch" and the full lifecycle of the files is managed by a single package - kmod. Signed-off-by: Emil Velikov --- repos/core-x86_64/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repos/core-x86_64/PKGBUILD b/repos/core-x86_64/PKGBUILD index 7b5e506a..f729f873 100644 --- a/repos/core-x86_64/PKGBUILD +++ b/repos/core-x86_64/PKGBUILD @@ -87,6 +87,11 @@ _package() { echo "Installing modules..." make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install + # remove depmod generated files, managed by our depmod hook + cd "$modulesdir" + rm -f modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \ + modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin} + # remove build and source links rm "$modulesdir"/{source,build} } -- 2.34.1