Package: php5 Version: 5.5.5+dfsg-1
During package build time, we are setting PHP_PEAR_DOWNLOAD_DIR to $(CURDIR). This breaks running pecl/pear. $ grep -n PHP_PEAR_DOWNLOAD_DIR php5-5.5.5+dfsg/debian/rules 255: cd cgi-build && PHP_PEAR_DOWNLOAD_DIR=$(CURDIR)/pear-build-download $(MAKE) install-pear PHP_PEAR_PHP_BIN=/usr/bin/php PHP_PEAR_INSTALL_DIR=/usr/share/php PHP_PEAR_SYSCONF_DIR=/etc/pear PHP_PEAR_SIG_BIN=/usr/bin/gpg INSTALL_ROOT=$(CURDIR)/pear-build For example on a new VirtualBox Ubuntu Precise VM, we see the following failure which references the path of where the package got build, which naturally does not exist on the VM. vagrant at newpkgs-ubuntu-1204 <https://lists.debphp.org/mailman/listinfo/debphp-users>:~$ sudo pecl -d preferred_state=stable install -a uuid downloading uuid-1.0.3.tgz ... Could not download from "[1]http://pecl.php.net/get/uuid-1.0.3.tgz", cannot download "pecl/uuid" (could not open /srv/packages/php5/php5-5.5.3+dfsg/pear-build-download/uuid-1.0.3.tgz for writing) Error: cannot download "pecl/uuid" Download failed install failedvagrant at newpkgs-ubuntu-1204 <https://lists.debphp.org/mailman/listinfo/debphp-users>:~$ Do we expect this to be in a different path or is pecl install broken for everyone using these packages? This issue was found on Ubuntu, but also exists on Debian sid.