Subject: pkg_add and libkver
To: None <>
From: Jukka Salmi <>
List: tech-pkg
Date: 07/09/2005 14:14:38

I build packages for some NetBSD/i386 2.0_STABLE systems in a 2.0_STABLE
chroot environment on a -current system. I use pkgtools/libkver inside
the chroot. Works fine so far, but I just noticed a warning from pkg_add
while re-adding a removed package:

$ pkg_add mutt-1.5.6nb1.tgz
pkg_add: Warning: package `mutt-1.5.6nb1.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 2.0_STABLE (pkg) vs. NetBSD/i386 3.99.7 (this host)

Inside the chroot, uname reports

$ uname -sr

and uname(3) is exactly how pkg_add determines `this host'... So why does
it report `3.99.7'?

BTW, the same happens inside a 3.0_BETA chroot environment using libkver
on the same host.

TIA, Jukka

bashian roulette:
$ ((RANDOM%6)) || rm -rf ~