From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2014-01-08
Date: Sun, 12 Jan 2014 00:17:17 +0100 [thread overview]
Message-ID: <20140111231717.GD3391@free.fr> (raw)
In-Reply-To: <20140110072938.27628d13@skate>
Thomas, All,
On 2014-01-10 07:29 +0800, Thomas Petazzoni spake thusly:
> On Thu, 9 Jan 2014 20:14:27 +0100, Yann E. MORIN wrote:
> > What happens is that ola runs the host-python to check if it can
> > 'import' the google.protobuf module.
> >
> > Of course, this fails since google.protobuf is installed in target/ and
> > not in host/ (and we do not explicitly install a host-variant).
>
> Correct. But what is odd is that this test was *not* failing before the
> migration to the Python infrastructure. I've started investigating
> this, but haven't found the reason why before the Python infra it was
> building OK, and not after the Python infra.
>
> > There is a very simple trick^Whack we can use to fix this issue, either:
> > - remove the test entirely, since we enforce the dependency from the
> > Config.in an ola.mk, and thus we know google.protobuf will be
> > present
>
> The problem of this solution is that the patch you've done cannot be
> upstreamed, and therefore we would have to keep AUTORECONF = YES
> forever on this package. Maybe we can make the configure.ac test
> conditional on whether we're cross-compiling and push the patch
> upstream?
I understand your conerns, and in fact was not expecting the patch to be
applied that fast! ;-]
Now, if we add a check, I don;t know how to handle this.
After all, a check is here to detect whether a dependency is present or
missing. So we ehould expect the following from ./configure:
- user did not request the feature: if the dependencies are present,
it is enabled; if they are missign it is disabled;
- user explicitly required the feature to be disabled: no problem,
the feature is disabled and ./configure does not even need to check
for the dependencies at all;
- user explictly required the feature to be enabled: ./configure has
to check if the dependencies are met, and abort if not.
Ideally, we should be able to check target dependencies, but this is not
possible with Python. So, while cross-compiling we can not check those
dependencies, what should we do?
- user did not explictly reuired the feature: detect we're
cross-compiling, and disable it (or enable it?)
- user explixitly required the feature to be enabled: trust the user
that the dependencies are met, without checking, at the risk of a
mis-behaviour at build time, or worse, at runtime?
I really don't know what is best to do. I think I'll do the above and
try to get the patch upstreamed. Let's see what hey think about it.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-01-11 23:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 7:30 [Buildroot] [autobuild.buildroot.net] Build results for 2014-01-08 Thomas Petazzoni
2014-01-09 19:14 ` Yann E. MORIN
2014-01-09 19:15 ` [Buildroot] [PATCH] package/ola: fix build against google.protobuf Yann E. MORIN
2014-01-09 21:05 ` Peter Korsgaard
2014-01-09 23:29 ` [Buildroot] [autobuild.buildroot.net] Build results for 2014-01-08 Thomas Petazzoni
2014-01-11 23:17 ` Yann E. MORIN [this message]
2014-01-14 6:59 ` Arnout Vandecappelle
2014-01-14 20:35 ` Yann E. MORIN
2014-01-26 6:37 ` Thomas Petazzoni
2014-01-26 10:30 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140111231717.GD3391@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox