diff options
author | Laura Abbott <labbott@redhat.com> | 2019-10-24 09:55:10 -0400 |
---|---|---|
committer | Laura Abbott <labbott@redhat.com> | 2019-10-29 15:28:51 -0400 |
commit | 1cf4120f6fc0cb76a666e9ad9539832403c75314 (patch) | |
tree | d6898bb298aceb6132d68ab0e3a3e49e15a93b03 /kernel.spec | |
parent | c0312b2e60495b2f82b1748d13f9eb20712a746e (diff) | |
download | kernel-1cf4120f6fc0cb76a666e9ad9539832403c75314.tar.gz kernel-1cf4120f6fc0cb76a666e9ad9539832403c75314.tar.xz kernel-1cf4120f6fc0cb76a666e9ad9539832403c75314.zip |
Fix debuginfo
From the original RHEL patch:
This extra '+' causes problems with the regular expression used with
/usr/lib/rpm/find-debuginfo.sh script from rpm-build, which is used to filter
the debug files to the corresponding debuginfo packages. The '+' character
in the release is interpreted as a regular expression operator and the
debuginfo filter fails, with the build failing on an empty debuginfo file list.
Which means we need to escape the extra '+' character if we want debuginfo
filter to work. I tried to use '\' to escape, but rpm "eats" that, in testing
'[+]' worked so is what I'm using to fix/workaround this problem. When RHEL 8
drops the the extra +<number> in the future, we can remove this fix/workaround.
This problem is likely to come up so just add it in now.
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel.spec b/kernel.spec index e9968230c..6d2090fff 100644 --- a/kernel.spec +++ b/kernel.spec @@ -245,6 +245,7 @@ Summary: The Linux kernel %define image_install_path boot %define KVERREL %{version}-%{release}.%{_target_cpu} +%define KVERREL_RE %(echo %KVERREL | sed 's/+/[+]/g') %define hdrarch %_target_cpu %define asmarch %_target_cpu @@ -822,7 +823,7 @@ AutoReqProv: no\ %description %{?1:%{1}-}debuginfo\ This package provides debug information for package %{name}%{?1:-%{1}}.\ This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\ -%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '/.*/%%{KVERREL}%{?1:[+]%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\ +%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '/.*/%%{KVERREL_RE}%{?1:[+]%{1}}/.*|/.*%%{KVERREL_RE}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\ %{nil} # |