NetBSD Problem Report #41410

From www@NetBSD.org  Mon May 11 21:45:49 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 53F2363C221
	for <gnats-bugs@gnats.netbsd.org>; Mon, 11 May 2009 21:45:49 +0000 (UTC)
Message-Id: <20090511214549.1CAC263B8DF@www.NetBSD.org>
Date: Mon, 11 May 2009 21:45:49 +0000 (UTC)
From: telarson@west.com
Reply-To: telarson@west.com
To: gnats-bugs@NetBSD.org
Subject: pkg_add doesn't work on AIX
X-Send-Pr-Version: www-1.0

>Number:         41410
>Category:       pkg
>Synopsis:       pkg_add doesn't work on AIX
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 11 21:50:00 +0000 2009
>Last-Modified:  Wed May 27 21:45:07 +0000 2009
>Originator:     Tim Larson
>Release:        -
>Organization:
>Environment:
AIX olaf 1 4 0024FC004C00
>Description:
os/arch/ver triplet generated in pkg_add does not match the triplet generated during package creation.  Example:

pkg_add: Warning: package `tnftp-20070806' was built for a platform:
pkg_add: AIX/0024fc004c00 4.1.5.0 (pkg) vs. AIX/powerpc 1 (this host)
pkg_add: 1 package addition failed

Likely due to AIX's atypical results from uname -m and uname -r.  In the above example, I would expect the triplet to be "AIX/powerpc 4.1.5.0". The correct information is evidently obtained in various places, it's just not being done consistently.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/41410: pkg_add doesn't work on AIX
Date: Tue, 12 May 2009 10:35:12 +0900

 related to PR#29386?

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 12 May 2009 08:35:33 +0000
Responsible-Changed-Why:
Over to pkg_install maintainer.


From: "Larson, Timothy E." <TELarson@west.com>
To: "'gnats-bugs@NetBSD.org'" <gnats-bugs@NetBSD.org>,
        "pkg-manager@netbsd.org" <pkg-manager@netbsd.org>,
        "gnats-admin@netbsd.org"
	<gnats-admin@netbsd.org>,
        "pkgsrc-bugs@netbsd.org" <pkgsrc-bugs@netbsd.org>
Cc: 
Subject: RE: pkg/41410: pkg_add doesn't work on AIX
Date: Tue, 12 May 2009 09:11:37 -0500

 Yes, this appears to be the same issue as PR 29386.

 This bug goes back 5 years.  If I were to look over the suggestions mention=
 ed in the prior thread and submit patches, would there be someone willing t=
 o review?  Joerg's been doing a great job on the other AIX stuff I sent rec=
 ently.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/41410: pkg_add doesn't work on AIX
Date: Tue, 12 May 2009 22:34:25 +0200

 On Tue, May 12, 2009 at 02:15:04PM +0000, Larson, Timothy E. wrote:
 >  This bug goes back 5 years.  If I were to look over the suggestions mention
 >  ed in the prior thread and submit patches, would there be someone willing
 >  to review?

 The real question is if there is any library function to get the CPU
 type / CPU family.

 Joerg

From: "Larson, Timothy E." <TELarson@west.com>
To: "'gnats-bugs@NetBSD.org'" <gnats-bugs@NetBSD.org>,
        "pkg-manager@netbsd.org" <pkg-manager@netbsd.org>,
        "gnats-admin@netbsd.org"
	<gnats-admin@netbsd.org>,
        "pkgsrc-bugs@netbsd.org" <pkgsrc-bugs@netbsd.org>
Cc: 
Subject: RE: pkg/41410: pkg_add doesn't work on AIX
Date: Wed, 27 May 2009 16:25:30 -0500

 Given the large number of places that uname info is needed in devel/bmake a=
 nd pkgtools/*, would it be worthwhile to centralize and normalize it in a u=
 tility function and script?  If so, I imagine such a change would merit bro=
 ader discussion on tech-pkg or something.

 Tim

From: "Larson, Timothy E." <TELarson@west.com>
To: "'gnats-bugs@NetBSD.org'" <gnats-bugs@NetBSD.org>,
        "joerg@NetBSD.org"
	<joerg@NetBSD.org>,
        "gnats-admin@netbsd.org" <gnats-admin@netbsd.org>,
        "pkgsrc-bugs@netbsd.org" <pkgsrc-bugs@netbsd.org>
Cc: 
Subject: RE: pkg/41410: pkg_add doesn't work on AIX
Date: Wed, 27 May 2009 14:55:56 -0500

 > The real question is if there is any library function to get the CPU
 > type / CPU family.

 As far as I have been able to determine, no, there is not.

 Tim=20

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.