PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #1615

"pear build" doesn't create the ext_dir prior to copy

Details

Submitted2004-06-11 12:00 UTC
Fromcox at idecnet dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-06-11 12:00 UTC] cox at idecnet dot com

Description:
------------
As reported by Wez time ago. Note this bug is *critical* as noone with a new php is avaible to install PECL extensions.

# pear build sqlite
[..]
Build process completed successfully
Installing 'radius.so' at ext_dir (/usr/lib/php/extensions/no-debug-non-zts-20020429/radius.so)
failed to copy radius.so to /usr/lib/php/extensions/no-debug-non-zts-20020429/radius.so
#

Here is a patch for Installer.php arround 807 (sorry still no cvs for me):

- $dest = $this->config->get('ext_dir') . DIRECTORY_SEPARATOR . $bn;
+ $ext_dir = $this->config->get('ext_dir');
+ $this->log(3, "+ mkdir -p $ext_dir");
+ if (!@is_dir($ext_dir) && !System::mkdir(array('-p', $ext_dir))) {
+ return $this->raiseError("failed to create extension dir '$ext_dir'");
+ }
+ $dest = $ext_dir . DIRECTORY_SEPARATOR . $bn;

Tomas V.V.Cox