Bug #18548 [Com]: Notice when handling packages with dependency groups
| From: | za_creature@yahoo.com | Date: | Sun, 30 Dec 2012 17:21:59 +0000 |
| Subject: | Bug #18548 [Com]: Notice when handling packages with dependency groups | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9440@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=18548&edit=1
ID: 18548
Comment by: za_creature@yahoo.com
Reported By: sebastian dot krebs dot berlin at googlemail dot com
Summary: Notice when handling packages with dependency groups
Status: Feedback
Type: Bug
Package: PEAR
Operating System: ubuntu-11.04
Package Version: 1.9.2
PHP Version: 5.3.6
Assigned To: dufuz
Roadmap Versions:
New Comment:
TLDR: In my opinion you can close this
Upon further investigation, the issue was from the repository used
(Pirum). PEAR is fine, the problem was that the requested parameters
were not exported by the repo. After updating pirum to the latest
version, rebuilding the repository, performing a channel-update and a
clear-cache, the packages were successfully installed without any notice
(dependency groups as well).
I believe Sebastian had the exact same issue, as phing uses Pirum as
well, and the patch that added support for dependency groups was pushed
about 6 months after his post: https://github.com/fabpot/Pirum/pull/31
Previous Comments:
------------------------------------------------------------------------
[2012-12-30 14:17:02] za_creature
I have a private pear repository that seems to have the same problem
(however I'm unsure if the problem is in pear itself, or my package.xml
is incorrect)
Anyway feel free to try for yourselves (all packages on that repo either
already are or will soon be open source),
pear channel discover pear.full-throttle.ro
pear install full/Velocity-0.9.0
My PHP version is 5.4.10 (built: Dec 20 2012 17:10:38)
PEAR is 1.9.4 from 2011-07-06 22:11:24
------------------------------------------------------------------------
[2011-06-07 02:52:20] dufuz
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: dufuz
------------------------------------------------------------------------
[2011-06-01 04:09:10] dufuz
What command were you running when this happened? Can you give me a
reproducible example?
------------------------------------------------------------------------
[2011-05-19 10:44:11] kingcrunch
In Package.php:562-567 there is
foreach ($deps['group'] as $group) {
if (strtolower($group['attribs']['name']) ==
strtolower($groupname)) {
$found = true;
break;
}
}
When I dump "$group" its like
array(2) {
[0]=>
array(2) {
["name"]=>
string(5) "phing"
["channel"]=>
string(15) "pear.phing.info"
}
[1]=>
array(2) {
["name"]=>
string(10) "PHP_Depend"
["channel"]=>
string(16) "pear.pdepend.org"
}
}
There is no key "attribs" at all.
------------------------------------------------------------------------
[2011-05-19 00:29:02] kingcrunch
Description:
------------
Notice: Undefined index: attribs in
PEAR/Downloader/Package.php on line 563
PHP Notice: Undefined index: attribs in
/usr/share/php/PEAR/Downloader/Package.php on line 563
PHP Stack trace:
PHP 1. {main}() /usr/share/php/pearcmd.php:0
PHP 2. PEAR_Command_Common->run()
/usr/share/php/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall()
/usr/share/php/PEAR/Command/Common.php:271
PHP 4. PEAR_Command_Install->doUpgradeAll()
/usr/share/php/PEAR/Command/Install.php:547
PHP 5. PEAR_Command_Install->doInstall()
/usr/share/php/PEAR/Command/Install.php:902
PHP 6. PEAR_Downloader->download()
/usr/share/php/PEAR/Command/Install.php:661
PHP 7. PEAR_Downloader_Package->detectDependencies()
/usr/share/php/PEAR/Downloader.php:392
PHP 8. PEAR_Downloader_Package->_detect2()
/usr/share/php/PEAR/Downloader/Package.php:381
This occurs when handling packages, that contain dependency
groups. This groups are also not installable.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=18548&edit=1