rpm/findksyms.diff

59 lines
1.7 KiB
Diff

SUSE specific kernel provides/requires scripts
--- ./scripts/Makefile.am.orig 2014-08-04 12:34:11.656463310 +0000
+++ ./scripts/Makefile.am 2014-08-04 12:34:15.063448350 +0000
@@ -16,6 +16,7 @@ EXTRA_DIST = \
tcl.req tgpg vpkg-provides.sh \
find-requires find-provides \
find-requires.php find-provides.php \
+ find-requires.ksyms find-provides.ksyms \
find-php-provides find-php-requires \
mono-find-requires mono-find-provides \
ocaml-find-requires.sh ocaml-find-provides.sh \
@@ -33,6 +34,7 @@ rpmconfig_SCRIPTS = \
check-buildroot check-rpaths check-rpaths-worker \
find-lang.sh find-requires find-provides \
perl.prov perl.req perldeps.pl pythondeps.sh osgideps.pl \
+ find-requires.ksyms find-provides.ksyms \
mono-find-requires mono-find-provides \
pkgconfigdeps.sh libtooldeps.sh \
ocaml-find-requires.sh ocaml-find-provides.sh \
--- ./scripts/find-provides.ksyms.orig 2014-08-04 12:34:15.062448349 +0000
+++ ./scripts/find-provides.ksyms 2014-08-04 12:34:15.062448349 +0000
@@ -0,0 +1,17 @@
+#! /bin/bash
+
+IFS=$'\n'
+
+while read f; do
+ test -e "$f" || continue
+ case "$f" in
+ *.debug)
+ ;;
+ */boot/vmlinu[xz]-*)
+ flavor=${f##*/vmlinu[xz]-}
+ flavor=${flavor%.gz}
+ echo "kernel-uname-r = $flavor"
+ ;;
+ esac
+done \
+| sort -u
--- ./scripts/find-requires.ksyms.orig 2014-08-04 12:34:15.062448349 +0000
+++ ./scripts/find-requires.ksyms 2014-08-04 12:34:15.062448349 +0000
@@ -0,0 +1,15 @@
+#! /bin/bash
+
+IFS=$'\n'
+
+while read f; do
+ test -e "$f" || continue
+ case "$f" in
+ */lib/modules/*/*.ko | */lib/modules/*/*.ko.gz)
+ flavor=${f#*/lib/modules/}
+ flavor=${flavor%%/*}
+ echo "kernel-uname-r = $flavor"
+ ;;
+ esac
+done \
+| sort -u