[pacman-dev] [PATCH 1/1] makepkg: add support for parallel jobs during compilation

Santiago Torres Arias santiago at nyu.edu
Mon Sep 6 19:37:02 UTC 2021


On Mon, Sep 06, 2021 at 07:33:17PM +0000, David Cohen via pacman-dev wrote:
> Currently PKGBUILD has no way to receive from makepkg if it wants to use
> parallel jobs during compilation. This patch adds the '-jN' option to
> makepkg, which will propagate to PKGBUILD 2 variables:
> JOBS is 0 if options is not used, or N otherwise.
> JOBS_ARG is an empty string is option is not used, or '-jN' otherwise.
> 
> If the PKGBUILD script does not support parallel jobs, this option will
> have no impact during the compilation.

Hi David.

Thank you for your contribution!

It appears to me that you can achieve this by doing proper changes here.

    https://gitlab.archlinux.org/pacman/pacman/-/blob/master/etc/makepkg.conf.in#L46

I wonder if this is rather another way to do it through the CLI, and I
wonder if we can evaluate its usefulness on those grounds :)

Cheers!
-Santiago
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20210906/5b6c095e/attachment.sig>


More information about the pacman-dev mailing list