From patchwork Wed Aug 5 11:58:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 503978 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 363D01402D9 for ; Wed, 5 Aug 2015 21:59:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=sq06zs/P; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 74517954DF; Wed, 5 Aug 2015 11:59:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lIQcWf0eEXTl; Wed, 5 Aug 2015 11:59:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 56E26954C1; Wed, 5 Aug 2015 11:59:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 3B9021BF9D3 for ; Wed, 5 Aug 2015 11:59:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 36EF5954BF for ; Wed, 5 Aug 2015 11:59:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id swcA9qIRrmqX for ; Wed, 5 Aug 2015 11:59:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by hemlock.osuosl.org (Postfix) with ESMTPS id F07F5954C1 for ; Wed, 5 Aug 2015 11:59:01 +0000 (UTC) Received: by wibhh20 with SMTP id hh20so20609093wib.0 for ; Wed, 05 Aug 2015 04:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DhtL+/ZBP6s03lNt7CLyto2yMrpk530R28tP42ONA4Y=; b=sq06zs/P1qUQjHyhZSNIm5PbHNIE2d3QgrH+RwUt5jdzyF9GDsHLfD4BWZ1RoOdmbm Qn+VIJ9GRng3rLoclbTBfgGoWmt5g8VcI9ZYKu366K82wTLXmk5sN9O5cOktv6XpmuV+ pZbxsyVAmwq7H4+ymqraLDjNq002//iuUPMPw4KKD5e1568+MECeKWCDubw/rvWN9/Lq 0wJr3pz589KlaNBkjN6Tt71SEWCkMs5EX4810n1MkTpHL6nlITEiblsW4CNgGtUs3Y27 OotDtDlUifhx2XEAFWPEK4oReHVVJhE/z5ZtjfcFYGcY8GWACd8n4DS1MQ2a7Sw2sMJa P2LA== X-Received: by 10.194.78.164 with SMTP id c4mr18409628wjx.65.1438775940407; Wed, 05 Aug 2015 04:59:00 -0700 (PDT) Received: from localhost.localdomain (wim-ideas1.fastnet.it. [195.96.196.41]) by smtp.gmail.com with ESMTPSA id ma4sm3767446wjb.38.2015.08.05.04.58.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Aug 2015 04:58:59 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Wed, 5 Aug 2015 13:58:52 +0200 Message-Id: <1438775932-24858-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] package/mono: fixing multiple definition of vasprintf X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch fixes the detection of an available vasprintf function, this way the internal vasprintf function is not compiled. Fixes http://autobuild.buildroot.net/results/3ab2b8667e5657bf07f55dd04dd857167ab4c62a/ http://autobuild.buildroot.net/results/3ab2b8667e5657bf07f55dd04dd857167ab4c62a/ Signed-off-by: Angelo Compagnucci --- This patch was submitted upstream and merged here: https://github.com/mono/mono/commit/40c171799b671718969ee28a02f92884d7fd181e I submitted here to fix the bug till a new version will be released. ...4-fixing-initialization-of-have-vasprintf.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 package/mono/0004-fixing-initialization-of-have-vasprintf.patch diff --git a/package/mono/0004-fixing-initialization-of-have-vasprintf.patch b/package/mono/0004-fixing-initialization-of-have-vasprintf.patch new file mode 100644 index 0000000..e01a6f0 --- /dev/null +++ b/package/mono/0004-fixing-initialization-of-have-vasprintf.patch @@ -0,0 +1,23 @@ +From 1c3d615d93b20d10c2729478d5104977dd9af23f Mon Sep 17 00:00:00 2001 +From: Angelo Compagnucci +Date: Wed, 5 Aug 2015 12:59:45 +0200 +Subject: [PATCH] Fixing initialization of have_vasprintf + +This patch initialize properly have_vasprintf in case vasprint function is found. +Solves multiple definition of `vasprintf' error in case vasprint is not properly detected. +--- + eglib/configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/eglib/configure.ac b/eglib/configure.ac +index 5281419..4bf91e5 100644 +--- a/eglib/configure.ac ++++ b/eglib/configure.ac +@@ -135,6 +135,7 @@ AC_CHECK_SIZEOF(void *) + AC_CHECK_SIZEOF(long) + AC_CHECK_SIZEOF(long long) + AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf) ++AC_CHECK_FUNC(vasprintf, have_vasprintf=yes) + AC_CHECK_FUNCS(getrlimit) + + #