Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61100 - net-misc/tightvnc-4.0_beta20031113 will not compile if /tmp is mounted noexec
Summary: net-misc/tightvnc-4.0_beta20031113 will not compile if /tmp is mounted noexec
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 20:06 UTC by Marc-Éric Dupuis
Modified: 2004-08-23 06:00 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 Marc-Éric Dupuis 2004-08-20 20:06:49 UTC
If /tmp is mounted as noexec then tightvnc will refuse to compile with the following error:

sh: line 1: /tmp/imakeomq9fL: Permission denied
make[1]: *** [config/makedepend/Makefile.proto] Aborted
make[1]: *** Deleting file `config/makedepend/Makefile.proto'
make[1]: Leaving directory `/var/tmp/portage/tightvnc-4.0_beta20031113/work/vnc-make: *** [World] Error 2

!!! ERROR: net-misc/tightvnc-4.0_beta20031113 failed.
!!! Function src_compile, Line 85, Exitcode 2
!!! (no error message)

The name of the file that tries to execute from /tmp always a different randomly generated name. The ebuild should not use /tmp to do its compilation I think because many persons put it as noexec for security reasons.

Reproducible: Always
Steps to Reproduce:
1.Mount /tmp as noexec
2.ACCEPT_KEYWORDS=~arch emerge tightvnc
3.




emerge info:

Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1,
2.6.7-gentoo-r12)
=================================================================
System uname: 2.6.7-gentoo-r12 x86_64 AMD Athlon(tm) 64 Processor 3200+
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo
http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm avi berkdb crypt dvd encode escreen esd fbcon foomaticdb
gdbm gif gpm gtk gtk2 imlib javascript joystick jpeg libg++ libwww mikmod
moznocompose moznoirc moznomail mpeg ncurses nls nptl oggvorbis opengl oss pam
pdflib perl png python quicktime readline sdl slang spell ssl tcpd truetype xml2
xmms xv zlib"
Comment 1 Marc-Éric Dupuis 2004-08-20 20:12:13 UTC
A temporary fix is to:

mount /tmp -oexec -oremount

then it will compile sucessfully. Then you can:

mount /tmp -onoexec -oremount
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2004-08-23 06:00:20 UTC
tightvnc-4.0 beta has been removed, please use net-misc/vnc-4.0. When tightvnc releases a new version based on xfree 4.x it will be added to the tree.