From: Jan Stancek <jstan...@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 <mpet...@redhat.com>
Signed-off-by: Jan Stancek <jstan...@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
--
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to