From: Baruch Siach via buildroot <buildroot@buildroot.org>
To: Arnout Vandecappelle <arnout@mind.be>
Cc: Andrey Nechypurenko <andreynech@gmail.com>,
Alsey Miller <alseycmiller@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/cmake: bump version to 3.22.3
Date: Wed, 11 May 2022 20:58:51 +0300 [thread overview]
Message-ID: <87zgjo6j6s.fsf@tarshish> (raw)
In-Reply-To: <82370296-a5c0-fa25-1993-1c4a885af02c@mind.be>
Hi Arnout,
On Wed, May 11 2022, Arnout Vandecappelle wrote:
> On 11/05/2022 12:06, Baruch Siach wrote:
>> On Wed, May 11 2022, Andrey Nechypurenko wrote:
>>>> On 10/05/2022 17:20, Andrey Nechypurenko wrote:
>>>>>>> I am just curious if the following patch will be accepted for the
>>>>>>> upcoming release?
>>>>>>
>>>>>> What about bumping it to 3.23.1?
>>>>>
>>>>> At the time I submitted the patch (29.03), v.3.22 was the latest one. It
>>>>> also fixes the bug I was facing. So it is good enough for me and definitely
>>>>> better than v.3.18 currently used by Buildroot. If you would like to submit
>>>>> another one for v. 3.23.1 it would be great.
>>>>
>>>> Up to now, we've always kept the cmake version in sync with the value of
>>>> BR2_CMAKE_VERSION_MIN (defined in support/dependencies/check-host-cmake.mk and
>>>> updated every time there is a package that requires a specific newer version -
>>>> like swift would, as mentioned by Alsey.
>>>
>>> In addition to the Swift package mentioned by Alsey, there could be custom
>>> packages added by Buildroot users with external trees. This is what I am
>>> currently doing.
>>>
>>>> What is the bug you were facing?
>>>
>>> Our custom package uses a feature which was buggy:
>>> https://gitlab.kitware.com/cmake/cmake/-/issues/18299 (it is also mentioned
>>> in the submitted patch). This bug was fixed in CMake 3.20.
>>>
>>>> Perhaps backporting its fix is appropriate?
>>>
>>> If the proposed patch with v.3.22 does not introduce any regression, then I
>>> personally do not see any reasons for backporting. 3.18 is two years old and
>>> it might be beneficial to switch to a newer one.
>> Backporting the cmake fix alone would not help hosts with cmake version
>> 3.18 installed. With current BR2_CMAKE_VERSION_MIN set to 3.18 Buildroot
>> will not build the fixed cmake host package, but rely instead on the
>> buggy host installed cmake.
>
> So we have 3 options:
>
> - Keep the current situation, which creates problems for some external packages.
> - Update cmake but not BR2_CMAKE_VERSION_MIN, which is nice for keeping cmake
> up to date but doesn't solve anything for people who run into the bug and
> have CMake 3.18 or 3.19 installed.
> - Update both cmake and BR2_CMAKE_VERSION_MIN, which basically means that
> everybody has to build host-cmake unless they have a really bleeding edge
> distro.
>
> There is a fourth, much more complicated option, which is to allow individual
> packages to define the minimal cmake version. Then a package that actually
> runs into the problem can force BR2_CMAKE_VERSION_MIN. Of course we'd also
> need to change cmake.mk to use that config-dependendent cmake version. And
> we're in a bit of a tricky situation with the patch version - we'd prefer to
> set BR2_CMAKE_VERSION_MIN to e.g. 3.22, not 3.22.3, so people who have 3.22.1
> installed on the host don't need to build host-cmake. And there's a problem
> with cmake.hash that needs to contain the hashes of many different versions.
>
> So overall, nothing good :-(
>
> With all of the above, I'd say we bump to 3.22.3 (this patch) and set
> BR2_CMAKE_VERSION_MIN to 3.22. What do others think?
The bug that Andrey encountered is fixed in 3.20. So updating
BR2_CMAKE_VERSION_MIN to 3.20 should be enough, I believe.
Is there a reason to keep BR2_CMAKE_VERSION_MIN and cmake package
version in sync?
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-05-11 18:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-29 14:59 [Buildroot] [PATCH] package/cmake: bump version to 3.22.3 Andrey Nechypurenko
2022-03-29 18:25 ` Alsey Miller
2022-05-10 15:02 ` Andrey Nechypurenko
2022-05-10 15:05 ` Yegor Yefremov via buildroot
2022-05-10 15:20 ` Andrey Nechypurenko
2022-05-10 19:13 ` Arnout Vandecappelle
2022-05-11 9:45 ` Andrey Nechypurenko
2022-05-11 10:06 ` Baruch Siach via buildroot
2022-05-11 17:24 ` Arnout Vandecappelle
2022-05-11 17:58 ` Baruch Siach via buildroot [this message]
2022-05-12 22:07 ` Arnout Vandecappelle
2022-05-19 16:18 ` Andrey Nechypurenko
2022-05-24 12:03 ` Andrey Nechypurenko
2022-05-12 9:12 ` Andrey Nechypurenko
2022-05-28 21:33 ` Yann E. MORIN
2022-05-30 12:38 ` Andrey Nechypurenko
2022-05-30 12:42 ` Andrey Nechypurenko
-- strict thread matches above, loose matches on Subject: below --
2022-05-30 12:44 Andrey Nechypurenko
2022-05-30 12:57 ` Andrey Nechypurenko
2022-05-30 13:04 ` Baruch Siach via buildroot
2022-05-30 13:24 ` Andrey Nechypurenko
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=87zgjo6j6s.fsf@tarshish \
--to=buildroot@buildroot.org \
--cc=alseycmiller@gmail.com \
--cc=andreynech@gmail.com \
--cc=arnout@mind.be \
--cc=baruch@tkos.co.il \
--cc=thomas.petazzoni@bootlin.com \
/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 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.