If the kernel currently in /usr/src/linux doesn't have mosix extensions (mosix.h etc.), the package will miscompile. However it doesn't add || die to make, so it goes on to merge what must be a partial list of files (the install section complains about not being able to find some files). The ebuild should detect this and abort, or at least run make || die. However I don't know what the intention in levaing out the || die might have been, so I haven't made any changes to the ebuild myself.
I forgot to mention, it doesn't confirm to sandbox either: --------------------------- ACCESS VIOLATION SUMMARY--------------------------- LOG FILE = "/tmp/sandbox-mosix-user-1.5.2-15118.log" chmod: //lib chmod: //sbin -------------------------------------------------------------------------------- Example output from miscompile: --- >>> Unpacking source... >>> Source unpacked. gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include -O2 -Wall -fPIC -c -o libmosix.o libmosix.c In file included from mos.h:21, from libmosix.c:19: libmosix.h:31: linux/mosctl.h: No such file or directory libmosix.h:32: linux/mosix.h: No such file or directory make: *** [libmosix.o] Error 1 gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include -O2 -Wall -O -c -o setpe.o setpe.c setpe.c:36: linux/mosctl.h: No such file or directory make: *** [setpe.o] Error 1 gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include -O2 -Wall -O -c -o tune.o tune.c as -o testloop.o testloop.s --- <several more mising mosix header errors, several more make targets fail> --- >>> Install mosix-user-1.5.2 into /var/tmp/portage/mosix-user-1.5.2/image/ category sys-apps --- make[1]: Entering directory `/var/tmp/portage/mosix-user-1.5.2/work/user/lib/fixvfork' gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I/var/tmp/portage/mosix-user-1.5.2/image//usr/include -O2 -Wall -fPIC -c -o fixvfork.o fixvfork.c gcc -shared -rdynamic fixvfork.o -o fixvfork.so rm -f fixvfork.sh touch fixvfork.sh echo "#!/bin/sh" >> fixvfork.sh echo "export LD_PRELOAD=//lib/fixvfork.so" >> fixvfork.sh echo "$""*" >> fixvfork.sh /usr/bin/install -d -m 0755 //lib ACCESS DENIED chmod: //lib /usr/bin/install: cannot change permissions of `//lib': Permission denied make[1]: *** [install] Error 1 --- And then it tries to compile some things again and fail again. No need for more, as you can reproduce this easily.
mosix-user-1.5.2-r1 should fix both these problems. Thanks!