CVSROOT: /cvs Module name: ports Changes by: st...@cvs.openbsd.org 2019/12/05 14:18:08
Modified files: infrastructure/mk: bsd.port.mk README.internals editors/libreoffice: Makefile devel/jdk/1.8 : Makefile devel/jdk/11 : Makefile Log message: Treat DPB_PROPERTIES=parallel as a hint that a port is parallel-safe for use in regular builds too; if that is present in a port, use ${PARALLEL_MAKE_JOBS} jobs in the build, defaulting to hw.ncpuonline. Adjust PARALLEL_BUILD=No, this originally seemed intended to be a hint that a port could NOT handle a parallel build, but current usage is "don't pass make -jXX because this port has its own way to handle things", instead change this to a slightly more understandable PARALLEL_MAKE_FLAGS variable. This defaults to -j${PARALLEL_MAKE_JOBS} but can be reset for build system requirements as needed (java/libreoffice have their own mechanism) and is added automatically to MAKE_FLAGS where a build uses >1 concurrent job. Based on a diff from / ok espie@ - the default value may want revising as hw.ncpuonline jobs will be too many in some cases (e.g. machines with many cores or low RAM), but committing at this stage to avoid further out-of-tree bikeshedding. If you need to restrict to a lower number of jobs, set e.g. PARALLEL_MAKE_JOBS=2 in /etc/mk.conf, and please provide feedback.