Bug 71295 - vnc 4.0 imake tries to run a shell script in /tmp can cause problems
Bug#: 71295 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: bugs@linuxlogin.com
Component: Applications
URL: 
Summary: vnc 4.0 imake tries to run a shell script in /tmp can cause problems
Keywords:  
Status Whiteboard: 
Opened: 2004-11-15 09:50 0000
Description:   Opened: 2004-11-15 09:50 0000
./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f
./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
sh: /tmp/imakeKkK4Lf: Permission denied
make[1]: *** [config/makedepend/Makefile.proto] Aborted
make[1]: *** Deleting file `config/makedepend/Makefile.proto'
make[1]: Leaving directory
`/usr/local/tmp/portage/vnc-4.0/work/vnc-4.0-unixsrc/xc'
make: *** [World] Error 2


For security reasons, many users have /tmp mounted with noexec to prevent some
hacks.  This keeps the ebuild from installing since imake tries to use tmp to
run a script it makes.  

Solution, change /tmp to portage temp directory.

Reproducible: Always
Steps to Reproduce:
1. mount /tmp with -o noexec
2. emerge vnc-4.0

Actual Results:  
sh: /tmp/imakeKkK4Lf: Permission denied


Expected Results:  
merged vnc

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.3,
glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r3y i686)
=================================================================
System uname: 2.6.9-gentoo-r3y i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo
/usr/X11R6/lib/X11/xkb
/etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sfperms"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo
http://gentoo.oregonstate.edu/ ftp://mirror.iawnet.sandia.gov/pub/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://gentoo.oregonstate.edu/ ftp://mirror.iawnet.sandia.gov/pub/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo  "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb bitmap-fonts blender-game bonobo cdr crypt
cscope cups dga directfb dmx dvb dvd dvdr encode f77 fam flac foomaticdb
fortran
gdbm ggi gif gimpprint glx gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile
imagemagick imap imlib jack java jpeg junit ldap libg++ libwww mad maildir
mikmod milter mmx mng motif mozilla mpeg mysql nas ncurses network nptl nvidia
oggvorbis opengl oss pam pdflib perl pic png ppds python qt quicktime readline
scanner sdl slang snmp speex spell sse sse2 ssl svg svga tcltk tcpd tetex tiff
truetype usb v4l v4l2 wmf x86 xinerama xml xml2 xmms xv zlib"

------- Comment #1 From Daniel Ahlberg (RETIRED) 2005-01-07 10:13:03 0000 -------
In CVS, thanks!