From: ewt Date: Wed, 25 Jun 1997 16:04:50 +0000 (+0000) Subject: correctly determines architecture for powerpc X-Git-Tag: tznext/4.11.0.1.tizen20130304~10250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4562a634999fa180c613f58db557d22f06d2ba57;p=tools%2Flibrpm-tizen.git correctly determines architecture for powerpc CVS patchset: 1710 CVS date: 1997/06/25 16:04:50 --- diff --git a/lib/rpmrc.c b/lib/rpmrc.c index fb998b1..1496a61 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -10,6 +10,12 @@ #include "misc.h" #include "rpmlib.h" +#if HAVE_SYS_SYSTEMCFG_H +#include +#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,