Re: possible bugs in PEAR installer

From: Date: Sat, 02 Aug 2003 15:48:43 +0000
Subject: Re: possible bugs in PEAR installer
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19150@lists.php.net to get a copy of this message
Hello Tomas, > > I'm not sure at 100% but i noticed as Arnaud Limbourg few days ago a problem > > when trying to install > > my package HTML_SetupWizard. > > > 1. All temporary files are still on the hard disk like for > > html_setup_wizard after doing pear install > > SetupWizard.php > > .tmpSetupWizard.php > > etc. > > I couldn't reproduce this problem with 1b2 under Linux. The installer does a "mv .tmpxx > xx". Please upgrade PEAR, clean up your dirs and check it again. > > > 2. when i try > > pear uninstall <package> > > all files from <package> are of course removed but not directories ! > > What's wrong here ?! > > There is nothing wrong here. Many packages may share the same dir, for > ex XML_Tree and XML_Parser end at <peardir>/XML, that's why we do not > remove dirs, just the installed files. OK , here is a answer ! > > > 3. i'm surprised after reading Arnaud comment > > > Things to do: > > - modify package.xml to have the dependencies registered, it really is > > painful to find that you missed a dependency ;) > > > here are my package dependencies : > > > <deps> > > <dep type="pkg" rel="ge" > > version="1.1">PEAR</dep> > > <dep type="pkg" rel="ge" > > version="4.1.0">PHP</dep> > > <dep type="pkg" rel="ge" > > version="1.7">Config</dep> > > <dep type="pkg" rel="ge" > > version="1.6">Log</dep> > > <dep type="pkg" rel="ge" > > version="0.9.0">File_Passwd</dep> > > <dep type="pkg" rel="ge" > > version="0.8.5">I18N</dep> > > <dep type="pkg" rel="ge" > > version="1.1">MDB</dep> > > <dep type="pkg" rel="ge" > > version="1.2">HTML_Common</dep> > > <dep type="pkg" rel="ge" > > version="3.0">HTML_QuickForm</dep> > > <dep type="pkg" rel="ge" > > version="1.0">HTML_Template_Sigma</dep> > > <dep type="pkg" rel="ge" > > version="0.1.0">HTML_CSS</dep> > > <dep type="pkg" rel="ge" > > version="2.0">HTML_Page</dep> > > <dep type="pkg" rel="ge" > > version="0.4">HTML_Progress</dep> > > <dep type="pkg" rel="ge" > > version="1.0">Net_UserAgent_Detect</dep> > > </deps> > > > I've removed packages HTML_CSS and File_Passwd > > pear uninstall HTML_CSS > > pear uninstall File_Passwd > > > i check with > > pear list > > > all pkg are gone ! > > Dependencies check on uninstall was added recently in 1b2, try > upgrading the PEAR package. The problem to check dependencies is not on uninstall phase, but really on install phase If i have as Arnaud (when he has tested my package) not yet installed File_Passwd, the command-line pear install HTML_SetupWizard-1.0RC1.tgz should has stop on error due to dependency <dep type="pkg" rel="ge" version="0.9.0">File_Passwd</dep> But it didn't ! > > > Then i've tried > > pear install HTML_SetupWizard-1.0RC1.tgz > > > and got > > install ok: HTML_SetupWizard 1.0RC1 > > > So where dependencies check gone !!!! because HTML_CSS and File_Passwd > > are no more on my system and should be stop install progress, isn't it ? > > > I'm running under PEAR 1.1, PHP 4.3.2 and Windows XP > > > is it a bug, should i submit a new bug entry ?! > > What your opinions ? > > Where can I find you package for testing? > You can find my package at my project page : http://farell.free.fr/en/pear/sources/HTML_SetupWizard/ Or just download it a: http://farell.free.fr/en/pear/bin/HTML_SetupWizard-1.0RC1.tgz BTW, i've noticed a same problem because, when i've used PEAR_PackageFileManager, i've made a mistake on my maker-pkg-script that is visible in dependencies list <dep type="pkg" rel="ge" version="4.1.0">PHP</dep> i would just put a dependency like <dep type="php" rel="ge" version="4.1.0"/> Here again PEAR installer don't stop ; PHP is not an existing package on my local host Just for information !!! I've fixed it on the HTML_Progress public release 0.4.2 and on HTML_SetupWizard-1.0RC2 coming soon but not on RC1. Laurent Laville

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