Issues with the port dependency table

Joe Marcus Clarke marcus at freebsd.org
Thu Jul 31 14:46:49 EDT 2008


Ade Lovett wrote:
> 
> On Jul 31, 2008, at 09:43 , Joe Marcus Clarke wrote:
>> I saw RunDependsList, and just assumed like an idiot.  All of these 
>> problems should be fixed now.
> 
> Thanks for that.  Hands up anyone who hasn't "assumed like an idiot" ;)
> 
> Which brings me on to another issue, namely, what is this table actually 
> *for* (I've read the discussion on the list, but am still confused).
> 
> Population of this table only appears to occur at addPort time.  
> Unfortunately, port dependencies can and do change (additions, 
> deletions, and so on).
> 
> As it stands, it seems that if any real use is to be made of the table, 
> at the very least, there needs to be some kind of "rescan" command to 
> keep things up to date.
> 
> Stable tables, purporting to be authoritative in any way, are very 
> dangerous things indeed.

I agree, and this is why I didn't do this earlier.  That said, this 
table isn't authoritative, as it will only used by external tools (i.e. 
TB still relies on the Makefile generated at build time).  As for 
rescan, addPort IS a rescan.  It can be run on a port already in the 
datastore, and all of that port's properties will be updated (including 
the dependencies).

This feature was added for itetcu who wants to do additional scripting 
and control of TB for his QA purposes.  This table is really designed 
for nothing more than that.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome


More information about the tinderbox-list mailing list