From patchwork Tue Aug 1 09:25:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 109118 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp1264185qge; Tue, 1 Aug 2017 02:25:35 -0700 (PDT) X-Received: by 10.98.23.74 with SMTP id 71mr18852948pfx.151.1501579534942; Tue, 01 Aug 2017 02:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501579534; cv=none; d=google.com; s=arc-20160816; b=WM3AHVLPEvT/ZfRQse1e9/DVPzTxyblmpeZLksZdqBB5X0t5bj46YL6FtF5+VAGBTh Owe+Hrc7MiQ0IvTgwnrzLKrNR4EayE7ObkPa+F6UrSzX0fbRvUdRjE7Edr1O90zefoGx 9A2KIcUC09bC/F1UgunxQfBFAYyM1k5rX1hAlPGxy6QaAl47bzs2OvQxQdYYrVqsAUDB R3Rimwjb93/BaEjYyJwpO5rQP8Xjdn4B+r3YTDotJAUCX5z5HDcERsgp8gP2wxTJr+J6 H9tcZMmYxw/kwDwTeeLxpYXV70mUglbUBtM+FuCm6BNsSEpIIA/2PpsMP90nzSRCwt25 jIIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=Bobo5rQWbE67vI0VVTTlJufX6MBz7EZIMxn+OjQQCSA=; b=oHGRxdM4CUR/LEYYS5mrvR2gj/pn0kHdIqHo48nK3ovb1L7HtzQZC4CssRrYVhfM8q aoVhnqlvDRp2p7OysThnOOlBcgUrPq94Ns9gpk9reP9o9rjve7YOJ2apePkfTr7hhAM7 cAI2AAuSh7FstAY+asRtPjsHFY3ytNpqGgYudIDsgCwyqyY/2o5cxMaeKaqDv8H0vGKZ ykBwblw81JlNwSUvT9zL697R5Jx4kDehE/0bmbGpT0qKqaWRCSJ6+BkjiyIJKlPpGPHl q+pd1iGEyv7+jBAS2w5VIKzqIwEXix31IfW5v81N3qR24iYe/1QhM4PC6LHadwwrgQya YK7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.b=iRwhtR+f; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p1si18739396pli.429.2017.08.01.02.25.34; Tue, 01 Aug 2017 02:25:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.b=iRwhtR+f; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 47D3778215; Tue, 1 Aug 2017 09:25:30 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mail.openembedded.org (Postfix) with ESMTP id 300FF60796 for ; Tue, 1 Aug 2017 09:25:24 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id t201so8994209wmt.1 for ; Tue, 01 Aug 2017 02:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=+K0wS09NJoAooaxVLWbtvMfVPHHLP2MwStDnSn877y4=; b=iRwhtR+fvZ7aQma/BD+nwCD6PvjsmeOGj+7rA42iGb0bwfmfnrkJsXpiHJI1Yrisew gFU94tdhghgeBDMjIu6dMWbCnYp+h/SntduVQBJY3COsV4zMi5FrXb9Q8vQ+RbhUeHz0 WmMrg92K+5X3GPy3blKbiWoycEATSVyA45uYO4T9SXu4hpOcDWgRPrhe2yE4VSTm0K2G Lm1Qt8RZr/LqQNs/i3PRrTWZ6GvRcQSOyHvF+6hjbieHkxBbutzezBbXD8VJeTW4OAt0 kY30O/wzrgmRvZ5ji91I19x1/pDS21nIW1e9mRhmXhKln4gqdygVQyDpQJN5+JPfM2y/ b9qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=+K0wS09NJoAooaxVLWbtvMfVPHHLP2MwStDnSn877y4=; b=rFzeVZi5wCpNLA4O7F3xQKpujAesZt6OFDmSa9yKwE6qvoui02tFHXw3QHO8Zl0F5N krR4+pTZFYFmVdrL1UALmcFjIKGCV/x1OjQBWEVkUZroXfE2N4ryJUQdH90qAKHeIXQh Gef6N7asKtGqOB16NwCcUtYapZgn7+KTGCDcX58XnpXVoZ/eSzrTLoW2r6lX2pREGOCz ncikOuf5GQxkW+j9bvSNBfC6SoevGfKIPtMTt7WWLuEm7lAmQSRWfq7SWGN9yTj2kZUN lX8ayYlVm887TPQvT/TG9Ez7JXstpS0BjYa0+kkCVJ52F/B6fI4gw2h8Rn4rILhOh8dG Ub7g== X-Gm-Message-State: AIVw110njQ7MW2E5zg8PZItyeEFv2VHF4jyWZRa1cFXQ3fO9aUnkizEL JOywsz+S+WcwU6j8J/g= X-Received: by 10.28.196.71 with SMTP id u68mr979642wmf.18.1501579525356; Tue, 01 Aug 2017 02:25:25 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l25sm6495887wrb.44.2017.08.01.02.25.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2017 02:25:24 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 1 Aug 2017 10:25:21 +0100 Message-Id: <20170801092521.16558-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH][V2] re2c: fix build race X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/recipes-support/re2c/re2c/mkdir.patch | 36 ++++++++++++++++++++++++++++++ meta/recipes-support/re2c/re2c_0.16.bb | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/re2c/re2c/mkdir.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/re2c/re2c/mkdir.patch b/meta/recipes-support/re2c/re2c/mkdir.patch new file mode 100644 index 00000000000..d59f01b36c0 --- /dev/null +++ b/meta/recipes-support/re2c/re2c/mkdir.patch @@ -0,0 +1,36 @@ +Upstream-Status: Submitted (https://github.com/skvadrik/re2c/pull/191) +Signed-off-by: Ross Burton + +From bccc10c60523f88c8f81413151cdcd612eb16198 Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Mon, 31 Jul 2017 15:43:41 +0100 +Subject: [PATCH] Makefile.am: create target directory before writing into it + +In some situations src/parse/ may not exist before a file is copied into the +directory. Ensure that this doesn't happen by creating the directory first. +--- + re2c/Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/re2c/Makefile.am b/re2c/Makefile.am +index 3b3b2c5e..0707fc5a 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -187,6 +187,7 @@ CLEANFILES = \ + $(DOC) + + $(AUTOGEN_PARSER): $(CUSTOM_PARSER) ++ $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GEN) if test $(BISON) = "no"; \ + then \ + cp $(top_srcdir)/$(BOOTSTRAP_PARSER) $@ && \ +@@ -211,6 +212,7 @@ $(BOOTSTRAP_PARSER): $(CUSTOM_PARSER) + $(top_srcdir)/$(CUSTOM_PARSER); + + .re.cc: ++ $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GEN) if test -x $(RE2C); \ + then \ + $(top_builddir)/$(RE2C) $(RE2CFLAGS) -o $@ $< && \ +-- +2.11.0 diff --git a/meta/recipes-support/re2c/re2c_0.16.bb b/meta/recipes-support/re2c/re2c_0.16.bb index e82502c5f2d..50dd7b7d261 100644 --- a/meta/recipes-support/re2c/re2c_0.16.bb +++ b/meta/recipes-support/re2c/re2c_0.16.bb @@ -6,7 +6,7 @@ LICENSE = "PD" LIC_FILES_CHKSUM = "file://README;beginline=146;md5=881056c9add17f8019ccd8c382ba963a" SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ -" + file://mkdir.patch" SRC_URI[md5sum] = "3bf508fabd52ed7334647d0ccb956e8d" SRC_URI[sha256sum] = "48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84"