Description of problem: Running commands like 'arch' or 'umask' obviously show the arch of the Host OS. In most cases this doesn't matter, however I have found that I can not build PHP-5.2.5 on RHEL5 i386 because of the way net-snmp-config determines the arch of the OS (using the 'arch' command). net-snmp-config believes the build arch is x86_64 (that of the host OS) and not i386 (the OS I'm building for) because it is using the 'arch' command to determine arch. Version-Release number of selected component (if applicable): mock-0.7.2-2.rs How reproducible: Every time. Steps to Reproduce: 1. mock -r <rhel5-i386-config> rebuild php-5.2.5-1.src.rpm 2. 3. Actual results: checking whether libxml build works... (cached) yes checking for SNMP support... yes, shared checking OpenSSL dir for SNMP... no checking whether to enable UCD SNMP hack... yes /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found configure: error: Could not find the required paths. Please check your net-snmp installation. Expected results: net-snmp-config should see that the installed arch is i386... but the arch/uname commands show x86_64 (the host OS arch). Additional info:
The latest version of mock does an internal 'setarch' that should now show your arch as i386