Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568530 - dev-php/PEAR-* fail to install when PEAR-PEAR is updated - Warning: fopen(/var/tmp/portage/dev-php/PEAR-*/image/usr/share/php/.depdb): failed to open stream: No such file or directory in DependencyDB.php on line 549
Summary: dev-php/PEAR-* fail to install when PEAR-PEAR is updated - Warning: fopen(/va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-17 14:00 UTC by Ralf Ramsauer
Modified: 2016-01-03 14:47 UTC (History)
2 users (show)

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 Ralf Ramsauer 2015-12-17 14:00:19 UTC
dev-php/PEAR-Mail_Mime-1.10.0::gentoo fails to install

Reproducible: Always




 * Package:    dev-php/PEAR-Mail_Mime-1.10.0
 * Repository: gentoo
 * Maintainer: php-bugs@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking Mail_Mime-1.10.0.tgz to /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work
>>> Source unpacked in /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work
>>> Preparing source in /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work/Mail_Mime-1.10.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work/Mail_Mime-1.10.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work/Mail_Mime-1.10.0 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php/PEAR-Mail_Mime-1.10.0

>>> Install PEAR-Mail_Mime-1.10.0 into /var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/ category dev-php

Warning: fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in DependencyDB.php on line 549
PHP Warning:  fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in /usr/share/php/PEAR/DependencyDB.php on line 549

Warning: fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in /usr/share/php/PEAR/DependencyDB.php on line 549

Warning: fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in DependencyDB.php on line 549
PHP Warning:  fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in /usr/share/php/PEAR/DependencyDB.php on line 549

Warning: fopen(/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/image/usr/share/php/.depdb): failed to open stream: No such file or directory in /usr/share/php/PEAR/DependencyDB.php on line 549
PHP Fatal error:  Cannot use object of type PEAR_Error as array in /usr/share/php/PEAR/DependencyDB.php on line 200

Fatal error: Cannot use object of type PEAR_Error as array in /usr/share/php/PEAR/DependencyDB.php on line 200
 * ERROR: dev-php/PEAR-Mail_Mime-1.10.0::gentoo failed (install phase):
 *   Unable to install PEAR package
 * 
 * Call stack:
 *     ebuild.sh, line 133:  Called src_install
 *   environment, line 783:  Called php-pear-r1_src_install
 *   environment, line 758:  Called die
 * The specific snippet of code:
 *               peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" -d metadata_dir="/usr/share/php" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package";
 * 
 * If you need support, post the output of `emerge --info '=dev-php/PEAR-Mail_Mime-1.10.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-php/PEAR-Mail_Mime-1.10.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work/Mail_Mime-1.10.0'
 * S: '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.10.0/work/Mail_Mime-1.10.0'


emerge --info

Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64, gcc-4.9.3, glibc-2.22-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2660_v3_@_2.60GHz-with-gentoo-2.2
KiB Mem:     6115008 total,   3580888 free
KiB Swap:    4194300 total,   4098772 free
Timestamp of repository gentoo: Thu, 17 Dec 2015 11:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.69-r1::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

sunrise
    location: /var/lib/layman/sunrise
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core-avx2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 berkdb bzip2 caps cli cracklib crypt curl cxx dovecot-sasl dri fontconfig fortran fpm ftp gd geoip iconv imap ipv6 jpeg maildir managesieve mbox mmx mmxext modules multilib mysql mysqli ncurses nls offensive openmp pam parti pcre pdo php png readline sasl seccomp server session sieve silc sqlite sqlite2 sse sse2 ssh ssl tcpd threads tiff truetype unicode userdir vim-syntax x264 xattr xmlwriter xnest xvfb zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi geoip auth_pam auth_request" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm aarch64" QEMU_USER_TARGETS="x86_64 i386 arm aarch64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Neil Bothwick 2015-12-18 10:02:36 UTC
I tried re-emerging dev-php/pear then PEAR-PEAR and then all other installed PEAR packages and found that these also failed with the same error.

dev-php/PEAR-Net_Socket-1.0.14
dev-php/PEAR-Auth_SASL-1.0.6-r1
dev-php/PEAR-Crypt_GPG-1.3.2
dev-php/PEAR-Net_IDNA2-0.1.1
dev-php/PEAR-Mail_mimeDecode-1.5.5
dev-php/PEAR-Net_SMTP-1.6.2
dev-php/PEAR-Net_Sieve-1.3.3
Comment 2 Brian Evans (RETIRED) gentoo-dev 2015-12-19 20:55:29 UTC
I've received this error when /etc/pear.conf was not installed after an update of dev-php/PEAR-PEAR to 1.10.1 (pending etc-update/dispatch-conf).
Comment 3 Neil Bothwick 2015-12-20 01:12:12 UTC
Yes, that was it. The upgrade of dev-php/pear from 1.9.5 to 1.10.0 resulted in the loss of /etc/pear.conf.
Comment 4 Ralf Ramsauer 2016-01-03 14:38:37 UTC
Are there any updates to this bug or quickfixes? I still encouter problems when trying to install/update PEAR-* packages.
Comment 5 Daniel Kenzelmann 2016-01-03 14:43:34 UTC
If I remember correctly you just have to do an etc-update after installing  dev-php/pear and before you install the rest of the PEAR stuff.

Please someone correct me if I'm wrong...
Comment 6 Ralf Ramsauer 2016-01-03 14:47:12 UTC
Damn...
I'm of course not going to correct you. I was waiting for three weeks for a fix and in deed etc-update replaced pear.conf which eventually solved this issue :-)

I'll close this one.

Thank you.