Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218726 - dev-php5/symfony-1.0.11 ebuild fails: sandbox access violation
Summary: dev-php5/symfony-1.0.11 ebuild fails: sandbox access violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-21 12:16 UTC by Vladimir
Modified: 2010-03-06 14:45 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 Vladimir 2008-04-21 12:16:19 UTC
When i emerge dev-php5/symfony-1.0.11  it fails
on install phase with error: ACCESS DENIED  open_wr:   /usr/share/php/.lock
whic leads to sandbox access violation error

of course, 'normal' /usr/share/php is writeable (by root)

Reproducible: Always

Steps to Reproduce:
1.emerge symfony
2.
3.

Actual Results:  
[root@~]# emerge symfony
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-php5/symfony-1.0.11 to /
 * symfony-1.0.11.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                     [ ok ]
 * checking symfony-1.0.11.tgz ;-) ...                                                                                                     [ ok ]
 * 
 * Using dev-lang/php-5.2.6_rc4
 * 
 * Checking for required PHP feature(s) ...
>>> Unpacking source...
>>> Unpacking symfony-1.0.11.tgz to /var/tmp/portage/dev-php5/symfony-1.0.11/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-php5/symfony-1.0.11/work/symfony-1.0.11 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php5/symfony-1.0.11

>>> Install symfony-1.0.11 into /var/tmp/portage/dev-php5/symfony-1.0.11/image/ category dev-php5
 * 
 * Using dev-lang/php-5.2.6_rc4
 * 
ACCESS DENIED  open_wr:   /usr/share/php/.lock

Warning: touch(): Unable to create file /usr/share/php/.lock because Permission denied in PEAR/Registry.php on line 788

Warning: touch(): Unable to create file /usr/share/php/.lock because Permission denied in /usr/share/php/PEAR/Registry.php on line 788
Parsing of package.xml from file "/var/tmp/portage/dev-php5/symfony-1.0.11/work/symfony-1.0.11/package.xml" failed
Cannot download non-local package "/var/tmp/portage/dev-php5/symfony-1.0.11/work/symfony-1.0.11/package.xml"
Package "/var/tmp/portage/dev-php5/symfony-1.0.11/work/symfony-1.0.11/package.xml" is not valid
install failed
 * 
 * ERROR: dev-php5/symfony-1.0.11 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2740:  Called php-pear-lib-r1_src_install
 *             environment, line 2076:  Called die
 * The specific snippet of code:
 *               pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package";
 *  The die message:
 *   Unable to install PEAR package
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-php5/symfony-1.0.11/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php5/symfony-1.0.11/temp/environment'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-21293.log"

open_wr:   /usr/share/php/.lock
--------------------------------------------------------------------------------


Expected Results:  
successfull insallation

[root@~]# emerge --info 
Portage 2.1.4.4 (hardened/x86, gcc-3.4.6, glibc-2.5-r4, 2.4.33.4-hardened-grsec i686)
=================================================================
System uname: 2.4.33.4-hardened-grsec i686 Pentium III (Coppermine)
Timestamp of tree: Sun, 20 Apr 2008 19:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.0
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.4.3-r1, 1.5.18-r1
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -ggdb -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -ggdb -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://owl.gentoo.org/gentoo-portage"
USE="apache2 berkdb cli cracklib crypt ctype dba debug doc erandom gd hardened hardenedphp iconv imap innodb jpeg lvm lvm2 maildir midi mode-owner mysql ncurses nls pam pcre pdo pear pic png readline session simplexml soap ssl tcpd truetype urandom vhosts x86 xml xml2 xorg xsl zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2010-03-06 14:45:57 UTC
Should be fixed in 1.4.3. Reopen if the bug reappears.