From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 328FC1381F3 for ; Mon, 20 May 2013 22:55:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88BDAE0858; Mon, 20 May 2013 22:55:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1422DE0858 for ; Mon, 20 May 2013 22:55:56 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0C2033E430 for ; Mon, 20 May 2013 22:55:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9BA3BE4404 for ; Mon, 20 May 2013 22:55:53 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1369090594.77b702738d68c216fcefb6e2bf7226be23178153.blueness@gentoo> Subject: [gentoo-commits] proj/hardened-dev:uclibc commit in: dev-libs/elfutils/files/, dev-libs/elfutils/ X-VCS-Repository: proj/hardened-dev X-VCS-Files: dev-libs/elfutils/elfutils-0.155.ebuild dev-libs/elfutils/files/elfutils-0.155-remove-mtrace.patch X-VCS-Directories: dev-libs/elfutils/files/ dev-libs/elfutils/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 77b702738d68c216fcefb6e2bf7226be23178153 X-VCS-Branch: uclibc Date: Mon, 20 May 2013 22:55:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2e05126d-38f8-4b4b-9935-ba1e16a41346 X-Archives-Hash: a15356110ee41378af93b67e32cf6de1 commit: 77b702738d68c216fcefb6e2bf7226be23178153 Author: Anthony G. Basile gentoo org> AuthorDate: Mon May 20 22:56:34 2013 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Mon May 20 22:56:34 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=77b70273 dev-libs/elfutils: remove mtrace Package-Manager: portage-2.1.11.62 --- dev-libs/elfutils/elfutils-0.155.ebuild | 1 + .../files/elfutils-0.155-remove-mtrace.patch | 191 ++++++++++++++++++++ 2 files changed, 192 insertions(+), 0 deletions(-) diff --git a/dev-libs/elfutils/elfutils-0.155.ebuild b/dev-libs/elfutils/elfutils-0.155.ebuild index 173a297..0e46d90 100644 --- a/dev-libs/elfutils/elfutils-0.155.ebuild +++ b/dev-libs/elfutils/elfutils-0.155.ebuild @@ -37,6 +37,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-0.155-fallback-mempcpy.patch epatch "${FILESDIR}"/${PN}-0.155-fallback-assert.patch epatch "${FILESDIR}"/${PN}-0.155-link-argp-standalone.patch + epatch "${FILESDIR}"/${PN}-0.155-remove-mtrace.patch eautoreconf sed -i -e 's:-Werror::g' $(find -name Makefile.in) || die diff --git a/dev-libs/elfutils/files/elfutils-0.155-remove-mtrace.patch b/dev-libs/elfutils/files/elfutils-0.155-remove-mtrace.patch new file mode 100644 index 0000000..3021180 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.155-remove-mtrace.patch @@ -0,0 +1,191 @@ +diff -Naur elfutils-0.155.orig/src/addr2line.c elfutils-0.155/src/addr2line.c +--- elfutils-0.155.orig/src/addr2line.c 2012-08-27 18:29:31.000000000 +0000 ++++ elfutils-0.155/src/addr2line.c 2013-05-20 22:39:59.231647796 +0000 +@@ -30,7 +30,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -121,9 +120,6 @@ + int remaining; + int result = 0; + +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER); + +diff -Naur elfutils-0.155.orig/src/ar.c elfutils-0.155/src/ar.c +--- elfutils-0.155.orig/src/ar.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/ar.c 2013-05-20 22:40:10.431647717 +0000 +@@ -28,7 +28,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -141,9 +140,6 @@ + int + main (int argc, char *argv[]) + { +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER); + (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/ld.c elfutils-0.155/src/ld.c +--- elfutils-0.155.orig/src/ld.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/ld.c 2013-05-20 22:41:25.431647187 +0000 +@@ -26,7 +26,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -277,11 +276,6 @@ + int remaining; + int err; + +-#ifndef NDEBUG +- /* Enable memory debugging. */ +- mtrace (); +-#endif +- + /* Sanity check. We always want to use the LFS functionality. */ + if (sizeof (off_t) != sizeof (off64_t)) + abort (); +diff -Naur elfutils-0.155.orig/src/nm.c elfutils-0.155/src/nm.c +--- elfutils-0.155.orig/src/nm.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/nm.c 2013-05-20 22:41:37.061647104 +0000 +@@ -33,7 +33,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -217,9 +216,6 @@ + int remaining; + int result = 0; + +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER); + (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/objdump.c elfutils-0.155/src/objdump.c +--- elfutils-0.155.orig/src/objdump.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/objdump.c 2013-05-20 22:41:48.531647023 +0000 +@@ -26,7 +26,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -131,9 +130,6 @@ + int + main (int argc, char *argv[]) + { +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER); + (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/ranlib.c elfutils-0.155/src/ranlib.c +--- elfutils-0.155.orig/src/ranlib.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/ranlib.c 2013-05-20 22:42:03.951646914 +0000 +@@ -29,7 +29,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -78,9 +77,6 @@ + int + main (int argc, char *argv[]) + { +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER); + (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/size.c elfutils-0.155/src/size.c +--- elfutils-0.155.orig/src/size.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/size.c 2013-05-20 22:42:16.271646827 +0000 +@@ -28,7 +28,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -160,9 +159,6 @@ + int remaining; + int result = 0; + +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + __fsetlocking (stdin, FSETLOCKING_BYCALLER); + __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/strip.c elfutils-0.155/src/strip.c +--- elfutils-0.155.orig/src/strip.c 2012-08-27 18:29:31.000000000 +0000 ++++ elfutils-0.155/src/strip.c 2013-05-20 22:42:28.781646739 +0000 +@@ -30,7 +30,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -155,9 +154,6 @@ + int remaining; + int result = 0; + +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + __fsetlocking (stdin, FSETLOCKING_BYCALLER); + __fsetlocking (stdout, FSETLOCKING_BYCALLER); +diff -Naur elfutils-0.155.orig/src/unstrip.c elfutils-0.155/src/unstrip.c +--- elfutils-0.155.orig/src/unstrip.c 2012-08-27 18:27:31.000000000 +0000 ++++ elfutils-0.155/src/unstrip.c 2013-05-20 22:42:44.201646629 +0000 +@@ -36,7 +36,6 @@ + #include + #include + #include +-#include + #include + #include + #include +@@ -2215,9 +2214,6 @@ + int + main (int argc, char **argv) + { +- /* Make memory leak detection possible. */ +- mtrace (); +- + /* We use no threads here which can interfere with handling a stream. */ + __fsetlocking (stdin, FSETLOCKING_BYCALLER); + __fsetlocking (stdout, FSETLOCKING_BYCALLER);