NetBSD-Users archive

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

Re: NetBSD version mismatch warning while installing packages



Am 2011-10-04 13:48, schrieb Stephen Borrill:
> On Tue, 4 Oct 2011, Emmanuel Kasper wrote:
>> When installing binary packages from the PKG_PATH
>> ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.0.2_2011Q2/All/
>>
>> I get the following warning:
>> pkg_add: Warning: package `pkgin-0.4.2nb2' was built for a platform:
>> pkg_add: NetBSD/i386 5.0.2 (pkg) vs. NetBSD/i386 5.1.0_PATCH (this host)
>>
>> Since I have installed the package compat50 can I safely ignore this
>> warning ?
>>
>> pkg_info -a | grep compat
>> netbsd-compat50-5.1 Compatibility package for 5.0.x binaries
> 
> Yes, you can ignore the warning. As far as I remember when I assembled
> the compatibility package, it was only ever going to be used by 1 or 2
> obscure packages anyway.
> 

I noticed now ,that having the compatibility package actually *breaks*
my system. It makes pkg_info core segfaults when pkgin calls it.

/tmp $ tail -f /var/db/pkgin/err.log
pkg_add: Warning: package `free-1.0' was built for a platform:
pkg_add: NetBSD/i386 5.0.2 (pkg) vs. NetBSD/i386 5.1.0_PATCH (this host)
[1]   Segmentation fault (core dumped) /usr/sbin/pkg_in...
/usr/sbin/pkg_add -f /var/db/pkgin/cache/free-1.0.tgz

Removing the netbsd-compat50 package fixes the problem, so this is what
I did, and now everything works as expected.


Manu


Home | Main Index | Thread Index | Old Index