- Update memory constraints for s390x and use %limit_build

OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/qt6-declarative?expand=0&rev=79
This commit is contained in:
Christophe Marin 2024-10-16 10:30:43 +00:00 committed by Git OBS Bridge
parent af6617e808
commit e2b8a9358c
3 changed files with 22 additions and 0 deletions

View File

@ -6,6 +6,16 @@
</disk>
<processors>4</processors>
</hardware>
<overwrite>
<conditions>
<arch>s390x</arch>
</conditions>
<hardware>
<memory>
<size unit="G">9</size>
</memory>
</hardware>
</overwrite>
<overwrite>
<conditions>
<arch>ppc64</arch>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 15 09:37:16 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Update memory constraints for s390x and use %limit_build
-------------------------------------------------------------------
Tue Oct 15 07:52:36 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@ -41,6 +41,7 @@ Patch1: 0001-Revert-QQmlDelegateModel-fix-delegates-not-being-cre.patch
Patch2: 0002-QQmlDelegateModel-fix-delegates-not-being-created-in.patch
# PATCH-FIX-UPSTREAM
Patch3: 0001-Compiler-Wrap-raw-string-literals-in-QStringLiteral-.patch
BuildRequires: memory-constraints
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: qt6-core-private-devel
@ -979,6 +980,12 @@ This is a meta package, it does not contain any file
EOF
%build
%ifarch s390x
%if "%{qt6_flavor}" == ""
# Determine the right number of parallel processes based on the available memory
%limit_build -m 1700
%endif
%endif
# Package provides static libraries
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects