Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #11517 Error : download directory "/var/cache/php-pear" is not writeable.
Submitted: 2007-07-04 04:16 UTC
From: remicollet Assigned: remicollet
Status: Closed Package: PEAR (version 1.6.1)
PHP Version: 5.2.3 OS: Linux (Fedora)
Roadmaps: 1.6.2    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 2 + 27 = ?

 
 [2007-07-04 04:16 UTC] remicollet (Remi Collet)
Description: ------------ Hi, PEAR 1.6.1 introduce a new error when building RPM of pear extension. I can understand the change to getDownloadDir in PEAR/Downloader.php, but i don't understand why this check is done during local install. This install is done locally without need to download any file. Download_dir is only writable by root and "rpmbuild" always run on a normal user. This error occurs, even with --offline options. See : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=246588 Test script: --------------- + /usr/bin/pear install --nodeps --packagingroot /var/tmp/php-pear-Log-1.9.11-1.fc8-root-extras Log.xml Expected result: ---------------- Package installed as with pear until 1.6.0. Actual result: -------------- download directory "/var/cache/php-pear" is not writeable. Change download_dir config variable to a writeable dir Cannot download non-local package "Log.xml" Package "Log.xml" is not valid install failed

Comments

 [2007-08-18 21:35 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. download_dir is used to extract archive contents for installation, even if offline. Your patch is good. I also added a warning message for future install attempts