public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pcl] f44: Limit to 3 cpus on arm to try to prevent memory issues
@ 2026-06-25  5:50 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-25  5:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pcl
Branch : f44
Commit : fcbd73e2a8805f79814cac3e72340a6edcead49b
Author : Björn Esser <besser82@fedoraproject.org>
Date   : 2021-08-20T15:21:49+02:00
Stats  : +8/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/pcl/c/fcbd73e2a8805f79814cac3e72340a6edcead49b?branch=f44

Log:
Limit to 3 cpus on arm to try to prevent memory issues

---
diff --git a/pcl.spec b/pcl.spec
index a05375e..a95c5c5 100644
--- a/pcl.spec
+++ b/pcl.spec
@@ -105,6 +105,10 @@ sed -i 's|@PCL_SOURCE_DIR@/build|@PCL_SOURCE_DIR@/%{_vpath_builddir}|' doc/doxyg
 # try to reduce memory usage of compile process (can cause OOM errors
 # esp. on ARM builders)
 %global optflags %(echo %{optflags} | sed -e 's/-g /-g1 /' -e 's/-pipe //')
+%ifarch %{arm}
+# Likely running out of memory during build
+%global _smp_ncpus_max 3
+%endif
 
 %cmake \
   -DCMAKE_BUILD_TYPE=None \
@@ -191,7 +195,10 @@ mv $RPM_BUILD_ROOT%{_datadir}/%{name}-*/Modules $RPM_BUILD_ROOT%{_libdir}/cmake/
 %doc %{_vpath_builddir}/doc/advanced/advanced
 
 %changelog
-* Mon Aug 17 2021 Rich Mattes <richmattes@gmail.com> - 1.12.0-1
+* Fri Aug 20 2021 Björn Esser <besser82@fedoraproject.org> - 1.12.0-1
+- Limit to 3 cpus on arm to try to prevent memory issues
+
+* Tue Aug 17 2021 Rich Mattes <richmattes@gmail.com> - 1.12.0-1
 - Drop "oom" patch to resolve multiple definition error and fix FTBFS (rhbz#1992893)
 - Enable LTO and add library versions in files section
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-25  5:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25  5:50 [rpms/pcl] f44: Limit to 3 cpus on arm to try to prevent memory issues 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox