NetBSD Problem Report #29386

From www@netbsd.org  Tue Feb 15 14:10:12 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id E018B63B400; Tue, 15 Feb 2005 14:10:12 +0000 (UTC)
Message-Id: <20050215141012.E018B63B400@narn.netbsd.org>
Date: Tue, 15 Feb 2005 14:10:12 +0000 (UTC)
From: pschmied@yahoo.com
Reply-To: pschmied@yahoo.com
To: gnats-bugs@netbsd.org
Subject: Pkgsrc builds machine specific binary packages, not platform/architecture specific packages.
X-Send-Pr-Version: www-1.0

>Number:         29386
>Category:       pkg
>Synopsis:       Pkgsrc builds machine specific binary packages, not platform/architecture specific packages.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    aix-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 14:11:00 +0000 2005
>Last-Modified:  Thu Apr 26 13:33:12 +0000 2012
>Originator:     Peter Schmiedeskamp
>Release:        AIX 5.3
>Organization:
n/a
>Environment:
AIX sv007 3 5 000000000000
>Description:
Because AIX's uname returns machine specific code, pkgsrc generates packages that are specific to the individual machine.  This is problematic if you want to build packages on one machine and then install the binary packages on another (perhaps even identical) machine.
>How-To-Repeat:
Build any binary package on AIX and attempt to install on any other AIX machine.
>Fix:
Index: machine.sh
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bmake/machine.sh,v
retrieving revision 1.2
diff -u -p -r1.2 machine.sh
--- machine.sh  11 Apr 2004 03:12:17 -0000      1.2
+++ machine.sh  15 Feb 2005 14:00:48 -0000
@@ -66,6 +66,13 @@ UnixWare)
        OSREL=`uname -v`
        OSMAJOR=`IFS=.; set $OSREL; echo $1`
        ;;
+AIX)
+        OSMAJOR=`uname -v`
+        OSMINOR=`uname -r`
+        MACHINE=$OS$OSMAJOR.$OSMINOR
+        MACHINE_ARCH=`bootinfo -T`
+        ;;
+esac
 esac

 MACHINE=${MACHINE:-$OS$OSMAJOR}

>Release-Note:

>Audit-Trail:
From: Peter Schmiedeskamp <pschmied@yahoo.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/29386
Date: Tue, 15 Feb 2005 06:25:50 -0800 (PST)

 I should add that there was an e-mail thread on this
 subject.

 It starts
 http://mail-index.netbsd.org/tech-pkg/2004/05/06/0009.html

 and ends
 http://mail-index.netbsd.org/tech-pkg/2004/06/10/0035.html

 The summary: bootinfo -T is not supported by IBM, but
 is highly unlikely to go anywhere.  bootinfo -T seems
 to be the only way of getting the proc architecture in
 all versions of AIX.



 __________________________________ 
 Do you Yahoo!? 
 All your favorites on one personal page  Try My Yahoo!
 http://my.yahoo.com 

Responsible-Changed-From-To: pkg-manager->aix-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Thu, 26 Apr 2012 13:33:12 +0000
Responsible-Changed-Why:
Problem on AIX.


>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.