On 08/07/2017 10:06 PM, David C. Rankin wrote: > On 08/07/2017 06:06 AM, Christoph Gysin via arch-general wrote: >> Not the answer to your question, but you might consider configuring >> /etc/makepkg.conf to use ccache to speed up rebuilds. Also set >> MAKEFLAGS=-j4 or similar to make sure you are using all available >> cores. > > Thanks Cristoph, > > How do you know whether a package is capable of being built in parallel? > I've run into problems before with big builds when building in parallel. Is it > just a 'try and see if it works' issue, or is there some general rule-of-thumb > you can use?
Generally, you try and see if it works. If it doesn't, the build rules don't properly specify dependencies, and you file an upstream bug report, which may or may not get fixed, and you make sure the PKGBUILD maintainer specifically resets MAKEFLAGS back to -j1 (this is the only time it is okay to specify the number of make jobs to run in parallel, if you are resetting back to the defaults because a package doesn't compile with custom MAKEFLAGS in makepkg.conf). -- Eli Schwartz
Description: OpenPGP digital signature