Install kernel header files into the sysroot subpackage

Related: #2149644
This commit is contained in:
Florian Weimer 2022-12-10 19:09:46 +01:00
parent 1bc41d2121
commit b02b60a0ea
1 changed files with 12 additions and 1 deletions

View File

@ -148,7 +148,7 @@ end \
Summary: The GNU libc libraries
Name: glibc
Version: %{glibcversion}
Release: 53%{?dist}
Release: 54%{?dist}
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
# libraries.
@ -2025,6 +2025,14 @@ for lib in lib lib64; do
done
done
# Workaround for the lack of a kernel sysroot package. Copy the
# kernel headers into the sysroot.
rpm -ql kernel-headers | grep "^/usr/include" | while read f ; do
if test -f "$f" ; then
install -D "$f" "./$f"
fi
done
# Remove the executable bit from files in the sysroot. This prevents
# debuginfo extraction.
find -type f | xargs chmod a-x
@ -2795,6 +2803,9 @@ fi
%endif
%changelog
* Mon Dec 12 2022 Florian Weimer <fweimer@redhat.com> - 2.34-54
- Install kernel header files into the sysroot subpackage (#2149644)
* Wed Dec 07 2022 Arjun Shankar <arjun@redhat.com> - 2.34-53
- Sync with upstream branch release/2.34/master,
commit a4217408a3d6050a7f42ac23adb6ac7218dca85f: