NetBSD Problem Report #55860

From www@netbsd.org  Fri Dec 11 15:38:35 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D4A131A9217
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Dec 2020 15:38:34 +0000 (UTC)
Message-Id: <20201211153833.82B251A923C@mollari.NetBSD.org>
Date: Fri, 11 Dec 2020 15:38:33 +0000 (UTC)
From: bruce.lilly@gmail.com
Reply-To: bruce.lilly@gmail.com
To: gnats-bugs@NetBSD.org
Subject: package installation blocked by OSABI issues on 9.1
X-Send-Pr-Version: www-1.0

>Number:         55860
>Category:       pkg
>Synopsis:       package installation blocked by OSABI issues on 9.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 11 15:40:00 +0000 2020
>Closed-Date:    
>Last-Modified:  Thu Apr 01 01:57:09 +0000 2021
>Originator:     Bruce Lilly
>Release:        9.1
>Organization:
>Environment:
NetBSD 15-cs2064st.blilly.net 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 x86_64 Intel 686-class NetBSD
>Description:
A number of related issues prevent installation of some packages in 9.1, because 9.0 != 9.1.
This can be seen by way of an example; attempt to install the 'mate' meta-package packages via pkgin:

# pkgin -y install mate
reading local summary...
processing local summary...
calculating dependencies...done.

7 packages to install:
  mate-1.24.0nb2 mate-utils-1.24.0nb2 mate-control-center-1.24.0nb3 mate-applets-1.24.0nb4 marco-1.24.1nb2 libgtop-2.28.4nb18 osabi-NetBSD-9.0

0 to refresh, 0 to upgrade, 7 to install
0B to download, 87M to install

installing mate-1.24.0nb2...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing mate-utils-1.24.0nb2...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing mate-control-center-1.24.0nb3...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing mate-applets-1.24.0nb4...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing marco-1.24.1nb2...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing libgtop-2.28.4nb18...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
installing osabi-NetBSD-9.0...
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
pkg_install warnings: 20, errors: 7
pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log

# cat /usr/pkg/etc/pkg_install.conf
CHECK_OSABI=no
# pkg_admin config-var CHECK_OSABI
no
# cd /var/db/pkgin/cache
# pkg_add -fUD mate-utils*
pkg_add: Warning: package `mate-utils-1.24.0nb2' was built for a platform:
pkg_add: NetBSD/x86_64 9.0 (pkg) vs. NetBSD/x86_64 9.1 (this host)
pkg_add: Warning: package `libgtop-2.28.4nb18' was built for a platform:
pkg_add: NetBSD/x86_64 9.0 (pkg) vs. NetBSD/x86_64 9.1 (this host)
pkg_add: Warning: package `osabi-NetBSD-9.0' was built for a platform:
pkg_add: NetBSD/x86_64 9.0 (pkg) vs. NetBSD/x86_64 9.1 (this host)
The Operating System version (9.1) does not match 9.0
To force installation of this package, add CHECK_OSABI=no to pkg_install.conf
pkg_add: install script returned error status
pkg_add: Can't install dependency osabi-NetBSD-9.0, continuing
pkg_add: Missing dependency osabi-NetBSD-9.0 ignored
Memory fault(coredump)
#

>How-To-Repeat:
1. fresh install of NetBSD 9.1, including pkgin support
2. do the usual afterboot stuff
3. attempt to install packages with pkgin
4. edit /usr/pkg/etc/pkg_install.conf per pkg_install.conf man page and error messages
5. verify updated configuration with `pkg_admin config-var CHECK_OSABI`
6. repeat installation attempts
7. export CHECK_OSABI=no to the environment in the hope that that might help, as alluded to in the pkg_add man page
8. repeat installation attempts
9. cd to /var/db/pkgin/cache and try installation with pkg_add -fUD
>Fix:
Fix unknown.
Instructions in error messages and man pages are ineffective.

>Release-Note:

>Audit-Trail:
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55860: package installation blocked by OSABI issues on 9.1
Date: Fri, 11 Dec 2020 18:07:21 -0500

 Do you have pkg_admin installed at both /usr/sbin/ and /usr/pkg/sbin?
 If so, is the one at /usr/pkg/sbin in your $PATH first? If so, please
 try placing pkg_install.conf at /etc, rather than (or in addition to)
 being at /usr/pkg/etc.

 The reason I ask is because the INSTALL script for osabi in the binary
 package in question has a hard-coded path set to /usr/sbin/pkg_admin at
 line 165. /usr/sbin/pkg_admin expects to find pkg_install.conf at /etc.
 So in your test example, you may be calling /usr/pkg/sbin/pkg_admin and
 seeing that CHECK_OSABI is set, but /usr/sbin/pkg_admin won't find it.

 Dave

State-Changed-From-To: open->feedback
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 12 Dec 2020 01:54:32 +0000
State-Changed-Why:
Further information requested about system configuration/content.

State-Changed-From-To: feedback->open
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Thu, 01 Apr 2021 01:57:09 +0000
State-Changed-Why:
Feedback timeout. Leaving open, as pkgin could be better integrated.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.