Hello community, here is the log from the commit of package libqt5-qtlocation for openSUSE:Factory checked in at 2017-11-04 10:22:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libqt5-qtlocation (Old) and /work/SRC/openSUSE:Factory/.libqt5-qtlocation.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libqt5-qtlocation" Sat Nov 4 10:22:03 2017 rev:24 rq:537891 version:5.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libqt5-qtlocation/libqt5-qtlocation.changes 2017-10-23 16:19:52.278547371 +0200 +++ /work/SRC/openSUSE:Factory/.libqt5-qtlocation.new/libqt5-qtlocation.changes 2017-11-04 10:22:04.554631933 +0100 @@ -1,0 +2,6 @@ +Mon Oct 30 14:18:42 UTC 2017 - fcro...@suse.com + +- Add logic from chromium specfile to limit build parallelism based + on available memory. Add BuildRequires procps for this. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libqt5-qtlocation.spec ++++++ --- /var/tmp/diff_new_pack.hgPhMp/_old 2017-11-04 10:22:05.438599799 +0100 +++ /var/tmp/diff_new_pack.hgPhMp/_new 2017-11-04 10:22:05.438599799 +0100 @@ -47,6 +47,8 @@ #to create the forwarding headers BuildRequires: perl %endif +# needed for free, used to tune build parallelism +BuildRequires: procps BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -134,7 +136,24 @@ mkdir .git %endif %qmake5 -%make_jobs + +# do not eat all memory (logic from chromium specfile) +jobs="%{?jobs:%{jobs}}" +echo "Available memory:" +free +echo "System limits:" +ulimit -a +if test -n "$jobs" -a "$jobs" -gt 1 ; then + mem_per_process=900 + max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"` + max_jobs="$(($max_mem / $mem_per_process))" + test "$jobs" -gt "$max_jobs" && jobs="$max_jobs" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" + test "$jobs" -le 0 && jobs=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits" +fi + +%__make -j$jobs VERBOSE=1 + +#make_jobs %install %qmake5_install