Two days ago, I have checked in probably most requested feature of last few years. Ports framework now systematically supports building ports on multiple processing cores. It is achieved by passing -jX flag to make(1) running on vendor code. Of course not all ports handle this well, experimental run on pointyhat with this flag globally enabled turned up shy of 400 failures. Because of that, the feature was designed as a whitelist. Individual ports need to be enabled, and indeed, fellow developers took on and already started adding required declarations to popular ports like Firefox and others.
If you are FreeBSD ports user, you don’t need to do anything to enable the new feature. Whitelisted ports will automatically make use of all processors available in your computer. If you want, for some reasons, to disable this feature, put DISABLE_MAKE_JOBS=yes to your /etc/make.conf. By default, the level of parallelization will be equal to a number of processing cores in your machine. If you want to override this number, use for example MAKE_JOBS_NUMBER=6, again in /etc/make.conf. And if you are extra brave, or you want to check out all the yet unmarked ports, if they will build, you can define FORCE_MAKE_JOBS=yes in /etc/make.conf.
If you are FreeBSD port maintainer, nothing changes for you, if you don’t want. If you want to enable the use of multiple cores in your port, add MAKE_JOBS_SAFE=yes to a block somewhere below dependency declarations. If you know your port does not handle -jX well, and want to disable it from using -jX even when user forces this feature, use MAKE_JOBS_UNSAFE=yes. And that’s all to it.
[...] les utilisateurs, comme l’explique pav sur son blog, cette fonctionnalité est activée de manière transparente pour les ports qui la gèrent. Un [...]
This is great work! Thanks a lot for this!
Great news, thanks for the steady work
[...] not least: Multi processor compilations for everyone. Die Ports nutzen nun die Vorteile mehrerer Kerne vollautomatisiert. Realisiert wurde dies mittels [...]
Any mention of *_MAKE_JOBS_* and whitelisted ports in ports(7)? No? That just ain’t right!
Very nice, thanks a lot!
Is there also parallelization of the port dependencies building planned?
[...] Pla?iau [...]
[...] [1.1.7_509]please wait…Rating: 0.0/5 (0 votes cast) This article was found on Planet FreeBSD. Click here to visit the full article on the original website.Two days ago, I have checked in probably most requested feature of last few years. Ports framework [...]
[...] than one operating system (Windows XP, Linux, Mac OS X) on the same machine without rebooting. …Multi processor compilations for everyone The Perils of PortingMulti processor compilations for everyone. Two days ago, I have checked in probably most … level [...]