- Do not depend on procps

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=592
This commit is contained in:
Tomáš Chvátal
2018-02-02 11:19:09 +00:00
committed by Git OBS Bridge
parent a3ae23ff3a
commit ab6ff47529
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 2 11:18:53 UTC 2018 - tchvatal@suse.com
- Do not depend on procps
-------------------------------------------------------------------
Mon Jan 29 09:45:20 UTC 2018 - tchvatal@suse.com

View File

@@ -144,8 +144,6 @@ BuildRequires: pentaho-libxml
BuildRequires: pentaho-reporting-flow-engine
BuildRequires: pkgconfig
BuildRequires: postgresql-devel
# needed for the free command in build phase
BuildRequires: procps
BuildRequires: python3-xml
BuildRequires: sac
BuildRequires: ucpp
@@ -892,6 +890,8 @@ sed -i -e '/CppunitTest_desktop_lib/d' desktop/Module_desktop.mk
# Following two tests are really flaky
sed -i -e /CppunitTest_dbaccess_hsqldb_test/d dbaccess/Module_dbaccess.mk
sed -i -e s/CppunitTest_dbaccess_RowSetClones// dbaccess/Module_dbaccess.mk
# Fails due to diff caused by fonts
sed -i -e s/CppunitTest_sw_rtfimport// sw/Module_sw.mk
# Do not generate doxygen timestamp
echo "HTML_TIMESTAMP = NO" >> odk/docs/cpp/Doxyfile
@@ -908,13 +908,13 @@ lo_jobs="%{?jobs:%{jobs}}"
%endif
# do not eat all memory
echo "Available memory:"
free
cat /proc/meminfo
echo "System limits:"
ulimit -a
lo_jobs_reduced=
if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then
mem_per_process=1200
max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`
max_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
max_jobs="$(($max_mem / $mem_per_process))"
test "$lo_jobs" -gt "$max_jobs" && lo_jobs="$max_jobs" && lo_jobs_reduced="yes" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits"
test "$lo_jobs" -le 0 && lo_jobs=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits"