From 53ce5564b5301c79af54c933d092524e946102fa Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 9 Dec 2001 20:17:38 +0000 Subject: [PATCH] - solaris: translate i86pc to i386 (#57182). CVS patchset: 5218 CVS date: 2001/12/09 20:17:38 --- lib/rpmrc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 605f485..8081990 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -964,6 +964,12 @@ static void defaultMachine(/*@out@*/ const char ** arch, else /* Solaris 2.x: n.x.x becomes n-3.x.x */ sprintf(un.sysname, "solaris%1d%s", atoi(un.release)-3, un.release+1+(atoi(un.release)/10)); + + /* Solaris on Intel hardware reports i86pc instead of i386 + * (at least on 2.6 and 2.8) + */ + if (!strcmp(un.machine, "i86pc")) + sprintf(un.machine, "i386"); } else if (!strcmp(un.sysname, "HP-UX")) /*make un.sysname look like hpux9.05 for example*/ -- 2.7.4