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 2F2511381F3 for ; Thu, 30 May 2013 00:57:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2ACDE0960; Thu, 30 May 2013 00:57:27 +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 21515E0960 for ; Thu, 30 May 2013 00:57:27 +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 339FD33E1B3 for ; Thu, 30 May 2013 00:57:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C51D1E5309 for ; Thu, 30 May 2013 00:57:24 +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: <1369875385.343b7744b26424b631a72b2c80e9f2a55e5d0d03.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-replace-obstack_printf.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: 343b7744b26424b631a72b2c80e9f2a55e5d0d03 X-VCS-Branch: uclibc Date: Thu, 30 May 2013 00:57:24 +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: b186bc76-8664-4a67-aa0d-5f57a62d5661 X-Archives-Hash: 3dda0140ee2606e8eeabe974cba8edad commit: 343b7744b26424b631a72b2c80e9f2a55e5d0d03 Author: Anthony G. Basile gentoo org> AuthorDate: Thu May 30 00:56:25 2013 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Thu May 30 00:56:25 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=343b7744 dev-libs/elfutils: replace obstack_printf with asprintf/obstack_grow Package-Manager: portage-2.1.11.62 Manifest-Sign-Key: 0xF52D4BBA --- dev-libs/elfutils/elfutils-0.155.ebuild | 1 + .../elfutils-0.155-replace-obstack_printf.patch | 38 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-libs/elfutils/elfutils-0.155.ebuild b/dev-libs/elfutils/elfutils-0.155.ebuild index 6e79b0b..d8454ad 100644 --- a/dev-libs/elfutils/elfutils-0.155.ebuild +++ b/dev-libs/elfutils/elfutils-0.155.ebuild @@ -40,6 +40,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-0.155-remove-mtrace.patch epatch "${FILESDIR}"/${PN}-0.155-remove-profiling-support.patch epatch "${FILESDIR}"/${PN}-0.155-replace-futimes.patch + epatch "${FILESDIR}"/${PN}-0.155-replace-obstack_printf.patch eautoreconf sed -i -e 's:-Werror::g' $(find -name Makefile.in) || die diff --git a/dev-libs/elfutils/files/elfutils-0.155-replace-obstack_printf.patch b/dev-libs/elfutils/files/elfutils-0.155-replace-obstack_printf.patch new file mode 100644 index 0000000..0b6c226 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.155-replace-obstack_printf.patch @@ -0,0 +1,38 @@ +diff -Naur elfutils-0.155.orig/src/nm.c elfutils-0.155/src/nm.c +--- elfutils-0.155.orig/src/nm.c 2013-05-30 00:32:10.259792903 +0000 ++++ elfutils-0.155/src/nm.c 2013-05-30 00:32:42.069792699 +0000 +@@ -1286,12 +1286,11 @@ + /* We found the line. */ + int lineno; + (void) dwarf_lineno (line, &lineno); +- int n; +- n = obstack_printf (&whereob, "%s:%d%c", +- basename (dwarf_linesrc (line, +- NULL, +- NULL)), +- lineno, '\0'); ++ char *s; ++ int n = asprintf (&s, "%s:%d%c", ++ basename (dwarf_linesrc (line, NULL, NULL)), ++ lineno, '\0'); ++ obstack_grow (&whereob, s, strlen(s)); + sym_mem[nentries_used].where + = obstack_finish (&whereob); + +@@ -1318,10 +1317,12 @@ + if (found != NULL) + { + /* We found the line. */ +- int n = obstack_printf (&whereob, "%s:%" PRIu64 "%c", +- basename ((*found)->file), +- (*found)->lineno, +- '\0'); ++ char *s; ++ int n = asprintf (&s, "%s:%" PRIu64 "%c", ++ basename ((*found)->file), ++ (*found)->lineno, ++ '\0'); ++ obstack_grow (&whereob, s, strlen(s)); + sym_mem[nentries_used].where = obstack_finish (&whereob); + + /* The return value of obstack_print included the