From 94957f065594ed4bd7f6d36319e98fd97dc131f1 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 24 Aug 2021 19:30:06 +0530 Subject: [PATCH] Disable dependencies and linking for libc_malloc_debug.so Do not provide anything from libc_malloc_debug.so and do not allow linking against it. Resolves: #1985048 --- glibc.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index 8e1fd21..59fd960 100644 --- a/glibc.spec +++ b/glibc.spec @@ -151,7 +151,7 @@ end \ Summary: The GNU libc libraries Name: glibc Version: %{glibcversion} -Release: 2%{?dist} +Release: 3%{?dist} # In general, GPLv2+ is used by programs, LGPLv2+ is used for # libraries. @@ -342,6 +342,7 @@ BuildRequires: perl-interpreter # Filter out all GLIBC_PRIVATE symbols since they are internal to # the package and should not be examined by any other tool. %global __filter_GLIBC_PRIVATE 1 +%global __provides_exclude ^libc_malloc_debug\\.so.*$ # For language packs we have glibc require a virtual dependency # "glibc-langpack" wich gives us at least one installed langpack. @@ -1483,6 +1484,9 @@ mkdir -p %{glibc_sysroot}%{_libdir} mv -f %{glibc_sysroot}/%{_lib}/lib{pcprofile,memusage}.so \ %{glibc_sysroot}%{_libdir} +# Disallow linking against libc_malloc_debug. +rm %{glibc_sysroot}%{_libdir}/libc_malloc_debug.so + # Strip all of the installed object files. strip -g %{glibc_sysroot}%{_libdir}/*.o @@ -2257,6 +2261,9 @@ fi %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %changelog +* Tue Aug 24 2021 Siddhesh Poyarekar - 2.34.9000-3 +- Disable dependencies and linking for libc_malloc_debug.so (#1985048). + * Tue Aug 17 2021 DJ Delorie - 2.34.9000-2 - Auto-sync with upstream branch master, commit b37b75d269883a2c553bb7019a813094eb4e2dd1.