ports/88551: [PORT AUTHOR UPDATE] update sysutils/portmanager to 0.3.2_1

Michael C. Shultz ringworm01 at gmail.com
Sun Nov 6 18:10:36 UTC 2005


The following reply was made to PR ports/88551; it has been noted by GNATS.

From: "Michael C. Shultz" <ringworm01 at gmail.com>
To: bug-followup at freebsd.org,
 ringworm01 at gmail.com
Cc:  
Subject: Re: ports/88551: [PORT AUTHOR UPDATE] update sysutils/portmanager to 0.3.2_1
Date: Sun, 6 Nov 2005 09:58:16 -0800

 --Boundary-00=_9QkbDbZd/9oABBk
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 I just found one more small bug. If it is not too much trouble,
 please drop the attached patch "patch-0.3.2_2" into files and
 bump portrevision to two.
 
 Thanks
 
 -Mike
 
 --Boundary-00=_9QkbDbZd/9oABBk
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="patch-0.3.2_2"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="patch-0.3.2_2"
 
 diff -ruN ../0.3.2_1/libMGPM/src/MGPMrSinglePortStatus.c ./libMGPM/src/MGPMrSinglePortStatus.c
 --- ../0.3.2_1/libMGPM/src/MGPMrSinglePortStatus.c	Sun Nov  6 06:38:18 2005
 +++ ./libMGPM/src/MGPMrSinglePortStatus.c	Sun Nov  6 09:35:25 2005
 @@ -55,7 +55,8 @@
  	int	counter					= 0;
  	int	installedPortsDbIDX			= 0;
  	int*	counterPtr				= NULL;
 -
 +	int	old					= 0;
 +	
  	counterPtr	= &counter;
  	
  	oldDependencyName		= (char*)calloc( bufferSize, 1 );
 @@ -101,6 +102,7 @@
  	 */
  	while( availablePortsDbIDX < availablePortsDbQTY )
  	{
 +		old	= 0;
  		availablePortsDbPortDirPtr	= MGdbGet( property->availablePortsDb,
  							availablePortsDbIDX,
  							property->fieldAvailablePortsDbPortDir );
 @@ -128,7 +130,10 @@
  		/*
  		 * if "is availablePortsDb fieldAvailablePortsDbPortName in installedPortsDb" = yes
  		 * a) test it's dependents:
 -		 * 	1. If all RUN dependencies are in installedPortsDb then port is current
 +		 * 	1. If all RUN dependencies are in installedPortsDb then port may be current
 +		 *		a. Is all port's dependencies in dependencyPortsDb current?
 +		 *			1. yes port is current
 +		 *			2. No - port built with old dependencies
  		 *	2. If NOT all RUN dependencies are in installedPortsDb then port is built with old/missing dependencies
  		 */
  		if( installedPortsDbPortNamePtr )
 @@ -187,11 +192,55 @@
  				}
  				else
  				{
 -					fprintf( stdout, "%05d have:%-25s status: CURRENT: %-25s\n",
 -						counter,
 -						installedPortsDbPortName,
 -						installedPortsDbPortDir ); 
 -					while( fflush( stdout ) );
 +					MGdbGoTop( property->dependencyPortsDb );
 +					while( MGdbSeek( property->dependencyPortsDb,
 +							property->fieldDependencyDbPortDir,
 +							installedPortsDbPortDir,
 +							property->fieldDependencyDbPortDir,
 +							exact ) )
 +					{
 +						MGdbGoTop( property->installedPortsDb );
 +
 +						if(  MGdbSeek( property->installedPortsDb,
 +							property->fieldInstalledPortsDbPortName,
 +							MGdbGet( property->dependencyPortsDb,
 +								MGdbGetRecno( property->dependencyPortsDb ) - 1,
 +								property->fieldDependencyDbDependencyPortName ),
 +							property->fieldInstalledPortsDbPortName,
 +							exact ) == NULL )
 +						{
 +							fprintf( stdout, "%05d have:%-25s status: OLD DEPENDENCY: %-25s\n",
 +								counter,
 +			 					installedPortsDbPortName,
 +								MGdbGet( property->dependencyPortsDb,
 +								MGdbGetRecno( property->dependencyPortsDb ) - 1,
 +								property->fieldDependencyDbDependencyPortName ) ); 
 +							while( fflush( stdout ) );
 +
 +							MGdbAdd( property->oldPortsDb,
 +								installedPortsDbPortDir,
 +								installedPortsDbPortName,
 +								"OLD DEPENDENCY",
 +								MGdbGet( property->dependencyPortsDb,
 +									MGdbGetRecno( property->dependencyPortsDb ) - 1,
 +									property->fieldDependencyDbDependencyPortName ),
 +								MGdbGet( property->dependencyPortsDb,
 +									MGdbGetRecno( property->dependencyPortsDb ) - 1,
 +									property->fieldDependencyDbDependencyPortDir ),
 +								NULL );
 +							old	= 1;
 +							break;
 +						}
 +
 +					}		
 +					if( old == 0 )
 +					{
 +						fprintf( stdout, "%05d have:%-25s status: CURRENT: %-25s\n",
 +							counter,
 +							installedPortsDbPortName,
 +							installedPortsDbPortDir ); 
 +						while( fflush( stdout ) );
 +					}
  				}
  			}
  		}
 
 --Boundary-00=_9QkbDbZd/9oABBk--



More information about the freebsd-ports-bugs mailing list