From patchwork Sun May 13 09:44:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 158811 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id E3FF4B6FC3 for ; Sun, 13 May 2012 19:44:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F2CE8A0219; Sun, 13 May 2012 09:44:52 +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 QHIkmpEimi-o; Sun, 13 May 2012 09:44:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8DE89A01F1; Sun, 13 May 2012 09:44:49 +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 AD96E8F75B for ; Sun, 13 May 2012 09:44:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A54738A3A7 for ; Sun, 13 May 2012 09:44:48 +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 KUbxGSvOQEZb for ; Sun, 13 May 2012 09:44:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id BB9AA8A336 for ; Sun, 13 May 2012 09:44:44 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1STVLm-00027p-V9; Sun, 13 May 2012 11:44:41 +0200 Received: from arnout by vandecaa-laptop with local (Exim 4.77) (envelope-from ) id 1STVLl-0000rA-Hy; Sun, 13 May 2012 11:44:25 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Sun, 13 May 2012 11:44:18 +0200 Message-Id: <1336902259-31422-1-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10 Subject: [Buildroot] [PATCH] heirloom-mailx: run makeconfig in configure step 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The heirloom-mailx Makefile runs makeconfig if this has not been done before. In a parallel build, this means makeconfig may be run several times in parallel because there are two targets that depend on makeconfig. See for instance http://autobuild.buildroot.net/results/d24854be69961f71db189f9d804d4bd2cfa078da To avoid this, run makeconfig in the configure step, which is not parallel. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- I couldn't actually reproduce the build failure, but the build log gives a good indication that this is what went wrong. package/heirloom-mailx/heirloom-mailx.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/heirloom-mailx/heirloom-mailx.mk b/package/heirloom-mailx/heirloom-mailx.mk index 2b28a3f..b1779c0 100644 --- a/package/heirloom-mailx/heirloom-mailx.mk +++ b/package/heirloom-mailx/heirloom-mailx.mk @@ -12,6 +12,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y) HEIRLOOM_MAILX_DEPENDENCIES += openssl endif +define HEIRLOOM_MAILX_CONFIGURE_CMDS + (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SHELL) ./makeconfig) +endef + define HEIRLOOM_MAILX_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef