Subject: Re: pkg_add and libkver
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: tech-pkg
Date: 07/09/2005 14:36:59
Erm, this was a sudo problem, so please ignore the message...

Jukka Salmi --> tech-pkg (2005-07-09 14:14:38 +0200):
> Hi,
> 
> 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
> NetBSD 2.0_STABLE
> 
> 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 ~

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