From: Jan Stancek <jstancek(a)redhat.com>
kernel.spec: fix libperf-debuginfo content
Forward-port c9s commit:
bd17da749d74 ("[redhat] kernel.spec: fix libperf-debuginfo content")
Due to incorrect searching pattern, libperf-debuginfo package
contained only symlinks and actual libperf.so.0.0.1.debug went
into kernel-debuginfo-common package.
Fix the search pattern, so that
/usr/lib/debug/usr/lib64/libperf.so.0.0.1.debug
gets into the proper debuginfo subpackage.
Signed-off-by: Michael Petlan <mpetlan(a)redhat.com>
Signed-off-by: Jan Stancek <jstancek(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -1149,7 +1149,7 @@ This package provides debug information for the libperf package.
# symlinks because of the trailing nonmatching alternation and
# the leading .*, because of find-debuginfo.sh's buggy handling
# of matching the pattern against the symlinks file.
-%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p
'.*%%{_libdir}/libperf.so(\.debug)?|XXX' -o libperf-debuginfo.list}
+%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p
'.*%%{_libdir}/libperf.so.*(\.debug)?|XXX' -o libperf-debuginfo.list}
# with_libperf
%endif
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3043