- Reduce bit the compilation preparations as we prepped most of the

things by _constraints and it is no longer needed

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=224
This commit is contained in:
Tomáš Chvátal 2015-02-10 12:50:41 +00:00 committed by Git OBS Bridge
parent 65e58ab072
commit 3b39b30243
2 changed files with 17 additions and 29 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 10 12:49:37 UTC 2015 - tchvatal@suse.com
- Reduce bit the compilation preparations as we prepped most of the
things by _constraints and it is no longer needed
-------------------------------------------------------------------
Mon Feb 9 18:00:17 UTC 2015 - tchvatal@suse.com

View File

@ -859,10 +859,10 @@ echo "HTML_TIMESTAMP = NO" >> odk/docs/idl/Doxyfile
# Parallel build settings ...
lo_jobs="%{?jobs:%{jobs}}"
%ifarch %{arm}
%if ! 0%{?qemu_user_space_build:1}
# native hardware is not that powerful
lo_jobs="1"
%endif
%if ! 0%{?qemu_user_space_build:1}
# native hardware is not that powerful
lo_jobs="1"
%endif
%endif
# do not eat all memory
echo "Available memory:"
@ -870,40 +870,22 @@ free
echo "System limits:"
ulimit -a
lo_jobs_reduced=
if test -e "%{_libexecdir}/icecc/bin/gcc" -a -e "%{_libexecdir}/icecc/bin/g++" ; then
PARALLEL_BUILD="$PARALLEL_BUILD --enable-icecream"
else
if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then
if test `uname -i` = "x86_64" ; then
mem_per_process=1000
else
mem_per_process=800
fi
%if 0%{?qemu_user_space_build:1}
if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then
mem_per_process=1200
%endif
max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`
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"
fi
fi
# finally set jobs
PARALLEL_BUILD=
if test -n "$lo_jobs" ; then
PARALLEL_BUILD="--with-parallelism=$lo_jobs"
fi
# using icecream
# make sure that JAVA_HOME is set correctly
source %{_sysconfdir}/profile.d/alljava.sh
# use RPM_OPT_FLAGS, ...
# FIXME: use -g1 instead of -g; the .o files need about 12GB disk space with full debugging symbols; there is not enough disk space and not enough memory for linking libmerged on the build hosts
# 12.3 has broken cppconnector with wrong incude paths
%if 0%{?suse_version} == 01230
ARCH_FLAGS="`echo %{optflags} | sed -e 's/\-fexceptions//g' -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'` -fno-strict-aliasing -I%{_includedir}/mysql-connector/ "
%else
ARCH_FLAGS="`echo %{optflags} | sed -e 's/\-fexceptions//g' -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'` -fno-strict-aliasing"
%endif
ARCH_FLAGS="%{optflags}"
CFLAGS="$ARCH_FLAGS"
CXXFLAGS="$ARCH_FLAGS"
export ARCH_FLAGS CFLAGS CXXFLAGS