2014-01-20 12:51:31 +00:00
|
|
|
diff -up rpm-4.11.2-rc1/fileattrs/kmod.attr.kmod-provides rpm-4.11.2-rc1/fileattrs/kmod.attr
|
|
|
|
--- rpm-4.11.2-rc1/fileattrs/kmod.attr.kmod-provides 2014-01-20 11:47:48.325409810 +0200
|
|
|
|
+++ rpm-4.11.2-rc1/fileattrs/kmod.attr 2014-01-20 11:47:48.325409810 +0200
|
2013-12-03 07:26:52 +00:00
|
|
|
@@ -0,0 +1,2 @@
|
|
|
|
+%__kmod_provides %{_rpmconfigdir}/kmod.prov
|
|
|
|
+%__kmod_path ^/lib/modules/.*$
|
2014-01-20 12:51:31 +00:00
|
|
|
diff -up rpm-4.11.2-rc1/fileattrs/Makefile.am.kmod-provides rpm-4.11.2-rc1/fileattrs/Makefile.am
|
|
|
|
--- rpm-4.11.2-rc1/fileattrs/Makefile.am.kmod-provides 2014-01-20 11:47:48.325409810 +0200
|
|
|
|
+++ rpm-4.11.2-rc1/fileattrs/Makefile.am 2014-01-20 11:49:31.764544198 +0200
|
|
|
|
@@ -7,6 +7,6 @@ fattrsdir = $(rpmconfigdir)/fileattrs
|
2013-12-03 07:26:52 +00:00
|
|
|
fattrs_DATA = \
|
2014-01-20 12:51:31 +00:00
|
|
|
appdata.attr desktop.attr elf.attr font.attr libtool.attr perl.attr \
|
|
|
|
perllib.attr pkgconfig.attr python.attr ocaml.attr script.attr \
|
|
|
|
- mono.attr
|
|
|
|
+ mono.attr kmod.attr
|
2013-12-03 07:26:52 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = $(fattrs_DATA)
|
2014-01-20 12:51:31 +00:00
|
|
|
diff -up rpm-4.11.2-rc1/scripts/kmod.prov.kmod-provides rpm-4.11.2-rc1/scripts/kmod.prov
|
|
|
|
--- rpm-4.11.2-rc1/scripts/kmod.prov.kmod-provides 2014-01-20 11:47:48.325409810 +0200
|
|
|
|
+++ rpm-4.11.2-rc1/scripts/kmod.prov 2014-01-20 11:47:48.325409810 +0200
|
2013-12-03 07:26:52 +00:00
|
|
|
@@ -0,0 +1,17 @@
|
|
|
|
+#!/bin/sh +x
|
|
|
|
+
|
|
|
|
+IFS=$'\n'
|
|
|
|
+
|
|
|
|
+for i in $(grep -E '(/lib/modules/.*\.ko|/lib/modules/.*/modules.builtin)');
|
|
|
|
+do
|
|
|
|
+ kmod=$(basename $i);
|
|
|
|
+
|
|
|
|
+ if [ $kmod == "modules.builtin" ]; then
|
|
|
|
+ for j in $(cat $i); do
|
|
|
|
+ j=$(basename $j);
|
|
|
|
+ echo "kmod($j)"
|
|
|
|
+ done
|
|
|
|
+ else
|
|
|
|
+ echo "kmod($kmod)"
|
|
|
|
+ fi
|
|
|
|
+done
|
2014-01-20 12:51:31 +00:00
|
|
|
diff -up rpm-4.11.2-rc1/scripts/Makefile.am.kmod-provides rpm-4.11.2-rc1/scripts/Makefile.am
|
|
|
|
--- rpm-4.11.2-rc1/scripts/Makefile.am.kmod-provides 2014-01-17 13:17:29.000000000 +0200
|
|
|
|
+++ rpm-4.11.2-rc1/scripts/Makefile.am 2014-01-20 11:50:24.065601168 +0200
|
|
|
|
@@ -20,7 +20,7 @@ EXTRA_DIST = \
|
2013-12-03 07:26:52 +00:00
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
2014-01-20 12:51:31 +00:00
|
|
|
pkgconfigdeps.sh libtooldeps.sh appdata.prov \
|
2013-12-03 07:26:52 +00:00
|
|
|
fontconfig.prov desktop-file.prov script.req \
|
|
|
|
- macros.perl macros.php macros.python
|
|
|
|
+ macros.perl macros.php macros.python kmod.prov
|
|
|
|
|
|
|
|
rpmconfig_SCRIPTS = \
|
|
|
|
brp-compress brp-python-bytecompile brp-java-gcjcompile \
|
2014-01-20 12:51:31 +00:00
|
|
|
@@ -34,7 +34,7 @@ rpmconfig_SCRIPTS = \
|
2013-12-03 07:26:52 +00:00
|
|
|
pkgconfigdeps.sh libtooldeps.sh \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
|
|
fontconfig.prov desktop-file.prov script.req \
|
|
|
|
- rpmdb_loadcvt rpm2cpio.sh tcl.req tgpg
|
|
|
|
+ rpmdb_loadcvt rpm2cpio.sh tcl.req tgpg kmod.prov
|
|
|
|
|
|
|
|
rpmconfig_DATA = \
|
|
|
|
rpm.daily rpm.log rpm.supp \
|