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

Bug #9280 cannot install with --packagingroot package from non-php.net channel
Submitted: 2006-11-08 19:53 UTC
From: glen at delfi dot ee Assigned: cellog
Status: Closed Package: PEAR (version 1.5.0a1)
PHP Version: 5.2.0 RC4 OS: PLD Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-08 19:53 UTC] glen at delfi dot ee (Elan Ruusamäe)
Description: ------------ pear expects channel registered and even when channel registered if tails to register package in packagingroot. using --packagingroot should not touch/look any file outside $packagingroot, and if it really needs to play with registry, it should duplicate one found from real system instead of creating blank one (thus failing on external channels). to reproduce bug: first get tarball by downloading: http://pearified.com/get/DB_DataObject_FormBuilder_Frontend-0.7.0.tgz or issue these commands: $ sudo pear channel-discover pearified.com $ pear download DB_DataObject_FormBuilder-beta you need to clear pear registry after using pear to download. the bug itself: $ pear -v install --packagingroot=/home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0 --offline --nodeps DB_DataObject_FormBuilder_Frontend-0.7.0.tgz Parsing of package.xml from file "/home/glen/tmp/pear/cache/package.xml" failed Cannot download non-local package "DB_DataObject_FormBuilder_Frontend-0.7.0.tgz" Package "DB_DataObject_FormBuilder_Frontend-0.7.0.tgz" is not valid install failed $ ls -l /home/glen/tmp/pear/cache/package.xml DB_DataObject_FormBuilder_Frontend-0.7.0.tgz -rw-r--r-- 1 glen glen 14545 Oct 10 08:14 /home/glen/tmp/pear/cache/package.xml -rw-rw-r-- 1 glen glen 25960 Oct 10 08:18 DB_DataObject_FormBuilder_Frontend-0.7.0.tgz ok, i hacked the source to display exception from "Parsing of package.xml" line 227 of PackageFile.php: print_r($pf->getValidationWarnings());: Array ( [0] => Array ( [code] => _unknownChannel [params] => Array ( [channel] => pearified.com ) [package] => PEAR_PackageFile_v2 [level] => error [time] => 1163015078.3213 [context] => [message] => Unknown channel "pearified.com" ) ) ok. discover it then (but why i need it for local files? + --packagingroot!) $ sudo pear channel-discover pearified.com Adding Channel "pearified.com" succeeded Discovery of channel "pearified.com" succeeded $ retry.... $ pear -v install --packagingroot=/home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0 --offline --nodeps DB_DataObject_FormBuilder_Frontend-0.7.0.tgz warning: channel://pearified.com/DB_DataObject_FormBuilder_Frontend-0.7.0 requires package "pear/DB_DataObject_FormBuilder" (version >= 1.0.0RC5) warning: channel://pearified.com/DB_DataObject_FormBuilder_Frontend-0.7.0 requires package "pear/Structures_Datagrid" (version >= 0.7.1) warning: channel://pearified.com/DB_DataObject_FormBuilder_Frontend-0.7.0 requires package "pear/HTML_Table" (version >= 1.7.3) md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/doc/DB_DataObject_FormBuilder_Frontend/docs/DataObject.ini md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/doc/DB_DataObject_FormBuilder_Frontend/docs/index.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/doc/DB_DataObject_FormBuilder_Frontend/docs/LGPL.txt md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/doc/DB_DataObject_FormBuilder_Frontend/docs/readme.txt md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/AddRecord.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/ChooseTable.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/Controller.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/DeleteRecords.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/EditRecord.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/LimitColumn.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/ShowTable.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend/Search.php md5sum ok: /home/glen/rpm/pld/BUILD/DB_DataObject_FormBuilder_Frontend-0.7.0/usr/share/pear/Pearified/DB/DataObject/FormBuilder/Frontend.php about to commit 39 file operations successfully committed 39 file operations ERROR: Adding package pearified.com/DB_DataObject_FormBuilder_Frontend to registry failed $

Comments

 [2006-11-08 19:54 UTC] glen at delfi dot ee
forgot to add PEAR version $ pear -V PEAR Version: 1.5.0a1 PHP Version: 5.2.0 Zend Engine Version: 2.2.0 Running on: Linux builder-ac 2.6.13.5-1smp #1 SMP Thu Feb 9 02:45:39 EET 2006 i686
 [2006-11-12 17:21 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.