Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 8448F7001D for ; Thu, 12 May 2016 04:28:44 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u4C4SiC7008107 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 11 May 2016 21:28:45 -0700 (PDT) Received: from pek-hostel-deb01.wrs.com (128.224.153.151) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Wed, 11 May 2016 21:28:44 -0700 From: Chen Qi To: Date: Thu, 12 May 2016 12:20:29 +0800 Message-ID: <1463026829-22661-1-git-send-email-Qi.Chen@windriver.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Subject: [meta-networking][PATCH] openconnect: fix do_compile failure X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 04:28:48 -0000 Content-Type: text/plain This patch solves the following error which appears now and then because of parallel building. ../git/main.c:78:21: fatal error: version.c: No such file or directory The problem is that version.c needs to be there when building some objects which needs main.c. But version.c depends on main.c and is generated at build time. This patch fix the problem by generating version.c first before building others. Signed-off-by: Chen Qi --- meta-networking/recipes-connectivity/openconnect/openconnect_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb index 6d3c252..71a8ca0 100644 --- a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb +++ b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb @@ -16,3 +16,7 @@ inherit autotools pkgconfig EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \ --disable-static" + +do_compile_prepend() { + make version.c +} -- 2.8.1