6.0.0-alpha14
6/24/25

[#11938] Horde_Pear fails when there is a comment in dependencies of a package.xml
Summary Horde_Pear fails when there is a comment in dependencies of a package.xml
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester math.parent (at) gmail (dot) com
Created 01/06/2013 (4552 days ago)
Due
Updated 05/23/2013 (4415 days ago)
Assigned 01/15/2013 (4543 days ago)
Resolved 05/23/2013 (4415 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
05/23/2013 08:35:10 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
04/08/2013 10:03:03 AM math (dot) parent (at) gmail (dot) com Comment #4 Reply to this comment
Any news on this bug?
01/15/2013 07:04:18 PM math (dot) parent (at) gmail (dot) com Comment #3 Reply to this comment
Can you post a backtrace for that error?
Yes:
====================

Fatal Error:
Unsupported dependency type "#comment"!
In 
/home/mathieu/src/github.com/horde/horde/framework/Pear/lib/Horde/Pear/Package/Dependencies.php on line 
56

  1. Components::main() 
/home/mathieu/src/github.com/horde/horde/components/bin/horde-components:16
  2. Components_Module_Dependencies->handle() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components.php:70
  3. Components_Runner_Dependencies->run() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Module/Dependencies.php:155
  4. Components_Helper_Dependencies->listTree() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Runner/Dependencies.php:69
  5. Components_Helper_Dependencies->_listTree() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Helper/Dependencies.php:85
  6. Components_Component_DependencyList->rewind() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Helper/Dependencies.php:107
  7. Components_Component_DependencyList->_getDependencies() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Component/DependencyList.php:125
  8. Components_Component_Base->getDependencies() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Component/DependencyList.php:93
  9. Horde_Pear_Package_Xml->getDependencies() 
/home/mathieu/src/github.com/horde/horde/components/lib/Components/Component/Base.php:128
10. Horde_Pear_Package_Xml->_completeDependencies() 
/home/mathieu/src/github.com/horde/horde/framework/Pear/lib/Horde/Pear/Package/Xml.php:220
11. Horde_Pear_Package_Dependencies::addDependency() 
/home/mathieu/src/github.com/horde/horde/framework/Pear/lib/Horde/Pear/Package/Xml.php:250

====================

01/15/2013 02:23:37 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Can you post a backtrace for that error?
01/06/2013 04:51:08 PM math (dot) parent (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Horde_Pear fails when there is a comment in dependencies of a package.xml
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: 0001-Ignore-comments-in-package.xml-as-found-in-Horde_Kol.patch Download
State ⇒ Unconfirmed
Reply to this comment
When running [1]:
   php components/bin/horde-components ./framework/Kolab_Filter/ deps

I got:
Fatal Error:
Unsupported dependency type "#comment"!
In 
/home/mathieu/src/github.com/horde/horde/framework/Pear/lib/Horde/Pear/Package/Dependencies.php on line 
56

This is because "framework/Kolab_Filter/package.xml" contains a 
comment in the optionnal dependencies [2].

The attached patch fixes it.


[1]: Or more exactly, from the $web_dir:
LANG=C php -d include_path="./libs:/usr/share/php:/usr/share/pear
components/bin/horde-components ../horde/framework/Kolab_Filter/ deps
[2]: 
https://github.com/horde/horde/blob/master/framework/Kolab_Filter/package.xml#L230

Saved Queries