From e2b8a9358c5a7c3f62443f0f81168ad33a2d196b08ac576616b7ed478ae91a6b Mon Sep 17 00:00:00 2001 From: Christophe Marin Date: Wed, 16 Oct 2024 10:30:43 +0000 Subject: [PATCH] - 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 --- _constraints | 10 ++++++++++ qt6-declarative.changes | 5 +++++ qt6-declarative.spec | 7 +++++++ 3 files changed, 22 insertions(+) diff --git a/_constraints b/_constraints index 909f5f5..f930b65 100644 --- a/_constraints +++ b/_constraints @@ -6,6 +6,16 @@ 4 + + + s390x + + + + 9 + + + ppc64 diff --git a/qt6-declarative.changes b/qt6-declarative.changes index 53550d1..4b3476d 100644 --- a/qt6-declarative.changes +++ b/qt6-declarative.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 15 09:37:16 UTC 2024 - Antonio Larrosa + +- Update memory constraints for s390x and use %limit_build + ------------------------------------------------------------------- Tue Oct 15 07:52:36 UTC 2024 - Christophe Marin diff --git a/qt6-declarative.spec b/qt6-declarative.spec index 61a13dc..fefcc79 100644 --- a/qt6-declarative.spec +++ b/qt6-declarative.spec @@ -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