From ae7a3aa5124788cf28e2811ddcc0ea307d17e086 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Jan 14 2013 16:22:44 +0000 Subject: Limit the memory allocation to 2GiB when building profiles --- diff --git a/colord.spec b/colord.spec index 3b59ee8..4ab9e63 100644 --- a/colord.spec +++ b/colord.spec @@ -74,6 +74,10 @@ This may be useful for CMYK soft-proofing or for extra device support. %setup -q %build +# Set ~2 GiB limit so that colprof is forced to work in chunks when +# generating the print profile rather than trying to allocate a 3.1 GiB +# chunk of RAM to put the entire B-to-A tables in. +ulimit -Sv 2000000 %configure \ --with-daemon-user=colord \ --enable-gtk-doc \