Created attachment 743808 [details] Kernel versions compare failure example when MAKEOPTS contains '-w' or '--print-directory', getfilevar echoed value contains make: Entering directory 'xxx' and make: Leaving directory 'xxx' which result in a wrong multiline version string thus making kernel versions comparisons always fail. This bug can be solved by adding '--no-print-directory' option to emake call inside getfilevar function from linux-info eclass.
Created attachment 743811 [details] 'emerge --info' output
Created attachment 743814 [details, diff] Patch solving the problem (at least in my case)
this problem have been seen with at least 2 machines, all amd64, the second one been a Ryzen 5, used as a development desktop computer, as the first one runs as a server with a limited and hardened configuration (no display support, ...).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f4688ebfaada63f1e5f6a108038c98ed140b082 commit 4f4688ebfaada63f1e5f6a108038c98ed140b082 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2021-10-18 19:14:48 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2021-10-18 19:14:48 +0000 linux-info.eclass: add --no-print-directory to emake Thanks to Jocelyn Mayer for the report and the patch. When MAKEOPTS contains '-w' or '--print-directory', getfilevar echoed value contains make: Entering directory 'xxx' and make: Leaving directory 'xxx' which result in a wrong multiline version string thus making kernel versions comparisons always fail. Closes: https://bugs.gentoo.org/816888 Signed-off-by: Mike Pagano <mpagano@gentoo.org> eclass/linux-info.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)