Bug 128513

Summary: rpmbuild uses innumerable jobs when /proc not mounted
Product: Red Hat Enterprise Linux 3 Reporter: Leonard den Ottolander <leonard-rh-bugzilla>
Component: openjadeAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-26 16:33:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leonard den Ottolander 2004-07-23 21:45:06 UTC
The assignment and test
NRPROC='`egrep -c "^cpu[0-9]+" /proc/stat || ;`
[ "$NRPROC" = "0" ] && NRPROC = 1

returns an empty result if /proc is not mounted. As a result
make -j$NRPROC 
runs with an unlimited number of jobs which is not very nice when you
do this on a desktop ;) .

An extra test for $NRPROC = "" should fix this.

Comment 1 Tim Waugh 2004-07-26 16:33:11 UTC
This is fixed (using a different method) in rawhide.