rpm/findksyms.diff

57 lines
1.6 KiB
Diff
Raw Normal View History

--- ./scripts/Makefile.am.orig 2017-01-19 12:33:33.358599138 +0000
+++ ./scripts/Makefile.am 2017-01-19 12:35:00.045359629 +0000
@@ -16,6 +16,7 @@ EXTRA_DIST = \
tgpg vpkg-provides.sh \
find-requires find-provides \
find-requires.php find-provides.php \
+ find-requires.ksyms find-provides.ksyms \
mono-find-requires mono-find-provides \
ocaml-find-requires.sh ocaml-find-provides.sh \
pkgconfigdeps.sh libtooldeps.sh appdata.prov \
@@ -32,6 +33,7 @@ rpmconfig_SCRIPTS = \
check-buildroot check-rpaths check-rpaths-worker \
find-lang.sh find-requires find-provides \
perl.prov perl.req pythondeps.sh \
+ 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 2017-01-19 12:33:33.359599136 +0000
+++ ./scripts/find-provides.ksyms 2017-01-19 12:33:33.359599136 +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 2017-01-19 12:33:33.359599136 +0000
+++ ./scripts/find-requires.ksyms 2017-01-19 12:33:33.359599136 +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