pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (more) observations on pkgin



Hi,

I've installed pkgin-0.3.3.1 on some NetBSD 4.0_STABLE machines, an so far it works fine.

One small annoyance one of our sysadmins came across that happens then there are more than one package available in different versions, like apache. If you aren't precise with the version then you want to install apache, strange things happens.

For instance, if you tell pkgin to install apache-2.2, pkgin understand that you probably meant apache-2.2.14 and starts to install dependencies for that apache version, but then its finished with the dependencies and should install apache-2.2.14, it fails with "no such installed package apache".

-bash-4.0$ sudo pkgin install apache-2.2
calculating dependencies for apache-2.2...
2 packages to be installed: apr-1.3.9 apr-util-1.3.9 (482K to download, 1599K to install)
proceed ? [y/N] y
downloading packages...
downloading apr-1.3.9.tgz: 100%
downloading apr-util-1.3.9.tgz: 100%
installing packages...
installing apr-1.3.9...
pkg_add: Warning: package `apr-1.3.9' was built for a platform:
pkg_add: NetBSD/i386 4.0.1 (pkg) vs. NetBSD/i386 4.0.1_PATCH (this host)
installing apr-util-1.3.9...
pkg_add: Warning: package `apr-util-1.3.9' was built for a platform:
pkg_add: NetBSD/i386 4.0.1 (pkg) vs. NetBSD/i386 4.0.1_PATCH (this host)
processing local summary...
updating database: 100%
no such installed package apache

If you type "pkgin in apache-2.2" it fails without a helpful message.
If you type "pkgin in apache" it fails with a helpful message

-bash-4.0$ sudo pkgin in apache
there's more than one version available for this package.
please re-run pkgin with a package name matching one of the following:
apache-1.3.41
apache-2.0.63nb5
apache-2.2.14
nothing to do.

If pkgin can figure out the dependencies for what I named apache-2.2, it probably should assume I meant apache-2.2.14 and install it as well. If that guessing behavior is unwanted it should ask me to be more specific before starting to install all the dependencies and fail with a non helpful message in the end.

Maybe this is a known bug/behavior?

Regards,
/P


Home | Main Index | Thread Index | Old Index