chantra / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
45afda
From 6398807623ca24eafac0607b3d09b244cc5dfd5d Mon Sep 17 00:00:00 2001
45afda
From: Panu Matilainen <pmatilai@redhat.com>
45afda
Date: Fri, 27 Mar 2020 15:09:25 +0200
45afda
Subject: [PATCH 14/33] Drop support for dmalloc
45afda
45afda
Last dmalloc release is from 2007, and these days there are plenty of
45afda
other, maintained tools for debugging memory issues.
45afda
---
45afda
 configure.ac | 7 -------
45afda
 debug.h      | 4 ----
45afda
 2 files changed, 11 deletions(-)
45afda
45afda
diff --git a/configure.ac b/configure.ac
45afda
index 57a4f4001..3c102d5eb 100644
45afda
--- a/configure.ac
45afda
+++ b/configure.ac
45afda
@@ -1030,13 +1030,6 @@ AS_IF([test "$enable_plugins" != no],[
45afda
 ])
45afda
 AM_CONDITIONAL(IMA, [test "x$ac_cv_func_lsetxattr" = xyes])
45afda
 
45afda
-with_dmalloc=no
45afda
-AC_ARG_WITH(dmalloc, [AS_HELP_STRING([--with-dmalloc],[build with dmalloc debugging support])])
45afda
-if test "$with_dmalloc" = yes ; then
45afda
-  AC_DEFINE(DMALLOC, 1, [Build with dmalloc support?])
45afda
-  LIBS="$LIBS -ldmalloc"
45afda
-fi
45afda
-
45afda
 user_with_uid0=$(awk -F: '$3==0 {print $1;exit}' /etc/passwd)
45afda
 group_with_gid0=$(awk -F: '$3==0 {print $1;exit}' /etc/group)
45afda
 AC_DEFINE_UNQUOTED([UID_0_USER],["$user_with_uid0"],[Get the user name having userid 0])
45afda
diff --git a/debug.h b/debug.h
45afda
index 3d34ea010..db7ea1df9 100644
45afda
--- a/debug.h
45afda
+++ b/debug.h
45afda
@@ -6,10 +6,6 @@
45afda
 
45afda
 #include <assert.h>
45afda
 
45afda
-#ifdef	DMALLOC
45afda
-#include <dmalloc.h>
45afda
-#endif
45afda
-
45afda
 #define RPMDBG_TOSTR(a)		RPMDBG_TOSTR_ARG(a)
45afda
 #define RPMDBG_TOSTR_ARG(a)	#a
45afda
 
45afda
-- 
45afda
2.27.0
45afda