alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
Blob Blame History Raw
From 6398807623ca24eafac0607b3d09b244cc5dfd5d Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Fri, 27 Mar 2020 15:09:25 +0200
Subject: [PATCH 14/33] Drop support for dmalloc

Last dmalloc release is from 2007, and these days there are plenty of
other, maintained tools for debugging memory issues.
---
 configure.ac | 7 -------
 debug.h      | 4 ----
 2 files changed, 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 57a4f4001..3c102d5eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1030,13 +1030,6 @@ AS_IF([test "$enable_plugins" != no],[
 ])
 AM_CONDITIONAL(IMA, [test "x$ac_cv_func_lsetxattr" = xyes])
 
-with_dmalloc=no
-AC_ARG_WITH(dmalloc, [AS_HELP_STRING([--with-dmalloc],[build with dmalloc debugging support])])
-if test "$with_dmalloc" = yes ; then
-  AC_DEFINE(DMALLOC, 1, [Build with dmalloc support?])
-  LIBS="$LIBS -ldmalloc"
-fi
-
 user_with_uid0=$(awk -F: '$3==0 {print $1;exit}' /etc/passwd)
 group_with_gid0=$(awk -F: '$3==0 {print $1;exit}' /etc/group)
 AC_DEFINE_UNQUOTED([UID_0_USER],["$user_with_uid0"],[Get the user name having userid 0])
diff --git a/debug.h b/debug.h
index 3d34ea010..db7ea1df9 100644
--- a/debug.h
+++ b/debug.h
@@ -6,10 +6,6 @@
 
 #include <assert.h>
 
-#ifdef	DMALLOC
-#include <dmalloc.h>
-#endif
-
 #define RPMDBG_TOSTR(a)		RPMDBG_TOSTR_ARG(a)
 #define RPMDBG_TOSTR_ARG(a)	#a
 
-- 
2.27.0