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

Bug #18850 Package made with Pyrus installed at the wrong place with the old "pear" tool
Submitted: 2011-09-19 22:23 UTC
From: baptiste Assigned:
Status: Open Package: PEAR (version 1.9.4)
PHP Version: 5.3.8 OS: WinXP SP2
Roadmaps: 1.10.0    

 [2011-09-19 22: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


 [2011-09-20 14: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 01: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 '{}channel': This element is not expected. Expected is ( {}name ). Should I change the structure of my package to what is described on ? (in particular, I have no /src folder for now)
 [2011-09-24 02:37 UTC] baptiste (Baptiste Autin)
So I changed the structure of my package to what is described in, 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-29 20:20 UTC] cweiske (Christian Weiske)
-Roadmap Versions: +Roadmap Versions: 1.10.0