malmond / rpms / rpm

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