Subject: pkg/29386: Pkgsrc builds machine specific binary packages, not platform/architecture specific packages.
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pschmied@yahoo.com>
List: pkgsrc-bugs
Date: 02/15/2005 14:11:00
>Number:         29386
>Category:       pkg
>Synopsis:       Pkgsrc builds machine specific binary packages, not platform/architecture specific packages.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 14:11:00 +0000 2005
>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}