[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Fwd: linuxlogo: Fails to detect Athlon64 processor type and states UNKNOWN instead]



In case anyone else would like the fix.
I can't imagine something as minor as this
getting a new source package uploaded !


--- Begin Message ---
Package: linuxlogo
Version: 4.07-0.1
Severity: minor


--- linuxlogo-4.07.orig/libsysinfo-0.0.7/configure.c
+++ linuxlogo-4.07/libsysinfo-0.0.7/configure.c
@@ -22,6 +22,8 @@
     return ARCH_IA64;
 #elif defined(i386)
     return ARCH_IX86;
+#elif defined(__x86_64__)
+    return ARCH_IX86;
 #elif (defined(mc68000) || #cpu(m68k))
     return ARCH_M68K;
 #elif defined(__mips__)
--- linuxlogo-4.07.orig/libsysinfo-0.0.7/Linux/cpuinfo_ix86.c
+++ linuxlogo-4.07/libsysinfo-0.0.7/Linux/cpuinfo_ix86.c
@@ -128,7 +128,11 @@
 
           /* Athlons */
        if (strstr(model_string,"Athlon")!=NULL) {
-	  strncpy(cpu_info->chip_type,"Athlon",7);
+          if (strstr(model_string," 64 ")!=NULL) {
+	     strncpy(cpu_info->chip_type,"Athlon 64",10);
+	  } else {
+	     strncpy(cpu_info->chip_type,"Athlon",7);
+	  }
        }
        
           /* Specialty Athlons */


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.2
Locale: LANG=C, LC_CTYPE=C

Versions of packages linuxlogo depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

--- End Message ---

Reply to: