Issues with the port dependency table

Martin Wilke miwi at FreeBSD.org
Thu Jul 31 07:06:28 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I can confirm this problem. 


On Thu, Jul 31, 2008 at 02:43:11AM -0700, Ade Lovett wrote:
> Newly initialized jail.  Standard ports tree.  Adding a single port:
> 
> ./tc addPort -b 7-i386 -d devel/ccache
> 
> #1 bombs out with:
> 
> TINDERBOX_SQL:
> 	query = DELETE FROM port_dependencies WHERE build_port_id=?
> Can't use string ("1") as an ARRAY ref while "strict refs" in use at / 
> home/tbox/scripts/lib/Tinderbox/TinderboxDS.pm line 1937.
> 
> 
> hack around that, since we're passing a ref to an array, not the array  
> itself, and then:
> 
> TINDERBOX_SQL:
> 	query = DELETE FROM port_dependencies WHERE build_port_id=?
> 	values = 1,
> Can't locate object method "DependsList" via package  
> "Tinderbox::MakeCache" at /home/tbox/scripts/lib/tc_command.pl line  
> 1337.
> 
> 
> Well, there isn't one.  The lookup table in tc_command.pl has an entry:
> 
> 	DEPENDS => 'DependsList'
> 
> but there isn't one defined in MakeCache.pm
> 
> 
> 
> Ok.  We'll hack one up.  No big deal:
> 
> sub DependsList {
>          my $self = shift;
>          my $port = shift;
> 
>          my @deps;
>          push(@deps, $self->Depends($port));
> 
>          my %uniq;
>          return grep { !$uniq{$_}++ } @deps;
> }
> 
> 
> 
> now it fails with:
> 
> TINDERBOX_SQL:
> 	query = DELETE FROM port_dependencies WHERE build_port_id=?
> 	values = 1,
> Can't locate object method "LibDependsList" via package  
> "Tinderbox::MakeCache" at /home/tbox/scripts/lib/tc_command.pl line  
> 1337.
> 
> 
> and there isn't one of those either (same lookup table).
> 
> 
> What's going on here?
> 
> -aDe
> 
> _______________________________________________
> tinderbox-list at marcuscom.com mailing list
> http://marcuscom.com/mailman/listinfo/tinderbox-list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at marcuscom.com"
> 

- -- 

+-----------------------+-------------------------------+
|  PGP    : 0x05682353  |  Jabber : miwi(at)BSDCrew.de  |
|  ICQ    : 169139903   |  Mail   : miwi(at)FreeBSD.org |
+-----------------------+-------------------------------+
|	Mess with the Best, Die like the Rest!		|
+-----------------------+-------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkiRnLQACgkQFwpycAVoI1PeCQCfWUwTdIiOCOjzCSBzjW9xEvVP
TvMAnRQnOOELkMPyaXHP402ydjYTMt7J
=DCtV
-----END PGP SIGNATURE-----


More information about the tinderbox-list mailing list