All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Petr Vorel <pevik@seznam.cz>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,
	Anders Roxell <anders.roxell@linaro.org>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/ltp-testsuite: remove 5.11 headers requirement for musl
Date: Mon, 17 Apr 2023 21:39:24 +0200	[thread overview]
Message-ID: <20230417193924.GM2819@scaer> (raw)
In-Reply-To: <20230417191447.2439214-1-pevik@seznam.cz>

Petr, All,

On 2023-04-17 21:14 +0200, Petr Vorel spake thusly:
> From: Petr Vorel <petr.vorel@gmail.com>
> 
> 5e1c238b72 ("package/ltp-testsuite: require 5.11 headers for musl")
> added a 5.11 headers requirement for musl, which contains fix
> a85cbe6159ff ("uapi: move constants from <linux/kernel.h> to <linux/const.h>").
> 
> This effectively disables LTP on all musl based toolchains from
> toolchain-configs.csv:
> 
>       bootlin-armv7-musl [ 7/45]: SKIPPED
>     bootlin-riscv64-musl [19/45]: SKIPPED
>      bootlin-x86-64-musl [26/45]: SKIPPED
> br-i386-pentium-mmx-musl [31/45]: SKIPPED
> 
> But these toolchains are based on 4.9.255 kernel headers, which have
> backported fix as 834d8b96cd85 in 4.9.250 and LTP can be compiled with
> them. Because there is currently no way to specify also older stable
> releases with fix, it's better to remove this requirement. If people are
> really using unfixed kernels we can reintroduce the workaround which was
> removed in 5e1c238b72 or even ask upstream to carry it.

There is no way to know whether a toolchain with headers earlier than
5.11 wil have the fix or not, as we do not have dot-release information
for the headers version. E.g. 4.9 covers the whole range of kernel 4.9,
some with the fix, some without. The only kernel headers version we know
for sure has the fix, if kernel 5.11 and alter.

There are also toolchains with a lot of backported *features* (that's
especially true among chip-co provided toolchains), where some features
of later kernel headers are in fact present in older versions.

We can't have a lernel headers check that is more lax than the actual,
official, major kernel it was released in.

So, I still think that what we currently do is absolutely correct:
building ltp-testsuite requires kernel headers 5.11.

> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Hi,
> 
> I'm sorry for not checking the build properly. v1 and v2 of LTP update
> were without this because I did check them properly and saw that 5.11
> version requirement for musl was not needed (thanks to Thomas, who in
> the past after my asking for that had found a time and updated toolchains).

So yes, Bootlin is now provided updated toolchains, but it does not
prevent people from using previous ones without the fix, even with an
updated Buildroot.

It also does not prevent people from having built their own toolchains
in the past, with headers without the fix (or with it, we can't know),
and keeping using those toolchains, becasue they have qualified them in
their environment, and rebuilding those is just not possible.

So, NACK from me.

I'll leave it open for other maintainers to have a look, in case one has
another opinion and decides we want it.

Regards,
Yann E. MORIN.

> Kind regards,
> Petr
> 
>  package/ltp-testsuite/Config.in | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/package/ltp-testsuite/Config.in b/package/ltp-testsuite/Config.in
> index b42082e2cc..272c2ede37 100644
> --- a/package/ltp-testsuite/Config.in
> +++ b/package/ltp-testsuite/Config.in
> @@ -12,7 +12,6 @@ config BR2_PACKAGE_LTP_TESTSUITE
>  	bool "ltp-testsuite"
>  	depends on BR2_USE_MMU # fork()
>  	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
> -	depends on !BR2_TOOLCHAIN_USES_MUSL || BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
>  	depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
>  	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
>  	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
> -- 
> 2.40.0
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-04-17 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-17 19:14 [Buildroot] [PATCH] package/ltp-testsuite: remove 5.11 headers requirement for musl Petr Vorel
2023-04-17 19:39 ` Yann E. MORIN [this message]
2023-04-19 22:27   ` Petr Vorel

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=20230417193924.GM2819@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=anders.roxell@linaro.org \
    --cc=buildroot@buildroot.org \
    --cc=pevik@seznam.cz \
    --cc=thomas.petazzoni@free-electrons.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.