public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Add wrapper to export MALLOC_CHECK_=3
Date: Mon, 23 Nov 2026 09:32:32 GMT [thread overview]
Message-ID: <179542635224.1.18170163612150315030.rpms-rpm-8d4a190d354a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 8d4a190d354a90185cc5f8b5530b82ed92dacf1c
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-06-10T20:21:58+02:00
Stats : +10/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/8d4a190d354a90185cc5f8b5530b82ed92dacf1c?branch=pmatilai-v6
Log:
Add wrapper to export MALLOC_CHECK_=3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/rpm.spec b/rpm.spec
index b7688d1..8466261 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
%global rpmver 4.14.90
%global snapver git14653
-%global rel 2
+%global rel 3
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -69,8 +69,6 @@ Requires: %{_bindir}/db_stat
Requires: popt%{_isa} >= 1.10.2.1
Requires: curl
-BuildRequires: libasan
-
%if %{without int_bdb}
BuildRequires: libdb-devel
%endif
@@ -312,9 +310,10 @@ Requires: rpm-libs%{_isa} = %{version}-%{release}
ln -s db-%{bdbver} db
%endif
+find -type f -name '*.c' -exec sed -i -e '/MALLOC_CHECK_/d' {} \+
+
%build
%set_build_flags
-export CFLAGS="$CFLAGS -fsanitize=address"
autoreconf -i -f
@@ -397,6 +396,13 @@ find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
+mv -f %{buildroot}%{_bindir}/rpmbuild{,.real}
+echo > %{buildroot}%{_bindir}/rpmbuild << EOF
+#!/bin/sh
+env MALLOC_CHECK_=3 /usr/bin/rpmbuild.real $@
+EOF
+chmod +x %{_bindir}/rpmbuild
+
%if %{with check}
%check
# https://github.com/rpm-software-management/rpm/issues/741
reply other threads:[~2026-11-23 9:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179542635224.1.18170163612150315030.rpms-rpm-8d4a190d354a@fedoraproject.org \
--to=ignatenkobrain@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox