Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 94f9b84572f77e893fcbd79e99b78816 > files > 19

rpm-4.11.0.1-1.mga3.src.rpm

From d6d3f2ec033aa596836bd59f1fdbac7bb895ed61 Mon Sep 17 00:00:00 2001
From: unknown author <cooker@mandrivalinux.org>
Date: Mon, 5 Jan 2009 13:29:57 +0000
Subject: [PATCH 30/36] transmeta crusoe is 686

---
 lib/rpmrc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 2fda289..0486bf3 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -786,6 +786,11 @@ static inline int RPMClass(void)
 	
 	sigaction(SIGILL, &oldsa, NULL);
 
+#define USER686 ((1<<4) | (1<<8) | (1<<15))
+	/* Transmeta Crusoe CPUs say that their CPU family is "5" but they have enough features for i686. */
+	if(cpu == 5 && (cap & USER686) == USER686)
+		return 6;
+
 	if (cpu < 6)
 		return cpu;
 		
-- 
1.6.4.4