Package: src:abiword Severity: wishlist Hi!
I discovered that the magic in abiword package used to detect CPUs is broken on some Linux architectures. The problem is command `grep -c ^processor /proc/cpuinfo` cannot produce expected result on platform like SPARC. $ cat /proc/cpuinfo cpu : TI UltraSparc III+ (Cheetah+) fpu : UltraSparc III+ integrated FPU pmu : ultra3+ prom : OBP 4.13.0 2004/01/19 18:26 type : sun4u ncpus probed : 4 ncpus active : 4 D$ parity tl1 : 0 I$ parity tl1 : 0 Cpu0ClkTck : 0000000047868c00 Cpu1ClkTck : 0000000047868c00 Cpu2ClkTck : 0000000047868c00 Cpu3ClkTck : 0000000047868c00 MMU Type : Cheetah+ State: CPU0: online CPU1: online CPU2: online CPU3: online $ grep -c ^processor /proc/cpuinfo 0 The correct approach would be looking into /sys file system on Linux: $ ls /sys/devices/system/cpu/ | grep -c "cpu[0-9]\+" 4 Note this does not work on kfreebsd or hurd. kfreebsd does not expose those information in /sys, and hurd does not have /sys at all. -- Regards, Aron Xu -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

