Created attachment 193245 [details] multiple jobs build Speedup nginx build.
Created attachment 193254 [details] multiple jobs build
Hi there, thanks for the patch. Could you please provide a bit more details in this case. If the change speed-up the port build, would you mind to provide some measures with and without your patch. Thanks.
AMD Ryzen 2700x (8C16T) env CCACHE_RECACHE=1 /usr/bin/time -h make -j1 26.34s real 20.89s user 4.81s sys env CCACHE_RECACHE=1 /usr/bin/time -h make 6.81s real 31.52s user 9.08s sys AMD 5350 (4C4T) env CCACHE_RECACHE=1 /usr/bin/time -h make -j1 2m13.05s real 1m53.30s user 19.42s sys env CCACHE_RECACHE=1 /usr/bin/time -h make 48.39s real 2m8.76s user 23.03s sys Nginx port options on 2700x and 5350 not same. I do not revert patch, just use -j1 for single thread/process build.
Have you tried to do a build with all third-party modules enabled? Is there everything is OK or is there any issues?
Yes, I try. ~80% modules builds ok. Other modules I do not try (too heavy deps) or they fail die to dep build fail or issues with libressl 2.7. MODSECURITY - single process build, I do not touch pre-configure-MODSECURITY-on.
Cool, thanks for sharing that information. I've just tried to build www/nginx-devel with your patch and `make' command, so I've got an issue with VOD third-party module: --- objs/addon/filters/audio_encoder.o --- /ports/www/nginx-devel/work/nginx-vod-module-1.23/vod/filters/audio_encoder.c:103:20: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER' encoder->flags |= CODEC_FLAG_GLOBAL_HEADER; // make the codec generate the extra data ^ /ports/www/nginx-devel/work/nginx-vod-module-1.23/vod/filters/audio_encoder.c:142:45: error: use of undeclared identifier 'CODEC_CAP_VARIABLE_FRAME_SIZE' if ((state->encoder->codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) != 0) ^ 2 errors generated. I've upgrade the third-part vod module version to 1.23 but the issue still exists. So, we need to find a workaround to fix this before we apply your patch.
IMHO there is another reason. https://github.com/orbea/RetroArch/commit/4f5fc6e4ad8f21c517fab57a2a37669e419c1423 https://stackoverflow.com/questions/46884682/error-in-building-opencv-with-ffmpeg https://github.com/stevenlovegrove/Pangolin/pull/318/commits/b56a041ca1586ebaac0659892e5ba381e0a4288d And we upgrade ffmpeg to 4 from 3.4 less than month ago.
Try to build with all options without patch or with -j1 and you get same result - some things are broken.
I don't think I fully understand your recent message cause third-party vod module compiles well without your patch.
I've double checked the URLs you provided and I've found a workaround. Will commit your patch with my updates soon.
A commit references this bug: Author: osa Date: Sun May 13 14:24:21 UTC 2018 New revision: 469797 URL: https://svnweb.freebsd.org/changeset/ports/469797 Log: Speed-up the port's build by enable multiple jobs build. While I'm here update third-party vod module to recent 1.23 version. Bump PORTREVISION. PR: 228127 Changes: head/www/nginx-devel/Makefile head/www/nginx-devel/Makefile.extmod head/www/nginx-devel/distinfo head/www/nginx-devel/files/extra-patch-nginx-vod-module-config head/www/nginx-devel/files/extra-patch-vod-filters-audio_encoder.c
Hi Jochen, I've just committed the patch for www/nginx-devel to speed its build. I've reassigned this PR to you, so could you please take a look on it for the www/nginx port. Thanks.
(In reply to Sergey A. Osokin from comment #9) It can compile only if you system contain definition: CODEC_FLAG_GLOBAL_HEADER CODEC_CAP_VARIABLE_FRAME_SIZE or if some ccache magic happen. That is why I use: env CCACHE_RECACHE=1 /usr/bin/time -h make to avoid any cache effects. This is required to be compatible with ffmpeg 4x: CODEC_FLAG_GLOBAL_HEADER -> AV_CODEC_FLAG_GLOBAL_HEADER CODEC_CAP_VARIABLE_FRAME_SIZE -> AV_CODEC_CAP_VARIABLE_FRAME_SIZE Thanks!
A commit references this bug: Author: joneum Date: Tue May 15 17:39:16 UTC 2018 New revision: 470039 URL: https://svnweb.freebsd.org/changeset/ports/470039 Log: Add third-party vts (virtual host traffic status) module. [1] Speed-up the port's build by enable multiple jobs build. [2] Upgrade third-party-module redis2 to version 0.15 PR: 225833 [1], 228127 [2] Changes: head/www/nginx/Makefile head/www/nginx/Makefile.extmod head/www/nginx/Makefile.options.desc head/www/nginx/distinfo
(In reply to Sergey A. Osokin from comment #12) Hey Sergey, thanks for the hint. Committed. :-)