Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2020 13:44:32 +0200
From:      Felix Palmen <felix@palmen-it.de>
To:        FreeBSD ports <ports@freebsd.org>
Cc:        andrew clarke <mail@ozzmosis.com>
Subject:   Re: Out of memory building lang/ghc-8.8.3
Message-ID:  <20200505114432.7d3buq36inky5vk7@nexus.home.palmen-it.de>
In-Reply-To: <4a13c8ea-2db8-d8ef-56b1-2f4204502772@FreeBSD.org>
References:  <20200505093712.5qeyqt7gioolhdyu@ozzmosis.com> <CALH631nwr8p3Q0ie4kuFc3_HMVMkEQn0DRAHAEV2fwrBW7D3-Q@mail.gmail.com> <20200505110900.za365npmukedw4x3@ozzmosis.com> <4a13c8ea-2db8-d8ef-56b1-2f4204502772@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ti2dx7y4rgeziowm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Kubilay Kocak <koobs@FreeBSD.org> [20200505 21:26]:
> On 5/05/2020 9:09 pm, andrew clarke wrote:
> > The -J option sounds like the way to go, provided I remember to use it
> > next time. Or I could instead set PARALLEL_JOBS=3D1 in poudriere.conf b=
ut then
> > build performance will suffer for every port, which isn't ideal.
> >=20
> > But perhaps there's an option to limit make jobs just for a single port=
, set in
> > /usr/local/etc/poudriere.d/make.conf ? That would be nice.

Don't confuse poudriere's PARALLEL_JOBS with the number of jobs for
building a single port. Poudriere defaults to always use a single job
for a single port, you can override this with ALLOW_MAKE_JOBS=3Dyes
globally, or with ALLOW_MAKE_JOBS_PACKAGES for individual ports.

PARALLEL_JOBS just tells how many ports are built in parallel.

> This doesn't help for non-OPTIONS variables, but we have this recently
> submitted feature/review:
>=20
> https://reviews.freebsd.org/D24324
>=20
> For use like:
>=20
> devel_llvm80_VARS=3DDISABLE_MAKE_JOBS=3Dyes
> devel_llvm90_VARS=3DDISABLE_MAKE_JOBS=3Dyes
>=20
> This would satisfy this and other per-port specific build options cases.

As long as this isn't available yet, there's always the old trick
checking .CURDIR like for this example:

=2Eif ${.CURDIR:M*/devel/llvm*}
DISABLE_MAKE_JOBS=3Dyes
=2Eendif

This works because make.conf is just included. But see above why this
shouldn't be needed to control the make jobs when using poudriere.

--=20
 Dipl.-Inform. Felix Palmen  <felix@palmen-it.de>   ,.//..........
 {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
 {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
 {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A

--ti2dx7y4rgeziowm
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAl6xUZwACgkQPvKLCrwC
2ipD8wf/RSpP7klkHJf40BEOqYP5NkhltNGVHNQwhqEsax8PblZBeYHA2fOBm7F6
zDQ298iWSvHdopMEcLajAuV+uW07pt3zewX12zJArrwsUVJfH5UuTHzdPVbggs62
JuMOWfSotDY4FUATUKVGsxv/VKKkxfsbuFQ/s47lzc7tiWz5codo35cWaGZVzob7
3o9EKc5ENf36kBTlOcWeNAjGbP8hqJQRcSjyfajdWFgISsZ2J6Jw9TUJngOWkzsD
weMznLyLfxny9SAx/dZflOGppAxSdpLMUiYTABHAKn45Ym8c69xpPhsiOefxRb57
x/QpXpNdlTxKAp/Fcx7NxYqUKE/EqA==
=q0Dg
-----END PGP SIGNATURE-----

--ti2dx7y4rgeziowm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200505114432.7d3buq36inky5vk7>