Christian Heusel pushed to branch main at Arch Linux / Packaging / Packages / 
dkms


Commits:
b427f48c by Emil Velikov at 2024-10-14T23:18:56+02:00
Remove manual /lib/modules patching

With 3.0.13 one can provide the path, so there's no need to manually
patch things.

Signed-off-by: Emil Velikov <[email protected]>

- - - - -
4551e511 by Emil Velikov at 2024-10-14T23:18:57+02:00
Remove unused prepare() section

The function includes a "apply patches" loop, which has been unused 
for
a while. In theory one might need this in the future, although it would
be better to poke/ask for a release upstream and I can do one within
minutes.

Signed-off-by: Emil Velikov <[email protected]>

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -27,25 +27,6 @@ sha256sums=('SKIP'
             'cc04280e8eb095f4950f5e3c6b2997fbc8d5862d79c5ae29d5943b8ac204d0d4'
             'c1b4a4e2e4e0e0e59ee0887403e79d60b209f3878dbbec6612573f13b90cce01')
 
-prepare() {
-  cd dkms
-
-  # apply patch from the source array (should be a pacman feature)
-  local filename
-  for filename in "${source[@]}"; do
-    if [[ "$filename" =~ \.patch$ ]]; then
-      msg2 "Applying patch ${filename##*/}"
-      patch -p1 -N -i "$srcdir/${filename##*/}"
-    fi
-  done
-
-  # /usr move
-  msg2 '/usr move patching'
-  for i in dkms{.in,.8.in,_framework.conf,.bash-completion,_common.postinst}; 
do
-    sed -ri 's,/lib/modules,/usr/lib/modules,g' "$i"
-  done
-}
-
 package() {
   # alpm hooks
   install -D -m 644 hook.install 
"$pkgdir/usr/share/libalpm/hooks/70-dkms-install.hook"
@@ -66,6 +47,7 @@ package() {
     SBIN=/usr/bin \
     KCONF=/../trash \
     LIBDIR=/../trash \
+    MODDIR=/usr/lib/modules \
     install
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/dkms/-/compare/d3339fc9d360dbced99817294e1efc6a7e482381...4551e511f1e9985bf890df6d19fc245b2f49edc7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/dkms/-/compare/d3339fc9d360dbced99817294e1efc6a7e482381...4551e511f1e9985bf890df6d19fc245b2f49edc7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to