From de4975d0d43400eb22d01aab627d0c94d5a89cfc Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 29 Jul 2026 18:29:14 -0400 Subject: [PATCH] Stop shipping glibc32-debuginfo (RHEL-142225) By stripping the symbol table from the glibc32 shared objects, we disable the creation of debuginfo packages, which we do not need nor want to ship. Resolves: RHEL-142225 --- glibc.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/glibc.spec b/glibc.spec index 7c78286..da6bd11 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1437,6 +1437,15 @@ rm -rf etc var usr/bin usr/lib/gconv usr/libexec usr/sbin usr/share rm -f lib/libnss_db* lib/libnss_hesiod* lib/libnsl* usr/lib/libnsl* usr/lib/libnss* rm usr/lib/libc_malloc_debug.so strip -g usr/lib/*.o +for f in usr/lib/*.so; do + case "$f" in + # libc.so is a text file, not an object + usr/lib/libc.so ) ;; + * ) strip $f ;; + esac +done +strip usr/lib/*.so.? +strip usr/lib/audit/*.so popd mkdir glibc32-headers cp -a %{glibc_sysroot}%{_includedir} glibc32-headers