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

Bug #18850 Package made with Pyrus installed at the wrong place with the old "pear" tool
Submitted: 2011-09-20 03:23 UTC
From: baptiste Assigned:
Status: Wont fix Package: PEAR (version 1.9.4)
PHP Version: 5.3.8 OS: WinXP SP2
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 40 - 9 = ?

 
 [2011-09-20 03:23 UTC] baptiste (Baptiste Autin)
Description: ------------ I just made a package with Pyrus (pyrus package package.xml). When I try to install it with a "pear install", the install process says it's ok, but the base folder of the package appears at the PEAR root directory, instead of the category directory (PHP, in my example). Test script: --------------- pear install PHP_UML-1.6.0.tgz Expected result: ---------------- Install ok with the folder UML in [pear dir]/PHP/ Actual result: -------------- The folder UML is in [pear dir]/ Thus, when I launch the command line tool "phpuml -v", I get: Warning: require_once(PHP/UML.php): failed to open stream: No such file or directory in G:\Inetpub\librairies\PEAR\phpuml on line 27 Fatal error: require_once(): Failed opening required 'PHP/UML.php' (include_path='G:\Inetpub\librairies\PEAR\pear') in G:\Inetpub\librairies\PEAR\phpuml on line 27

Comments

 [2011-09-20 19:30 UTC] saltybeagle (Brett Bieber)
Have you tried packaging your package using the package_compatible.xml file `pyrus make` generates? You might try `pear package package_compatible.xml`, then installing with PEAR.
 [2011-09-21 06:53 UTC] baptiste (Baptiste Autin)
This is what I get when I run "pyrus make" from inside my package: Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D Using PEAR installation found at G:\Inetpub\librairies\PEAR\pear Creating package.xml...PEAR2\Pyrus\PackageFile\Exception: Invalid package.xml, does not validate against schema PEAR2\Pyrus\PackageFile\Exception: Line 3: Element '{http://pear.php.net/dtd/package-2.1}channel': This element is not expected. Expected is ( {http://pear.php.net/dtd/package-2.1}name ). Should I change the structure of my package to what is described on http://pear.php.net/manual/en/pyrus.commands.make.php ? (in particular, I have no /src folder for now)
 [2011-09-24 07:37 UTC] baptiste (Baptiste Autin)
So I changed the structure of my package to what is described in http://pear.php.net/manual/en/pyrus.commands.make.php, and I keep getting the same error message when I run "pyrus make" ("Invalid package.xml ... does not validate", in spite of the fact that there is no package.xml in my folder: that's precisely what I would like "pyrus make" to generate!!)... Until know I have not been able to execute the Pyrus commands "install", "uninstall", "make" or "package". Each time there is a different problem (see my other bugs). Maybe I am too dumb to use Pyrus, but I give up with it for the moment.
 [2014-05-30 01:20 UTC] cweiske (Christian Weiske)
-Roadmap Versions: +Roadmap Versions: 1.10.0
 [2015-07-28 15:14 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Wont fix -Roadmap Versions: 1.10.0 +Roadmap Versions:
Since nobody develops pyrus any further, I'll close this as "won't fix".