Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(28) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) doing the PEAR thing(19) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) PEAR now fits in a bottle: meet go-pear.phar(17) CategoriesPowered by |
Monday, October 10. 2005re-distributing PEAR/PHP outside of php.net: an important tip and open questionComments
Display comments as
(Linear | Threaded)
I am not speaking of only PHP installs here, but compiling and packaging in general.
I see 3 possibilities, all of which I have used legitimately on the same package. 1) Compile and install a package in root on the system. This is the normal way that (usually) does not need a prefix of any kind. 2) Compile and install a package in a home directory. I have used this myself on some hosts where I need a program which isn't available. In this case, the prefix is meant to stay. 3) Cross-compile a package for installation on another system. In this case the prefix is used only during building. The installed package should have no knowledge of the prefix that was used. All build systems *should* allow for a way for all 3 of these options. A prefix may be needed for only build time or for build and install time. These may be the same or may even be mutually exclusive. I'm not sure how the PHP build system is set up, but if it doesn't simply support all of these options, it should be made to.
I had reported a problem similar to this to pear-general and believe that the problem is probably in the documentation and not in the original functionality of installroot in 1.3.6. To my thinking, using something like "installroot" in most packages usually means something similar to:
make DESTDIR=/temporary/directory/ install This lets you compile an application with the correct paths (relative to /), but then install them temporarily to another directory for use by packaging systems without changing any paths within the package to point to the temporary directory. This is my train of thought... Also, PHP's installation of PEAR seemed to work just fine with 1.3.6 using the installroot option for a great deal of time without any problem on my end (and I'm assuming others??), so why change it? I would be more apt to look into the reasons this was listed as a "bug" in the first place and in what specific circumstance it was found to be bug-worthy instead of user misuse or documentational inaccuracy. So, my vote is that installroot should temporarily install to another directory like /tmp/blah/usr/lib/php/pear/ and /tmp/blah/usr/bin/, but all internal PEAR entries should reference the correct paths /usr/lib/php/pear and /usr/bin.
I think there must be an equivalent to the old installroot option to install PEAR in a temporary place and then package it for a target distribution.
I'm trying to distribute PEAR and PHP 5.1.1 for Debian (I'm the maintainer of dotdeb.org) and the PEAR packaging has become much more problematic. Could you please re-introduce such a feature? |
Links in this articlePEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (311)
www.php.net (86) pear.chiaraquartet.net (79) pecl.php.net (58) news.php.net (43) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||
Greg Beaver have posted nice tips for re-distributing PEAR/PHP outside of php.net. The problem if installroot was
Tracked: Oct 12, 02:43