kmod: added a patch to unbreak modprobe --show-depends for some modules, revbump.

This commit is contained in:
Juan RP 2012-02-07 06:15:02 +01:00
parent f6eb65cea6
commit c67c0afda9
3 changed files with 22 additions and 0 deletions

View File

@ -5,6 +5,8 @@ long_desc="${long_desc}
This package provides the libkmod runtime shared library."
revision=1
do_install() {
vmove "usr/lib/*.so*" usr/lib
}

View 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

View File

@ -1,6 +1,7 @@
# Template file for 'kmod'
pkgname=kmod
version=5
revision=1
homepage="http://git.profusion.mobi/cgit.cgi/kmod.git"
distfiles="http://packages.profusion.mobi//$pkgname/$pkgname-$version.tar.xz"
build_style=gnu-configure