correctly determines architecture for powerpc
authorewt <devnull@localhost>
Wed, 25 Jun 1997 16:04:50 +0000 (16:04 +0000)
committerewt <devnull@localhost>
Wed, 25 Jun 1997 16:04:50 +0000 (16:04 +0000)
CVS patchset: 1710
CVS date: 1997/06/25 16:04:50

lib/rpmrc.c

index fb998b1..1496a61 100644 (file)
 #include "misc.h"
 #include "rpmlib.h"
 
+#if HAVE_SYS_SYSTEMCFG_H
+#include <sys/systemcfg.h>
+#else
+#define __power_pc() 0
+#endif
+
 /* the rpmrc is read from /etc/rpmrc or $HOME/.rpmrc - it is not affected
    by a --root option */
 
@@ -711,6 +717,9 @@ static void setArchOs(char *arch, char *os, int build)
     }
 
     uname(&un);
+    if (!strcmp(un.sysname, "AIX")) {
+       strcpy(un.manchine, __power_pc() ? "ppc" : "rs6000");
+
     if (build) {
        if (! arch) {
            arch = lookupInDefaultTable(un.machine, archDefaultTable,