kmod: added a patch to unbreak modprobe --show-depends for some modules, revbump.
This commit is contained in:
parent
f6eb65cea6
commit
c67c0afda9
3 changed files with 22 additions and 0 deletions
|
@ -5,6 +5,8 @@ long_desc="${long_desc}
|
||||||
|
|
||||||
This package provides the libkmod runtime shared library."
|
This package provides the libkmod runtime shared library."
|
||||||
|
|
||||||
|
revision=1
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove "usr/lib/*.so*" usr/lib
|
vmove "usr/lib/*.so*" usr/lib
|
||||||
}
|
}
|
||||||
|
|
19
srcpkgs/kmod/patches/modprobe_show_depends.patch
Normal file
19
srcpkgs/kmod/patches/modprobe_show_depends.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Fixes modprobe --show-depends for some modules i.e ahci
|
||||||
|
from dreisner@archlinux
|
||||||
|
|
||||||
|
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
|
||||||
|
index 0af3e2e..14a0a3d 100644
|
||||||
|
--- libkmod/libkmod-module.c
|
||||||
|
+++ libkmod/libkmod-module.c
|
||||||
|
@@ -1132,7 +1132,9 @@ KMOD_EXPORT int kmod_module_probe_insert_module(struct kmod_module *mod,
|
||||||
|
if (mod == NULL)
|
||||||
|
return -ENOENT;
|
||||||
|
|
||||||
|
- if (module_is_inkernel(mod)) {
|
||||||
|
+ /* ignore module state if this is only for a dry run */
|
||||||
|
+ if (!(flags & KMOD_PROBE_DRY_RUN) && print_action == NULL &&
|
||||||
|
+ module_is_inkernel(mod)) {
|
||||||
|
if (flags & KMOD_PROBE_FAIL_ON_LOADED)
|
||||||
|
return -EEXIST;
|
||||||
|
else
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'kmod'
|
# Template file for 'kmod'
|
||||||
pkgname=kmod
|
pkgname=kmod
|
||||||
version=5
|
version=5
|
||||||
|
revision=1
|
||||||
homepage="http://git.profusion.mobi/cgit.cgi/kmod.git"
|
homepage="http://git.profusion.mobi/cgit.cgi/kmod.git"
|
||||||
distfiles="http://packages.profusion.mobi//$pkgname/$pkgname-$version.tar.xz"
|
distfiles="http://packages.profusion.mobi//$pkgname/$pkgname-$version.tar.xz"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
|
Loading…
Reference in a new issue