Installing nvidia-settings-1.0.20070302 from ~x86 : ...blabla >>> Done src_unpack >>> Starting src_compile * Building libXNVCtrl... imake -DUseInstalled -I/usr/lib/X11/config sh: /tmp/imakeEtzjxr: Permission denied /usr/bin/xmkmf: line 57: 13085 Aborted imake $imake_defines $args !!! ERROR in media-video/nvidia-settings-1.0.20070302: !!! In src_compile at line 68 !!! Running xmkmf failed! !!! Call stack: !!! * src_compile (/usr/portage/media-video/nvidia-settings/nvidia-settings-1.0.20070302.ebuild:68) !!! * ebuild_f_compile (/usr/libexec/paludis/src_compile.bash:49) !!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:346) !!! * main (/usr/libexec/paludis/ebuild.bash:364) die trap: exiting with error. so we have : "sh: /tmp/imakeEtzjxr: Permission denied" My /tmp directory is mount noexec and imake is trying something over there. A little seach and I found out this : https://bugs.freedesktop.org/show_bug.cgi?id=2562 So I Looked into imake.c from stable x86 package imake-1.0.2 to make the fix suggested by that bug report but I saw that also : ... /* If $TMPDIR is defined and has an acceptable length, * use that as tmp dir, else use /tmp. That fixes * problems with /tmp mounted "noexec". */ ... So "export TMPDIR=/var/tmp/portage" fixed the problem and nvidia-settings installed OK after that.
Not nvidia-settings fault. *** This bug has been marked as a duplicate of bug 119984 ***
oops I bugreported too fast. I just emerged nvidia-settings with portage and it seems to compile quite well out of the box. This is indeed not an ebuild problem.