Bug 128513 - rpmbuild uses innumerable jobs when /proc not mounted
rpmbuild uses innumerable jobs when /proc not mounted
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: openjade (Show other bugs)
3.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Tim Waugh
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-07-23 17:45 EDT by Leonard den Ottolander
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-07-26 12:33:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Leonard den Ottolander 2004-07-23 17:45:06 EDT
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 12:33:11 EDT
This is fixed (using a different method) in rawhide.

Note You need to log in before you can comment on or make changes to this bug.