From b02b60a0ea849df99dccecb599eaddbf5e4eaffc Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Sat, 10 Dec 2022 19:09:46 +0100 Subject: [PATCH] Install kernel header files into the sysroot subpackage Related: #2149644 --- glibc.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 41eddbb..61b5002 100644 --- a/glibc.spec +++ b/glibc.spec @@ -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 - 2.34-54 +- Install kernel header files into the sysroot subpackage (#2149644) + * Wed Dec 07 2022 Arjun Shankar - 2.34-53 - Sync with upstream branch release/2.34/master, commit a4217408a3d6050a7f42ac23adb6ac7218dca85f: