Hello misc@,

Running OpenBSD 3.9 -RELEASE.

I am getting a strange error with pkg_add. It's not fatal but I know I
should be able to do this and have never been able to figure out
what's wrong. I have found very little else about this on the web
(only 3 pages, and all in german at that). I have a feeling, though,
that whatever I'm doing is very obvious; please tell me what it is,
though.

First I set my PKG_PATH and try to install a package with just it's
name and get the error in the subject. That doesn't work so I try with
the version number appended and get a different error. That doesn't
work so I try with .tgz and get the same result.

# PKG_PATH=ftp://mirror.arcticnetwork.ca/pub/OpenBSD/3.9/packages/i386/
(I have also tried this with ftp.openbsd.org)
# pkg_add -iv ratpoison
No packages available in the PKG_PATH
Can't resolve ratpoision
# pkg_add -iv ratpoison-1.3.0p1
Can't find ratpoison-1.3.0p1
/usr/sbin/pkg_add: ratpoison-1.3.0p1:Fatal error
# pkg_add -iv ratpoison-1.3.0p1.tgz
Can't find ratpoison-1.3.0p1.tgz
/usr/sbin/pkg_add: ratpoison-1.3.0p1.tgz:Fatal error
# selfdestruct
ksh: selfdestruct: not found
# :(

This form also causes the error:
# pkg_add -iv $PKG_PATH/ratpoison

If I do it 'manually' though, it works, even being able to pull in
dependencies from the PKG_PATH if need be.

(both of these work:)
# pkg_add -iv $PKG_PATH/ratpoison-1.3.0p1
# pkg_add -iv $PKG_PATH/ratpoison-1.3.0p1.tgz

The code that prints the error seems to be this:
sub available_stems
{
        my $state = shift;
        my @avail = OpenBSD::PackageLocator::available();
        if (@avail == 0) {
                Warn "No packages available in the PKG_PATH\n";
        }
        unless ($state->{forced}->{allversions}) {
            @avail = OpenBSD::PackageName::keep_most_recent(@avail);
        }
        return OpenBSD::PackageName::compile_stemlist(@avail);
}


By the way, for the record and the mirrors page,
mirror.arcticnetwork.ca is also accessible via HTTP.
(also: VMWare for the win)

Thanks in advance
-Nick

Reply via email to