Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71295 - vnc 4.0 imake tries to run a shell script in /tmp can cause problems
Summary: vnc 4.0 imake tries to run a shell script in /tmp can cause problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 09:50 UTC by Greg Watson (linuxkrn)
Modified: 2005-01-07 10:13 UTC (History)
0 users

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 Greg Watson (linuxkrn) 2004-11-15 09:50:54 UTC
./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 Daniel Ahlberg (RETIRED) gentoo-dev 2005-01-07 10:13:03 UTC
In CVS, thanks!