x86info: Add support for hurd-i386
severity 611456 important
tags 611456 patch
Attached are two small patches to support x86info under GNU/Hurd with
the recent libc0.3-dev: 2.11.2-13
Output in qemu as user:
x86info v1.25. Dave Jones 2001-2009
Feedback to <davej@redhat.com>.
Found 1 CPU
--------------------------------------------------------------------------
EFamily: 0 EModel: 0 Family: 6 Model: 3 Stepping: 3
CPU Model: Pentium II (Klamath) [C0]
Type: 0 (Original OEM) Brand: 0 (Unsupported)
Number of cores per physical package=1
Number of logical processors per socket=1
Number of logical processors per core=1
APIC ID: 0x0 Package: 0 Core: 0 SMT ID 0
--- debian/control.orig 2011-03-17 08:50:36.000000000 +0100
+++ debian/control 2011-03-17 09:32:06.659593002 +0100
@@ -7,8 +7,8 @@
Standards-Version: 3.8.3
Package: x86info
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64
-Depends: ${shlibs:Depends}, ${misc:Depends}, makedev (>= 2.3.1-53) | udev
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 hurd-i386
+Depends: ${shlibs:Depends}, ${misc:Depends}, makedev (>= 2.3.1-53) [!hurd-i386] | udev [!hurd-i386]
Description: Display diagnostic information about i386 compatible CPUs
x86info displays diagnostic information about the CPUs fitted to i386
compatible systems. This includes information on the CPU cache
--- debian/postinst.orig 2011-03-17 22:02:08.471593001 +0100
+++ debian/postinst 2011-03-17 21:57:01.391593002 +0100
@@ -3,8 +3,9 @@
set -e
#DEBHELPER#
-
+if [ `uname` = Linux ]; then
if [ ! -c /dev/cpu/0/cpuid -a -x /dev/MAKEDEV ]; then
(cd /dev ; ./MAKEDEV cpu )
fi
+fi
Reply to: