From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 2/2] support/dependencies: set cmake version min to 3.10
Date: Sun, 13 Oct 2019 09:00:48 +0200 [thread overview]
Message-ID: <20191013070048.GC14656@scaer> (raw)
In-Reply-To: <CADvTj4ovF-z_ZMe-1m_ek2WhWMq_HsdgftdqYW6rVe3aGXnJaQ@mail.gmail.com>
James, All,
On 2019-10-12 21:15 +0200, James Hilliard spake thusly:
> On Sat, Oct 12, 2019 at 8:16 PM Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > On 2019-10-12 19:18 +0200, James Hilliard spake thusly:
> > > > > +ifeq ($(BR2_HOST_GCC_AT_LEAST_4_8),y)
> > > > > +BR2_CMAKE_VERSION_MIN = 3.10
> > > > > +else
> > > > > BR2_CMAKE_VERSION_MIN = 3.8
> > > > > +endif
[--SNIP--]
> > Sorry, but maybe I am missing on something here. The problem is not that
> > host-cmake-3.15 is built only with BR2_HOST_GCC_AT_LEAST_4_8.
> >
> > The problem is the following:
> >
> > 1. the host machine does not have cmake installed, so we have to build
> > our own. With your two patches, we will build host-cmake-3.15. But
> > that requires a host that has gcc >= 4.8, which we currently do not
> > require.
> >
> > So, with your two patches, it means that *all* our cmake-based
> > packages will have to depend on BR2_HOST_GCC_AT_LEAST_4_8. This is
> > not acceptable.
> It should build host-cmake-3.15 only if we have BR2_HOST_GCC_AT_LEAST_4_8,
> otherwise we build host-cmake-3.8 as the fallback, this avoids
> requiring all cmake
> packages depending on BR2_HOST_GCC_AT_LEAST_4_8.
Ah, you also made the version bump comnditional too. That is not good at
all either (see below).
> > 2. The host has a cmake < 3.10. We are back in the situation above,
> > where we will have to build our own host-cmake-3.15, and we still
> > have the same issue. This is still not accpetable.
> All cmake packages that require cmake >=3.10 already depend on
> BR2_HOST_GCC_AT_LEAST_4_8 so at least this isn't an immediate issue.
They do so because they need it for themselves already, no?
> > 3. The host has cmake >= 3.10 installed, then we don't care.
> >
> > So, in conclusion, the conditional version in this patch is useless,
> > since it always implies we need to build cmake 3.15.
> The purpose of the conditional version is so that we fallback to 3.8 if we can't
> build the newer version.
I hadn't noticed the condition around the version bump. This is not
nice, because if the host compiler is too old, you even restrict the
version we will build for the target too, even though the cross compiler
would be apt.
> > So, no, history has taught us that major version bumps are not simple,
> > and especially here, sine we'd got from 3.8 to 3.15, which is not a bump,
> > not even a leap, but a really long jump...
> Well my assumption is mostly since we only build cmake in buildroot if
> it's older
> than 3.8 this already should be tested due to many cmake versions on the
> build system right?
Sorry, I did not understand what you meant here...
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2019-10-13 7:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-12 15:26 [Buildroot] [PATCH v4 1/2] cmake: add version 3.15.3 James Hilliard
2019-10-12 15:26 ` [Buildroot] [PATCH v4 2/2] support/dependencies: set cmake version min to 3.10 James Hilliard
2019-10-12 16:52 ` Yann E. MORIN
2019-10-12 17:18 ` James Hilliard
2019-10-12 18:16 ` Yann E. MORIN
2019-10-12 19:15 ` James Hilliard
2019-10-13 7:00 ` Yann E. MORIN [this message]
2019-10-13 14:10 ` James Hilliard
2019-10-13 17:45 ` Arnout Vandecappelle
2019-10-13 17:51 ` James Hilliard
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=20191013070048.GC14656@scaer \
--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