[arch-commits] Commit in kmod/trunk (PKGBUILD depmod.script)

Christian Hesse eworm at gemini.archlinux.org
Mon Apr 4 11:34:49 UTC 2022


    Date: Monday, April 4, 2022 @ 11:34:49
  Author: eworm
Revision: 441511

upgpkg: kmod 29-3: prepare to remove mutable modules

Modified:
  kmod/trunk/PKGBUILD
  kmod/trunk/depmod.script

---------------+
 PKGBUILD      |    9 +++++++--
 depmod.script |    6 +++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 11:26:34 UTC (rev 441510)
+++ PKGBUILD	2022-04-04 11:34:49 UTC (rev 441511)
@@ -2,7 +2,7 @@
 
 pkgname=kmod
 pkgver=29
-pkgrel=2
+pkgrel=3
 pkgdesc="Linux kernel module management tools and library"
 arch=('x86_64')
 url='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
@@ -21,7 +21,12 @@
          'SKIP'
          'dd62cbf62bd8f212f51ef8c43bec9a77'
          'e179ace75721e92b04b2e145b69dab29'
-         '18fb3d1f6024a5a84514c8276cb3ebff')
+         'b00253ca0d4ebfb2414e4596597bdebd')
+sha256sums=('0b80eea7aa184ac6fd20cafa2a1fdf290ffecc70869a797079e2cc5c6225a52a'
+            'SKIP'
+            '1a92bfeae870f61ce814577e69d2a147a9c0caf6aed1131243e4179241fcc4a8'
+            'c11c2a0f66ea405493e8617689ca10818dc81dd1dddc19bdb220c8b2917119c1'
+            'd2cd04a09feba30e1376144a8110ec7521892acb0940c3c4ba459aeecf0452ed')
 
 build() {
   cd "$pkgname-$pkgver"

Modified: depmod.script
===================================================================
--- depmod.script	2022-04-04 11:26:34 UTC (rev 441510)
+++ depmod.script	2022-04-04 11:34:49 UTC (rev 441511)
@@ -1,8 +1,12 @@
 #!/bin/bash
 
 while read -r f; do
-  if [[ -e ${f}vmlinuz ]]; then
+  if [[ -e ${f}modules.order ]]; then
     depmod $(basename "$f")
+  elif [[ -d $f ]]; then
+    rm -f "${f}"modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
+          "${f}"modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
+    rmdir --ignore-fail-on-non-empty "$f"
   fi
 done
 



More information about the arch-commits mailing list