All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH] openconnect: fix parallel compilation failure
@ 2017-08-23 10:08 Qi.Chen
  2017-08-23 10:46 ` Jussi Kukkonen
  0 siblings, 1 reply; 3+ messages in thread
From: Qi.Chen @ 2017-08-23 10:08 UTC (permalink / raw)
  To: openembedded-devel, Joe_MacDonald

From: Chen Qi <Qi.Chen@windriver.com>

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

version.c is generated at build time. And it's needed by some objects. So
it needs to be generated first to avoid compilation failure.

This patch fix the problem by generating version.c first before building others.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 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 3a1f0f3..4242aa5 100644
--- a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
+++ b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
@@ -25,3 +25,7 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
                  --disable-static"
+
+do_compile_prepend() {
+    make version.c
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-networking][PATCH] openconnect: fix parallel compilation failure
  2017-08-23 10:08 [meta-networking][PATCH] openconnect: fix parallel compilation failure Qi.Chen
@ 2017-08-23 10:46 ` Jussi Kukkonen
  2017-08-24  1:42   ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Jussi Kukkonen @ 2017-08-23 10:46 UTC (permalink / raw)
  To: Chen Qi; +Cc: OpenEmbedded Devel List

On 23 August 2017 at 13:08, <Qi.Chen@windriver.com> wrote:

> From: Chen Qi <Qi.Chen@windriver.com>
>
> 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
>
> version.c is generated at build time. And it's needed by some objects. So
> it needs to be generated first to avoid compilation failure.
>
> This patch fix the problem by generating version.c first before building
> others.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  meta-networking/recipes-connectivity/openconnect/openconnect_git.bb | 4
> ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta-networking/recipes-connectivity/openconnect/openc
> onnect_git.bb b/meta-networking/recipes-connectivity/openconnect/openc
> onnect_git.bb
> index 3a1f0f3..4242aa5 100644
> --- a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
> +++ b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
> @@ -25,3 +25,7 @@ inherit autotools pkgconfig
>
>  EXTRA_OECONF += "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script
> \
>                   --disable-static"
> +
> +do_compile_prepend() {
> +    make version.c
> +}
>

Upstream has had a proper Makefile.am fix for this since August 2016. I
think the recipe should just be upgraded -- VPN software from 2015 is a bad
idea.

Jussi


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-networking][PATCH] openconnect: fix parallel compilation failure
  2017-08-23 10:46 ` Jussi Kukkonen
@ 2017-08-24  1:42   ` ChenQi
  0 siblings, 0 replies; 3+ messages in thread
From: ChenQi @ 2017-08-24  1:42 UTC (permalink / raw)
  To: Jussi Kukkonen; +Cc: OpenEmbedded Devel List

On 08/23/2017 06:46 PM, Jussi Kukkonen wrote:
> On 23 August 2017 at 13:08, <Qi.Chen@windriver.com 
> <mailto:Qi.Chen@windriver.com>> wrote:
>
>     From: Chen Qi <Qi.Chen@windriver.com <mailto:Qi.Chen@windriver.com>>
>
>     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
>
>     version.c is generated at build time. And it's needed by some
>     objects. So
>     it needs to be generated first to avoid compilation failure.
>
>     This patch fix the problem by generating version.c first before
>     building others.
>
>     Signed-off-by: Chen Qi <Qi.Chen@windriver.com
>     <mailto:Qi.Chen@windriver.com>>
>     ---
>      meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
>     <http://openconnect_git.bb> | 4 ++++
>      1 file changed, 4 insertions(+)
>
>     diff --git
>     a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
>     <http://openconnect_git.bb>
>     b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
>     <http://openconnect_git.bb>
>     index 3a1f0f3..4242aa5 100644
>     ---
>     a/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
>     <http://openconnect_git.bb>
>     +++
>     b/meta-networking/recipes-connectivity/openconnect/openconnect_git.bb
>     <http://openconnect_git.bb>
>     @@ -25,3 +25,7 @@ inherit autotools pkgconfig
>
>      EXTRA_OECONF +=
>     "--with-vpnc-script=${SYSROOT_DESTDIR}${sysconfdir}/vpnc/vpnc-script \
>                       --disable-static"
>     +
>     +do_compile_prepend() {
>     +    make version.c
>     +}
>
>
> Upstream has had a proper Makefile.am fix for this since August 2016. 
> I think the recipe should just be upgraded -- VPN software from 2015 
> is a bad idea.
>
> Jussi


Thanks a lot. I'll send out a patch to upgrade it.

Best Regards,

Chen Qi



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-24  1:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 10:08 [meta-networking][PATCH] openconnect: fix parallel compilation failure Qi.Chen
2017-08-23 10:46 ` Jussi Kukkonen
2017-08-24  1:42   ` ChenQi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.