On Thu, Nov 11, 2004 at 09:09:41AM +0100, Martin Costabel wrote:
> On MacOSX 10.2.8, up-to-date Fink, system Perl 5.6.0:
> 
> % fink dumpinfo fink
> Information about 3304 packages read in 3 seconds.
> infofile: /sw/fink/dists/unstable/main/finkinfo/base/fink.info
> package: fink
> version: 0.23.2
> revision: 1
> family: fink
> status: latest have-deb installed
> allversions:
> Failed: Sort subroutine didn't return single value at 
> /sw/lib/perl5/Fink/Services.pm line 766.
> 
> I have observed this for a while already, it hasn't been introduced in 
> the latest fink version (In fact, I don't know if it ever worked).

Hmm...I can't reproduce this on 10.3, and I don't have access to a
10.2 box. Is it only for the package "fink" or for all packages? I'd
especially be interested in a package for which there is only a single
version known on your system (unstable and stable are in sync, and you
have no locally-modified ones).

I know sort() has changed going into perl5.8, but I don't know if
that's related here. What happens if you disable the sorting...maybe
we'll see some bogus data being passed in. In Engine.pm around line
2049, try removing the call to sort_versions...

- foreach (&sort_versions($package->list_versions())) {
+ foreach ($package->list_versions()) {

But I'm kinda shooting in the dark here. If anyone with 10.2 feels
like can reproduce this, check Services.pm version_cmp() to see what
is being passed in...perhaps some undef or null string? Maybe we
should have a special case for those so that they sort "lower" than
any valid data (instead of returning undef or whatever other crap they
are sending).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to