diff --git a/limit-smp-16-threads.patch b/limit-smp-16-threads.patch new file mode 100644 index 0000000..0182de7 --- /dev/null +++ b/limit-smp-16-threads.patch @@ -0,0 +1,13 @@ +diff -Nur redhat-rpm-config-9.0.2-orig/macros redhat-rpm-config-9.0.2/macros +--- redhat-rpm-config-9.0.2-orig/macros 2008-04-03 02:14:54.000000000 -0500 ++++ redhat-rpm-config-9.0.2/macros 2008-05-20 13:33:15.000000000 -0500 +@@ -68,7 +68,8 @@ + + %_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\ + && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\ +- [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS") ++ if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\ ++ elif [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi) + + #============================================================================== + # ---- Build policy macros. diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index f3b2ca6..9087d3c 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -1,12 +1,13 @@ Summary: Red Hat specific rpm configuration files. Name: redhat-rpm-config Version: 9.0.3 -Release: 3%{?dist} +Release: 4%{?dist} # No version specified. License: GPL+ Group: Development/System Source: redhat-rpm-config-%{version}.tar.bz2 Patch0: redhat-rpm-config-9.0.3-fix-requires.patch +Patch1: limit-smp-16-threads.patch BuildArch: noarch Requires: mktemp BuildRoot: %{_tmppath}/%{name}-root @@ -17,6 +18,7 @@ Red Hat specific rpm configuration files. %prep %setup -q %patch0 -p0 +%patch1 -p1 %install make DESTDIR=${RPM_BUILD_ROOT} install @@ -29,6 +31,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_prefix}/lib/rpm/redhat %changelog +* Mon Feb 16 2009 Dennis Gilmore - 9.0.3-4 +- limit _smp_flags to -j16 + * Wed Sep 3 2008 Tom "spot" Callaway - 9.0.3-3 - fix license tag - nuke ancient conflicts