Created attachment 759996 [details, diff] patch to avoid C compiler dependency in install In `Makefile` of `rt-tests`, it retrieves `ostype` and `machinetype` by `$(CC) -dumpmachine`. In this case, we need to specify C compiler even in `src_install`. i.e. `emake CC=${tc-getCC} prefix=/usr DESTDIR="${ED}" install` I would suggest to use `uname` to avoid the dependency. Following is the patch(also attached): ``` diff --git a/Makefile b/Makefile index 569adc1..508d7a7 100644 --- a/Makefile +++ b/Makefile @@ -38,15 +38,12 @@ else CFLAGS += -O0 -g endif -# We make some gueses on how to compile rt-tests based on the machine type -# and the ostype. These can often be overridden. -dumpmachine := $(shell $(CC) -dumpmachine) - +# We make some guesses on how to compile rt-tests based on the machine type +# and the ostype. # The ostype is typically something like linux or android -ostype := $(lastword $(subst -, ,$(dumpmachine))) - -machinetype := $(shell echo $(dumpmachine)| \ - sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/') +ostype := $(shell uname -o | sed -nr 's/(.*)\/.*/\1/p') +machinetype := $(shell uname -m | \ + sed -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/') # The default is to assume you have libnuma installed, which is fine to do # even on non-numa machines. If you don't want to install the numa libs, for ```
Have you sent this upstream to the kernel.org people? https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git Not sure if they use an ML or kernel bugzilla
Yes, I have sent out the patch by following git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/tree/MAINTAINERS
Fixed by https://github.com/gentoo/gentoo/pull/23462.