Daniel Macks wrote:

On Thu, Nov 11, 2004 at 09:09:41AM +0100, Martin Costabel wrote:
[]
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?

On 10.2 with perl-5.6 and for all the packages I had tried, but..

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).

...indeed, for such a package it works correctly.

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()) {

With thism it no longer fails.

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?

When it's called from sort, I don't see anything strange. When it's called from is_installed afterwards, it gets indeed a null string from
Fink::VirtPackage->query_package($self->{_name}) which is called when the comparison with the real package fails. But this seems to be too late for causing the failure.


--
Martin



-------------------------------------------------------
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