public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/pcl] f44: Limit to 3 cpus on arm to try to prevent memory issues
Date: Thu, 25 Jun 2026 05:50:08 GMT	[thread overview]
Message-ID: <178236660869.1.17160005828103760792.rpms-pcl-fcbd73e2a880@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-06-25  5:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178236660869.1.17160005828103760792.rpms-pcl-fcbd73e2a880@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox