summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-12-09 20:17:38 +0000
committerjbj <devnull@localhost>2001-12-09 20:17:38 +0000
commit53ce5564b5301c79af54c933d092524e946102fa (patch)
tree3c5b440e5111f68d5c63664abfb52bc778e643fc /lib/rpmrc.c
parent85f676ed6637f2ff677d6b32c0e1f547df7fe9ee (diff)
downloadlibrpm-tizen-53ce5564b5301c79af54c933d092524e946102fa.tar.gz
librpm-tizen-53ce5564b5301c79af54c933d092524e946102fa.tar.bz2
librpm-tizen-53ce5564b5301c79af54c933d092524e946102fa.zip
- solaris: translate i86pc to i386 (#57182).
CVS patchset: 5218 CVS date: 2001/12/09 20:17:38
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 605f48595..808199092 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*/