CPU on Ubuntu may not be detected because of `arch` command and Dumper reference

Bug #1293588 reported by Oleg Cherkasov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Fix Released
Low
Frank

Bug Description

Hi,

It look like arch command on Ubuntu is in /usr/bin/arch rather hardcoded /bin/arch (Fedora and RHEL). Dumper() reference (use statement) is missing as well. Here is diff with original lib/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386/CPU.pm:

5,6d4
< use Data::Dumper;
<
9c7
< sub check { can_read("/proc/cpuinfo"); can_run("/usr/bin/arch"); }
---
> sub check { can_read("/proc/cpuinfo"); can_run("/bin/arch"); }

Revision history for this message
Frank (frank-bourdeau) wrote :
Changed in ocsinventory-unix-agent:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Frank (frank-bourdeau)
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
milestone: none → 2.2rc1
Frank (frank-bourdeau)
Changed in ocsinventory-unix-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.