From cc5344c96dd9f8af2a24708efaf014033104df2a Mon Sep 17 00:00:00 2001 From: Eugene Syromiatnikov Date: Mon, 13 Aug 2018 23:10:06 +0200 Subject: [PATCH] Re-instantiate support for old symvers path As it breaks bz1004930-detect-kabi-provides test[1] otherwise. [1] http://pkgs.devel.redhat.com/cgit/tests/redhat-rpm-config/tree/Sanity/bz1004930-detect-kabi-provides - Re-instantiate support for old symvers path * kabi.attr (%__kabi_path): Add "/boot/symvers-.*" to the path matching regular expression. * kabi.sh: Likewise. Resolves: #1942563 Resolves: #2008554 Signed-off-by: Eugene Syromiatnikov --- kabi.attr | 2 +- kabi.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kabi.attr b/kabi.attr index 85d30a2..2d81387 100644 --- a/kabi.attr +++ b/kabi.attr @@ -1,2 +1,2 @@ %__kabi_provides %{_rpmconfigdir}/kabi.sh -%__kabi_path ^/lib/modules/[1-9].*/symvers.gz$ +%__kabi_path ^(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz$ diff --git a/kabi.sh b/kabi.sh index 0afa5ad..59b2b86 100644 --- a/kabi.sh +++ b/kabi.sh @@ -7,7 +7,7 @@ IFS=$'\n' -for symvers in $(grep -E '/lib/modules/[1-9].*/symvers\.gz') "$@"; +for symvers in $(grep -E '(/boot/symvers-.*|/lib/modules/[1-9].*/symvers)\.gz') "$@"; do zcat $symvers | awk ' {print "kernel(" $2 ") = " $1 }' done