Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170376 - x11-misc/imake uses /tmp
Summary: x11-misc/imake uses /tmp
Status: RESOLVED DUPLICATE of bug 119984
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-11 08:58 UTC by flaudebe
Modified: 2007-03-11 09:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flaudebe 2007-03-11 08:58:55 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-11 09:05:39 UTC
Not nvidia-settings fault.

*** This bug has been marked as a duplicate of bug 119984 ***
Comment 2 flaudebe 2007-03-11 09:28:55 UTC
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.