From 9703a37608cd06a7bb4ac3ed5f1997398ff169a0 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 20 Jan 2023 13:16:27 +0100 Subject: [PATCH] - limit numbjobs - improve changing shebang - drop _lto_cflags --- chromium.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chromium.spec b/chromium.spec index 2d0e4bc3..1f975afc 100644 --- a/chromium.spec +++ b/chromium.spec @@ -1,5 +1,3 @@ -%define _lto_cflags %{nil} - # enable|disable system build flags %global system_build_flags 0 @@ -9,15 +7,16 @@ %undefine _package_note_file %endif -%global numjobs 32 +# set default numjobs for the koji build +%global numjobs 16 %ifarch aarch64 -%global numjobs 32 +%global numjobs 8 %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} %global numjobs %{_smp_build_ncpus} %endif @@ -1034,7 +1033,8 @@ udev. # Change shebang in all relevant files in this directory and all subdirectories # See `man find` for how the `-exec command {} +` syntax works -find -type f -exec sed -iE '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + +find -type f \( -iname "*.py" \) -exec sed -i '1s=^#! */usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + + # Unpack fonts pushd third_party/test_fonts