[arch-general] makepkg - any way to recompile only newly patched files in large packages?

Eli Schwartz eschwartz at archlinux.org
Tue Aug 8 20:29:53 UTC 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20170808/ee8a4b70/attachment.asc>


More information about the arch-general mailing list