﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
201	rpmbuild	Silvan Scherrer		"The below sequence is executed as in the macros to see how many CPU's are available. But as we don't have getconf, RPM_BUILD_NCPUS is uninitialized. This leads to warnings and errors in the log.
As we don't have getconf, I vote for initializing the value with 1
{{{
# Maximum number of CPU's to use when building, 0 for unlimited.
#%_smp_ncpus_max 0
%_smp_mflags %([ -z ""$RPM_BUILD_NCPUS"" ] \\\
	&& RPM_BUILD_NCPUS=""`/usr/bin/getconf _NPROCESSORS_ONLN`""; \\\
        ncpus_max=%{?_smp_ncpus_max}; \\\
        if [ -n ""$ncpus_max"" ] && [ ""$ncpus_max"" -gt 0 ] && [ ""$RPM_BUILD_NCPUS"" -gt ""$ncpus_max"" ]; then RPM_BUILD_NCPUS=""$ncpus_max""; fi; \\\
        if [ ""$RPM_BUILD_NCPUS"" -gt 1 ]; then echo ""-j$RPM_BUILD_NCPUS""; fi)
}}}"	defect	closed	minor		rpm		low	fixed		
