[php-maint] Bug#728828: PHP_PEAR_DOWNLOAD_DIR path set breaks pecl install

Sander van Zoest svanzoest at onehealth.com
Tue Nov 5 23:58:22 UTC 2013

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_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
for writing)
Error: cannot download "pecl/uuid"
Download failed
install failedvagrant at newpkgs-ubuntu-1204

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20131105/7603e4f6/attachment.html>

More information about the pkg-php-maint mailing list