public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/chromium] epel9-next: Turning the buildsystem
Date: Fri, 07 Aug 2026 16:04:42 GMT	[thread overview]
Message-ID: <178611868200.1.5381498894476157750.rpms-chromium-ec43a3a86c3b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : ec43a3a86c3b715ca41041f1c577bf4ea594665e
Author : Than Ngo <than@redhat.com>
Date   : 2023-02-07T20:02:34+01:00
Stats  : +17/-17 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/ec43a3a86c3b715ca41041f1c577bf4ea594665e?branch=epel9-next

Log:
Turning the buildsystem

---
diff --git a/chromium.spec b/chromium.spec
index fcc205d..55c1574 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -12,21 +12,27 @@
 %undefine _package_note_file
 %endif
 
+# Require 2 GB of RAM per CPU core
+# %%constrain_build -m 2048
+
 # set default numjobs for the koji build
-# we got the aarch64 builder with 224 cores and x86_64 builder with 46 cores
-%global numjobs 48
 %ifarch aarch64
+%if %{_smp_build_ncpus} >= 8
+%global numjobs 8
+%endif
+%if %{_smp_build_ncpus} >= 16
+%global numjobs 16
+%endif
+%if %{_smp_build_ncpus} >= 32
+%global numjobs 32
+%endif
+%if %{_smp_build_ncpus} >= 64
 %global numjobs 64
 %endif
- 
-# This flag is so I can build things very fast on a giant system.
-# Enabling this in koji causes aarch64 builds to timeout indefinitely.
-%global use_all_cpus 0
- 
-%if %{use_all_cpus}
+%else
 %global numjobs %{_smp_build_ncpus}
 %endif
-
+ 
 # official builds have less debugging and go faster... but we have to shut some things off.
 %global official_build 1
 
@@ -38,7 +44,7 @@
 # %2 what
 %global build_target() \
 	export NINJA_STATUS="[%2:%f/%t] " ; \
-	ninja -j %{numjobs} -C '%1' -v '%2'
+	ninja -j %{numjobs} -C '%1' '%2'
 
 # enable|disable headless client build
 %global build_headless 1
@@ -1179,10 +1185,6 @@ sed -i 's|moc|moc-qt5|g' ui/qt/moc_wrapper.py
 # decode byte 0xe2 in position 474: ordinal not in range(128)
 export LANG=en_US.UTF-8
 
-# Turning the buildsystem up to 11.
-ulimit -a
-ulimit -n 2048
-
 # reduce warnings
 FLAGS=' -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line-argument'
 FLAGS+=' -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable'
@@ -1211,9 +1213,7 @@ export CXX=g++
 %endif
 export CFLAGS
 export CXXFLAGS
-%ifarch aarch64
-export LDFLAGS="$LDFLAGS -Wl,-no-threads"
-%endif
+export LDFLAGS="$LDFLAGS -Wl,--threads=4"
 export AR="llvm-ar"
 export NM="llvm-nm"
 export READELF="llvm-readelf"

             reply	other threads:[~2026-08-07 16:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 16:04 Than Ngo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-08-07 16:04 [rpms/chromium] epel9-next: Turning the buildsystem Than Ngo
2026-08-07 16:04 [rpms/chromium] epel9-next: turning " Than Ngo
2026-08-07 16:04 [rpms/chromium] epel9-next: Turning " Than Ngo
2026-08-07 16:04 Than Ngo

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=178611868200.1.5381498894476157750.rpms-chromium-ec43a3a86c3b@fedoraproject.org \
    --to=than@redhat.com \
    --cc=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