- add _constrains to force build on hosts with enough memory (4GB physical RAM,

6GB RAM including swap), and disk space (20GB)
- print some information about the build environment: free, df, configure
  setting result

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=42
This commit is contained in:
Petr Mladek 2013-07-26 10:13:02 +00:00 committed by Git OBS Bridge
parent 199d7a3410
commit 366b18fbd4
3 changed files with 27 additions and 0 deletions

13
_constraints Normal file
View File

@ -0,0 +1,13 @@
<constraints>
<hardware>
<physicalmemory>
<size unit="M">4000</size>
</physicalmemory>
<memory>
<size unit="M">6000</size>
</memory>
<disk>
<size unit="G">20</size>
</disk>
</hardware>
</constraints>

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jul 26 10:06:40 UTC 2013 - pmladek@suse.com
- add _constrains to force build on hosts with enough memory (4GB physical RAM,
6GB RAM including swap), and disk space (20GB)
- print some information about the build environment: free, df, configure
setting result
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 16 15:01:51 UTC 2013 - pmladek@suse.com Tue Jul 16 15:01:51 UTC 2013 - pmladek@suse.com

View File

@ -1369,6 +1369,8 @@ FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" solenv/src/version.c sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" solenv/src/version.c
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" solenv/src/version.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" solenv/src/version.c
#
# see how we stay with memory and
%build %build
%{expand:%(cat %_sourcedir/build_prepare.inc)} %{expand:%(cat %_sourcedir/build_prepare.inc)}
@ -1498,6 +1500,10 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" solenv/src/version.c
) )
# hack to correctly bootstrap python stuff with system python, (deb#501028, i#90701) # hack to correctly bootstrap python stuff with system python, (deb#501028, i#90701)
sed -i -e "s|@INSTALLDIR@|%lo_prefix/%lo_home|" pyuno/source/module/uno.py scripting/source/pyprov/officehelper.py sed -i -e "s|@INSTALLDIR@|%lo_prefix/%lo_home|" pyuno/source/module/uno.py scripting/source/pyprov/officehelper.py
# see how we stay with memory and disk space
free
df
cat config_host.mk
# hard link binaries in the build tree; it might save several GBs on the disk and is faster # hard link binaries in the build tree; it might save several GBs on the disk and is faster
# touch does not have the --no-dereference option on SLED11-SP1, so this can't be used there # touch does not have the --no-dereference option on SLED11-SP1, so this can't be used there
%if %save_space == 1 %if %save_space == 1