Red Hat Bugzilla – Bug 495187
Use all available cores when building the rpm
Last modified: 2009-04-11 05:31:22 EDT
-[ "$RPM_BUILD_NCPUS" -gt 1 ] && MOZ_SMP_FLAGS=-j2
+[ "$RPM_BUILD_NCPUS" -gt 1 ] && MOZ_SMP_FLAGS=-j$RPM_BUILD_NCPUS
Here it builds fine with 4. And twice as fast...
The problem isn't your machine. Mine also works fine. The problem is that it sometimes fails in koji. Often enough for us to do this.
These things are upstream bugs, that might have been fixed in the year+ that has passed since you made the change.