Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267576 - dev-tcltk/tls-1.6 sandbox violation
Summary: dev-tcltk/tls-1.6 sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 17:34 UTC by Graham Murray
Modified: 2010-12-15 19:25 UTC (History)
4 users (show)

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


Attachments
Use DESTDIR not emake (bug267576.patch,296 bytes, patch)
2009-11-16 13:56 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2009-04-26 17:34:31 UTC
>> Install tls-1.6 into /var/tmp/portage/dev-tcltk/tls-1.6/image/ category dev-tcltk
ACCESS DENIED  mkdir:        /usr/lib/tls1.6
mkdir: cannot create directory `/usr/lib/tls1.6': Permission denied
make: *** [install-lib-binaries] Error 1
 *
 * ERROR: dev-tcltk/tls-1.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2142:  Called einstall
 *               ebuild.sh, line  569:  Called die
 * The specific snippet of code:
 *                      "$@" install || die "einstall failed"
 *  The die message:
 *   einstall failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-tcltk:tls-1.6:20090426-173003.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-tcltk/tls-1.6/temp/environment'.
 *
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-21219.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: tls1.6
A: /usr/lib/tls1.6
R: /usr/lib/tls1.6
C: mkdir -p /usr/lib/tls1.6
--------------------

emerge --info                                                 
Portage 2.2_rc31 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.30-rc3-00342-ga6f87bf i686)
=================================================================
System uname: Linux-2.6.30-rc3-00342-ga6f87bf-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 26 Apr 2009 16:45:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildsyspkg distlocks fixpackages installsources parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.first-world.info/ http://de-mirror.org/distro/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.tiscali.nl/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en fr_FR fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/perl-experimental /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr cjk clicracklib crypt cups curl cvs cxx dbus directfb doc dri dts dv dvd dvdr dvdread eds emacs emboss encode esd ethereal evo examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm geoip gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal htmlhandbook iconv icq idn ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lirc lm_sensors logrotate lua mad matroska mbox midi mikmod milter mime mmap mmx mng modplug mono mozilla mp3 mpeg mpi mplayer msn mudflap musepack ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcntl pcre pdf perl plasma png postgres ppds pppd profile pulseaudio python qt3 qt3support qt4 quicktime readline recode reflection ruby sasl sdl semantic-desktop session sharedmem sndfile snmp sockets sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs sysvipc tcltcltk tcpd theora threads tiff tk truetype uicktime unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xface xft xine xml xml2 xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr_FR fr" LIRC_DEVICES="asusdh" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev vga v4l"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Federico Ferri (RETIRED) gentoo-dev 2009-04-26 21:13:58 UTC
can't reproduce with your $FEATURES. (tried both with sandbox-1.6 and sandbox-1.9)

any hint?
does it work if you change 'einstall' with 'einstall DESTDIR="${D}"' ?
Comment 2 Frédéric Barthelery 2009-04-26 23:02:32 UTC
Same error for me. 
einstall DESTDIR="${D}" seems to fix it but i got QA errors aborting the merge.

>>> Install tls-1.6 into /tmp/portage/dev-tcltk/tls-1.6/image/ category dev-tcltk
 /usr/bin/install -c libtls1.6.so /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/libtls1.6.so
 : /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/libtls1.6.so
 Install tls.tcl /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/tls.tcl
 Install pkgIndex.tcl /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6
Installing header files in /tmp/portage/dev-tcltk/tls-1.6/image//tmp/portage/dev-tcltk/tls-1.6/image/usr/include
Installing ./tls.h
>>> Completed installing tls-1.6 into /tmp/portage/dev-tcltk/tls-1.6/image/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/tls1.6/libtls1.6.so
 * QA Notice: // installed in ${D}/${D}
 * QA Notice: //usr installed in ${D}/${D}
 * QA Notice: //usr/include installed in ${D}/${D}
 * QA Notice: //usr/include/tls.h installed in ${D}/${D}
 * 
 * ERROR: dev-tcltk/tls-1.6 failed.
 * Call stack:
 *       misc-functions.sh, line 729:  Called install_qa_check
 *       misc-functions.sh, line 281:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: ${INSTALLTOD} files installed in ${D}/${D}"
 *  The die message:
 *   Aborting due to QA concerns: 4 files installed in /tmp/portage/dev-tcltk/tls-1.6/image///tmp/portage/dev-tcltk/tls-1.6/image/
 
# emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r1-ath5k i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-ath5k-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 26 Apr 2009 19:15:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2, 3.0-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.po.opole.pl http://mirror.datapipe.net/gentoo http://gentoo.inode.at/"
LANG="fr_FR.utf-8"
LC_ALL="fr_FR.utf-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage /usr/local/portage/pythonhead"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion berkdb bluetooth bzip2 cairo cli cracklib crypt custom-optimization dbus dri fam gpm hal iceweasel iconv isdnlog jingle jpeg laptop libnotify mad midi mmx mp3 mudflap ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre perl pmu png pppd python readline reflection session socks5 spl sse sse2 sse3 ssl startup-notification sysfs tcpd threads unicode usb v4l2 vim-syntax vorbis wifi x86 xcb xorg xv zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 thanasis 2009-04-27 07:50:17 UTC
Same problem for met too.

# emerge --info
Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 27 Apr 2009 05:15:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/distfiles/"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp:moz-bookmarks-sync-merge@laptop/ http://mirrors.evolva.ro/gentoo/ ftp://ftp.udc.es/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.udc.es/gentoo/ http://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage/layman/yarik-overlay"
SYNC="rsync://laptop/gentoo-portage"
USE="X acl acpi alsa ao avahi bash-completion berkdb bzip2 cairo cli cracklib crypt cscope cups dbus dri encode exif ffmpeg flac fortran gdbm geoip gif gimp gmp gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtkhtml hal iconv ipv6 isdnlog jack java java6 javascript jpeg jpeg2k ladspa lame lcms lm_sensors lzo mad mbox midi mikmod mmx mng mp3 mpeg msn mudflap ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php plotutils png ppds pppd python readline reflection samba scanner sdl session sndfile spl sse sse2 ssl subversion svg svga sysfs tcpd tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wavpack wifi win32codecs wmf x86 xft xinetd xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #2)
> Same error for me. 
> einstall DESTDIR="${D}" seems to fix it but i got QA errors aborting the merge.
> 
> >>> Install tls-1.6 into /tmp/portage/dev-tcltk/tls-1.6/image/ category dev-tcltk
>  /usr/bin/install -c libtls1.6.so
> /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/libtls1.6.so
>  : /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/libtls1.6.so
>  Install tls.tcl /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6/tls.tcl
>  Install pkgIndex.tcl /tmp/portage/dev-tcltk/tls-1.6/image//usr/lib/tls1.6
> Installing header files in
> /tmp/portage/dev-tcltk/tls-1.6/image//tmp/portage/dev-tcltk/tls-1.6/image/usr/include
> Installing ./tls.h
> >>> Completed installing tls-1.6 into /tmp/portage/dev-tcltk/tls-1.6/image/
> 
> strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
>    usr/lib/tls1.6/libtls1.6.so
>  * QA Notice: // installed in ${D}/${D}
>  * QA Notice: //usr installed in ${D}/${D}
>  * QA Notice: //usr/include installed in ${D}/${D}
>  * QA Notice: //usr/include/tls.h installed in ${D}/${D}
>  * 
>  * ERROR: dev-tcltk/tls-1.6 failed.
>  * Call stack:
>  *       misc-functions.sh, line 729:  Called install_qa_check
>  *       misc-functions.sh, line 281:  Called die
>  * The specific snippet of code:
>  *              die "Aborting due to QA concerns: ${INSTALLTOD} files installed
> in ${D}/${D}"
>  *  The die message:
>  *   Aborting due to QA concerns: 4 files installed in
> /tmp/portage/dev-tcltk/tls-1.6/image///tmp/portage/dev-tcltk/tls-1.6/image/
> 
> # emerge --info
> Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.9_p20081201-r2,
> 2.6.28-gentoo-r1-ath5k i686)
> =================================================================
> System uname:
> Linux-2.6.28-gentoo-r1-ath5k-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.0
> Timestamp of tree: Sun, 26 Apr 2009 19:15:01 +0000
> app-shells/bash:     4.0_p17-r1
> dev-java/java-config: 1.3.7-r1, 2.1.7
> dev-lang/python:     2.5.4-r2, 2.6.2, 3.0-r1
> dev-python/pycrypto: 2.0.1-r8
> dev-util/cmake:      2.6.3-r1
> sys-apps/baselayout: 2.0.0
> sys-apps/openrc:     0.4.3-r2
> sys-apps/sandbox:    1.9
> sys-devel/autoconf:  2.13, 2.63-r1
> sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
> sys-devel/binutils:  2.19.1-r1
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.28-r1
> ACCEPT_KEYWORDS="x86 ~x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-Os -march=prescott -fomit-frame-pointer -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d
> /etc/terminfo /etc/udev/rules.d"
> CXXFLAGS="-Os -march=prescott -fomit-frame-pointer -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms
> strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://gentoo.po.opole.pl http://mirror.datapipe.net/gentoo
> http://gentoo.inode.at/"
> LANG="fr_FR.utf-8"
> LC_ALL="fr_FR.utf-8"
> LDFLAGS="-Wl,-O1"
> LINGUAS="fr"
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage
> /usr/local/portage/pythonhead"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="X acpi alsa bash-completion berkdb bluetooth bzip2 cairo cli cracklib
> crypt custom-optimization dbus dri fam gpm hal iceweasel iconv isdnlog jingle
> jpeg laptop libnotify mad midi mmx mp3 mudflap ncurses nls nptl nptlonly
> offensive ogg opengl openmp pam pcre perl pmu png pppd python readline
> reflection session socks5 spl sse sse2 sse3 ssl startup-notification sysfs tcpd
> threads unicode usb v4l2 vim-syntax vorbis wifi x86 xcb xorg xv zlib
> zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106
> cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
> intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
> ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
> hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
> rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
> authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
> dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> filter headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir usertrack
> vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics mouse keyboard evdev"
> KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
> mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga
> intel"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 

Comment 4 Martin von Gagern 2009-11-15 15:52:46 UTC
The command causing this is in the main Makefile:

install-lib-binaries:
        @mkdir -p $(DESTDIR)$(pkglibdir)

So in theory there are two alternatives:
1. use DESTDIR instead of overriding all those other variables
2. override pkglibdir as well
Comment 5 thanasis 2009-11-16 13:07:52 UTC
mine look different:
...log...
i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"tls\" -DPACKAGE_TARNAME=\"tls\" -DPACKAGE_VERSION=\"1.6\" -DPACKAGE_STRING=\"tls\ 1.6\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DNO_IDEA=1 -DNO_RC5=1   -I"/usr/include" -I"/usr/include"    -march=native -O2 -pipe -msse3 -fomit-frame-pointer -pipe -O2 -fomit-frame-pointer -Wall -Wno-implicit-int -fPIC  -c `echo fixstrtod.c` -o fixstrtod.o
(echo 'package ifneeded tls 1.6 \
            "[list source [file join $dir tls.tcl]] ; \
             [list tls::initlib $dir libtls1.6.so]"'\
        ) > pkgIndex.tcl
rm -f libtls1.6.so
i686-pc-linux-gnu-gcc -shared -march=native -O2 -pipe -msse3 -fomit-frame-pointer -pipe -O2 -fomit-frame-pointer -Wall -Wno-implicit-int -fPIC  -Wl,-O1 -Wl,--export-dynamic  -o libtls1.6.so tls.o tlsIO.o tlsBIO.o tlsX509.o fixstrtod.o -Wl,-rpath,/usr/lib -L/usr/lib -lssl -lcrypto  -L/usr/lib -ltclstub8.5 
: libtls1.6.so
>>> Source compiled.
>>> Test phase [not enabled]: dev-tcltk/tls-1.6

>>> Install tls-1.6 into /media/16GB_ext2/tmp/portage/dev-tcltk/tls-1.6/image/ category dev-tcltk
 /usr/bin/install -c libtls1.6.so /usr/lib/tls1.6/libtls1.6.so
ACCESS DENIED  open_wr:      /usr/lib/tls1.6/libtls1.6.so
/usr/bin/install: cannot create regular file «/usr/lib/tls1.6/libtls1.6.so»: Άρνηση πρόσβασης
 : /usr/lib/tls1.6/libtls1.6.so
 Install tls.tcl /usr/lib/tls1.6/tls.tcl
ACCESS DENIED  open_wr:      /usr/lib/tls1.6/tls.tcl
/usr/bin/install: cannot create regular file «/usr/lib/tls1.6/tls.tcl»: Άρνηση πρόσβασης
make: *** [install-lib-binaries] Error 1
 * ERROR: dev-tcltk/tls-1.6 failed:
 *   einstall failed
 * 
 * Call stack:
 *     ebuild.sh, line   55:  Called src_install
 *   environment, line 2285:  Called einstall
 *     ebuild.sh, line  577:  Called die
 * The specific snippet of code:
 *              ${MAKE:-make} prefix="${D}usr" \
 *                      datadir="${D}usr/share" \
 *                      infodir="${D}usr/share/info" \
 *                      localstatedir="${D}var/lib" \
 *                      mandir="${D}usr/share/man" \
 *                      sysconfdir="${D}etc" \
 *                      ${LOCAL_EXTRA_EINSTALL} \
 *                      ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
 *                      "$@" install || die "einstall failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-tcltk/tls-1.6',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/tls-1.6'.
 * The complete build log is located at '/var/tmp/portage/dev-tcltk:tls-1.6:20091116-125922.log'.
 * The ebuild environment file is located at '/media/16GB_ext2/tmp/portage/dev-tcltk/tls-1.6/temp/environment'.
 * S: '/media/16GB_ext2/tmp/portage/dev-tcltk/tls-1.6/work/tls1.6'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-21824.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/lib/tls1.6/libtls1.6.so
A: /usr/lib/tls1.6/libtls1.6.so
R: /usr/lib/tls1.6/libtls1.6.so
C: /usr/bin/install -c libtls1.6.so /usr/lib/tls1.6/libtls1.6.so 

F: open_wr
S: deny
P: /usr/lib/tls1.6/tls.tcl
A: /usr/lib/tls1.6/tls.tcl
R: /usr/lib/tls1.6/tls.tcl
C: /usr/bin/install -c -m 644 ./tls.tcl /usr/lib/tls1.6/tls.tcl 
--------------------------------------------------------------------------------

>>> Failed to emerge dev-tcltk/tls-1.6, Log file:

>>>  '/var/tmp/portage/dev-tcltk:tls-1.6:20091116-125922.log'

 * Messages for package dev-tcltk/tls-1.6:

 * ERROR: dev-tcltk/tls-1.6 failed:
 *   einstall failed
 * 
 * Call stack:
 *     ebuild.sh, line   55:  Called src_install
 *   environment, line 2285:  Called einstall
 *     ebuild.sh, line  577:  Called die
 * The specific snippet of code:
 *              ${MAKE:-make} prefix="${D}usr" \
 *                      datadir="${D}usr/share" \
 *                      infodir="${D}usr/share/info" \
 *                      localstatedir="${D}var/lib" \
 *                      mandir="${D}usr/share/man" \
 *                      sysconfdir="${D}etc" \
 *                      ${LOCAL_EXTRA_EINSTALL} \
 *                      ${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
 *                      "$@" install || die "einstall failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-tcltk/tls-1.6',
 * the complete build log and the output of 'emerge -pqv =dev-tcltk/tls-1.6'.
 * The complete build log is located at '/var/tmp/portage/dev-tcltk:tls-1.6:20091116-125922.log'.
 * The ebuild environment file is located at '/media/16GB_ext2/tmp/portage/dev-tcltk/tls-1.6/temp/environment'.
 * S: '/media/16GB_ext2/tmp/portage/dev-tcltk/tls-1.6/work/tls1.6'
# 
emerge --info
Portage 2.1.7.5 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 16 Nov 2009 10:00:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -msse3 -fomit-frame-pointer"
DISTDIR="/usr/distfiles/"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildpkg distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo/ ftp://ftp.udc.es/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.udc.es/gentoo/ http://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/packages/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/media/16GB_ext2/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage/layman/yarik-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/tucan-overlay /usr/local/portage/layman/ltsp"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa ao avahi bash-completion berkdb bzip2 cairo cli cracklib crypt cscope cups dbus dri encode exif ffmpeg flac fortran gdbm geoip gif gimp gmp gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtkhtml hal iconv ipv6 jack java java6 javascript jpeg jpeg2k ladspa lame lcms libnotify lm_sensors lzo mad mbox mikmod mmx mng modules mono mp3 mpeg msn mudflap nas ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl php plotutils png policykit ppds pppd python rar readline reflection samba scanner sdl session sndfile socks5 spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg svga sysfs syslog tcpd tiff truetype unicode usb v4l v4l2 vim-syntax vorbis wavpack wifi win32codecs wmf x86 xft xinetd xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="evdev keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el" SANE_BACKENDS="niash" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 thanasis 2009-11-16 13:13:33 UTC
(In reply to comment #5)
just to note, I had already created (manually) as root the directory:
/usr/lib/tls1.6
Comment 7 Martin von Gagern 2009-11-16 13:56:41 UTC
Created attachment 210393 [details, diff]
Use DESTDIR not emake

(In reply to comment #4)
> 1. use DESTDIR instead of overriding all those other variables

Works for me:
-	einstall || die
+	emake DESTDIR="${D}" install || die

einstall is a hack to deal with broken build systems that don't honour DESTDIR. It shouldn't be used where DESTDIR works. As it seems to work here, use a simple make install instead.
Comment 8 Federico Ferri (RETIRED) gentoo-dev 2009-11-16 20:00:06 UTC
thanks Martin, tls-1.6-r1.ebuild in CVS.
people please test
Comment 9 thanasis 2009-11-17 12:05:02 UTC
(In reply to comment #8)
> thanks Martin, tls-1.6-r1.ebuild in CVS.
> people please test
> 
emerged fine for me.