From bb76f118e143f31658b1fb8879d1152d04de34fd Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Oct 01 2010 04:33:11 +0000 Subject: 4 cpu build broke: make max smp 2 cpus --- diff --git a/ghc.spec b/ghc.spec index 243e892..e4337bd 100644 --- a/ghc.spec +++ b/ghc.spec @@ -143,9 +143,9 @@ export CFLAGS="${CFLAGS:-%optflags}" --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} \ %{?with_shared:--enable-shared} -# 8 cpus seems to break build +# 4 cpus or more sometimes breaks build RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN) -[ "$RPM_BUILD_NCPUS" -gt 4 ] && RPM_BUILD_NCPUS=4 +[ "$RPM_BUILD_NCPUS" -gt 2 ] && RPM_BUILD_NCPUS=2 make %{_smp_mflags} %install @@ -282,7 +282,7 @@ fi * Thu Sep 30 2010 Jens Petersen - 6.12.3-6 - move gtk2hs obsoletes to ghc-glib and ghc-gtk - drop happy buildrequires -- smp build with max 4 cpus +- smp build with max 2 cpus * Fri Jul 30 2010 Jens Petersen - 6.12.3-5 - obsolete old gtk2hs packages for smooth upgrades