Re: installing packages to DESTDIR

From: Date: Sat, 08 Feb 2003 18:17:13 +0000
Subject: Re: installing packages to DESTDIR
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13075@lists.php.net to get a copy of this message
On Sat, 2003-02-08 at 00:16, Peter Bowen wrote: > I'm trying to make RPM packages of some of the PEAR modules but am > running into a brick wall because I can't find a way to specify a > DESTDIR/INSTALL_ROOT with /usr/bin/pear. Is there something I am > missing or does pear not allow this right now? I was working with PEAR from the 4.2.x branch, but, after noticing pear on the trunk has the INSTALL_DIR feature, I switched to using that with PHP 4.2.2 instead. In trying to make it work I got a few warnings, which seem non-fatal. Attached is a patch that does three things: 1) uses $argv from $_SERVER rather than assuming $argv is registered in the global name space 2) Checks the return value analyzeSourceCode before calling buildProvidesArray with the return value 3) Check to make sure that an array index exists before using it. With these applied the only remaining issue is that PEAR_Registry attempts to do mkdir in its constructor on the real directories the when PEAR_Installer is created in install-pear.php. Immediately after trying this the PEAR_Registry that PEAR_Installer creates is replaced so it isn't a big deal. Thanks. Peter

« previous php.pear.dev (#13075) next »