- Go back from _constraints file to %limit_build

OBS-URL: https://build.opensuse.org/package/show/science/polymake?expand=0&rev=9
This commit is contained in:
Jan Engelhardt 2020-09-26 21:05:51 +00:00 committed by Git OBS Bridge
parent 02253be8d6
commit 4860e0a836
3 changed files with 12 additions and 4 deletions

View File

@ -7,8 +7,8 @@
</memoryperjob> </memoryperjob>
--> -->
<physicalmemory> <physicalmemory>
<!-- 3400x4 --> <!-- using %%limit_build, plus 200 for kernel -->
<size unit="M">13600</size> <size unit="M">3600</size>
</physicalmemory> </physicalmemory>
</hardware> </hardware>
</constraints> </constraints>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 26 21:03:32 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Go back from _constraints file to %limit_build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 8 11:27:01 UTC 2020 - Jan Engelhardt <jengelh@inai.de> Tue Sep 8 11:27:01 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -80,12 +80,15 @@ objects, and other objects.
%autosetup -p1 %autosetup -p1
%build %build
cat /proc/meminfo
# Not AC. # Not AC.
./configure --prefix="%_prefix" --libdir="%_libdir" \ ./configure --prefix="%_prefix" --libdir="%_libdir" \
--libexecdir="%_libdir/%name-%version" --without-native \ --libexecdir="%_libdir/%name-%version" --without-native \
CFLAGS="%optflags" CXXFLAGS="%optflags" CXXOPT="%optflags" CFLAGS="%optflags" CXXFLAGS="%optflags" CXXOPT="%optflags"
%limit_build -m 1400 # can't replace limit_build by _constraints file:
# * asking memoryperjob=3400 -> unsatisfiable i586 workers
# (github.com/openSUSE/open-build-service/issues/10167)
# * asking physicalmemory=13600 -> unsatisfiable ppc64 workers
%limit_build -m 3400
make NINJA="ninja %{?_smp_mflags}" make NINJA="ninja %{?_smp_mflags}"
%install %install