OSSP CVS Repository

ossp - Check-in [5096]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5096
Date: 2005-Jul-05 21:05:40 (local)
2005-Jul-05 19:05:40 (UTC)
User:rse
Branch:
Comment: Improved FreeBSD/amd64 on iX86/EM64T detection within "shtool platform" by treating this as a native AMD64 platform similar to what the underlying OS does.
Tickets:
Inspections:
Files:
ossp-pkg/shtool/ChangeLog      1.213 -> 1.214     7 inserted, 0 deleted
ossp-pkg/shtool/sh.platform      1.12 -> 1.13     8 inserted, 7 deleted

ossp-pkg/shtool/ChangeLog 1.213 -> 1.214

--- ChangeLog    2005/06/15 08:20:36     1.213
+++ ChangeLog    2005/07/05 19:05:40     1.214
@@ -9,6 +9,13 @@
 
  ChangeLog
 
+ Changes between 2.0.2 and 2.0.3 (15-Jun-2005 to xx-XXX-2005):
+
+   *) Improved FreeBSD/amd64 on iX86/EM64T detection within "shtool
+      platform" by treating this as a native AMD64 platform similar to
+      what the underlying OS does.
+      [Ralf S. Engelschall]
+
  Changes between 2.0.1 and 2.0.2 (11-Aug-2004 to 15-Jun-2005):
 
    *) Fix insecure temporary file handling (CAN-2005-1751, CAN-2005-1759).


ossp-pkg/shtool/sh.platform 1.12 -> 1.13

--- sh.platform  2005/06/15 08:14:35     1.12
+++ sh.platform  2005/07/05 19:05:40     1.13
@@ -128,13 +128,14 @@
             i386 ) AC="iX86" ;;
         esac
         AP="${AC}"
-        AT=`(/sbin/sysctl -n hw.model) 2>&1`
-        case "${AT}" in
-            *"Xeon"* | *"Pentium Pro"* | *"Cyrix 6x86MX"* | *"Pentium II"* | *"Pentium III"* | *"Pentium 4"* | *"Celeron"* ) AT="i686" ;;
-            *"Pentium"* ) AT="i586" ;; *"i486[SD]X"* | *"Cyrix 486"* | *"Cyrix [56]x86"* | *"Blue Lightning" | *"Cyrix 486S/DX" ) AT="i486" ;;
-            *"i386[SD]X"* | *"NexGen 586"* ) AT="i386" ;;
-            * ) AT="${AP}" ;;
-        esac
+        AT="${AP}"
+        if [ ".${AT}" = ".iX86" ]; then
+            case "`(/sbin/sysctl -n hw.model) 2>&1`" in
+                *"Xeon"* | *"Pentium Pro"* | *"Cyrix 6x86MX"* | *"Pentium II"* | *"Pentium III"* | *"Pentium 4"* | *"Celeron"* ) AT="i686" ;;
+                *"Pentium"* ) AT="i586" ;; *"i486[SD]X"* | *"Cyrix 486"* | *"Cyrix [56]x86"* | *"Blue Lightning" | *"Cyrix 486S/DX" ) AT="i486" ;;
+                *"i386[SD]X"* | *"NexGen 586"* ) AT="i386" ;;
+            esac
+        fi
         #   determine system
         r=`echo "${UNAME_RELEASE}" |\
            sed -e 's;[()];;' -e 's/\(-.*\)$/[\1]/'`

CVSTrac 2.0.1