[tbb-dev] buildconf/num_procs inside RBM.pm?

David Fifield david at bamsoftware.com
Sun Jul 25 16:51:47 UTC 2021


I noticed that the "Resolving deltas" step of git clones was using a
maximum of 3 threads. I thought about altering the command line in
git_clone_fetch_chdir to include something like:
	'--config', 'pack.threads=' . config('buildconf/num_procs')
(See https://git-scm.com/docs/git-config#Documentation/git-config.txt-packthreads
and https://git-scm.com/docs/git-index-pack#Documentation/git-index-pack.txt---threadsltngta.)

But it looks like nothing inside RBM itself uses 'buildconf/num_procs',
or even just 'buildconf'. It's only used by tor-browser-build files. Is
there a way to use this information inside RBM, or does what I'm trying
to do not make sense?

rbm.conf passes a buildconf.num_procs hash into the "c" function when
computing the build_id, but I was not able to find where it might be
used in the template expansion.
	build_id: '[% sha256(c("var/build_id_txt", { buildconf => { num_procs => 4 } })).substr(0, 6) %]'
https://gitweb.torproject.org/builders/tor-browser-build.git/tree/rbm.conf?h=tbb-10.5.3-build1#n73


More information about the tbb-dev mailing list