From patchwork Wed Dec 19 23:43:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 207565 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 1F8652C008C for ; Thu, 20 Dec 2012 10:45:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D93F72DE0B; Wed, 19 Dec 2012 23:45:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EZiQxqWo1AyN; Wed, 19 Dec 2012 23:44:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 717722E70A; Wed, 19 Dec 2012 23:44:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 622D48F753 for ; Wed, 19 Dec 2012 23:44:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BE86D816C6 for ; Wed, 19 Dec 2012 23:44:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rdUEHrbyTDsQ for ; Wed, 19 Dec 2012 23:44:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.petroprogram.com (mail.petroprogram.com [194.89.34.74]) by whitealder.osuosl.org (Postfix) with ESMTPS id D6B2E8109C for ; Wed, 19 Dec 2012 23:44:21 +0000 (UTC) Received: from localhost.fi (unknown [194.89.34.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.froberg@petroprogram.com) by mail.petroprogram.com (Postfix) with ESMTPSA id F26FD4FAC7; Thu, 20 Dec 2012 01:34:48 +0200 (EET) From: =?UTF-8?q?Stefan=20Fr=C3=B6berg?= To: buildroot@busybox.net Date: Thu, 20 Dec 2012 01:43:47 +0200 Message-Id: <1355960630-25089-9-git-send-email-stefan.froberg@petroprogram.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1355960630-25089-1-git-send-email-stefan.froberg@petroprogram.com> References: <1355960630-25089-1-git-send-email-stefan.froberg@petroprogram.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 09/12] elfutils: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net uClibc does not have fts.h (which is nonstandard) enabled by default. So we use fts_.h from libgnu.a as substitute and also expose __UCLIBC__ macro from features.h so that ifdef ... else ... endif will work correctly. Signed-off-by: Stefan Fröberg --- .../elfutils/elfutils-linux-kernel-modules.patch | 29 ++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 package/elfutils/elfutils-linux-kernel-modules.patch diff --git a/package/elfutils/elfutils-linux-kernel-modules.patch b/package/elfutils/elfutils-linux-kernel-modules.patch new file mode 100644 index 0000000..3fc2117 --- /dev/null +++ b/package/elfutils/elfutils-linux-kernel-modules.patch @@ -0,0 +1,29 @@ +diff -Naur elfutils-0.155.org/libdwfl/linux-kernel-modules.c elfutils-0.155/libdwfl/linux-kernel-modules.c +--- elfutils-0.155.org/libdwfl/linux-kernel-modules.c 2012-12-17 21:41:10.075379208 +0200 ++++ elfutils-0.155/libdwfl/linux-kernel-modules.c 2012-12-17 21:42:00.336767164 +0200 +@@ -29,7 +29,13 @@ + /* We include this before config.h because it can't handle _FILE_OFFSET_BITS. + Everything we need here is fine if its declarations just come first. */ + ++#include ++ ++#ifdef __UCLIBC__ ++#include ++#else + #include ++#endif + + #include + +diff -Naur elfutils-0.155.org/libdwfl/Makefile.am elfutils-0.155/libdwfl/Makefile.am +--- elfutils-0.155.org/libdwfl/Makefile.am 2012-12-17 21:44:27.747502320 +0200 ++++ elfutils-0.155/libdwfl/Makefile.am 2012-12-17 21:45:14.681467381 +0200 +@@ -31,7 +31,7 @@ + ## + include $(top_srcdir)/config/eu.am + INCLUDES += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \ +- -I$(srcdir)/../libdw ++ -I$(srcdir)/../libdw -I$(srcdir)/../gnulib + VERSION = 1 + + noinst_LIBRARIES = libdwfl.a