Date: Mon, 21 Feb 2022 10:50:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262092] net/samba413: Improve build time Message-ID: <bug-262092-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262092 Bug ID: 262092 Summary: net/samba413: Improve build time Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: timur@FreeBSD.org Reporter: chris@chrullrich.net Assignee: timur@FreeBSD.org Flags: maintainer-feedback?(timur@FreeBSD.org) Created attachment 231985 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231985&action= =3Dedit Patch. Samba's Python-based build system, waf, will with high probability rebuild = the entire source during stage because it does not maintain the order of compil= er arguments. This appears to defeat its own minimal-rebuild logic, and defeats ccache in most cases. Patch attached; reducing build time by ~50 %. If ccache is in use, it does = not waste cache space on single-use objects and thereby improves the overall hit rate of a shared ccache. Two successive poudriere builds without the patch had port times of 13:18 a= nd 13:22 minutes respectively. With the patch, the times were 6:05 and 5:47 minutes, all measured with "hot" ccache (i.e. the times are for the ccache lookups only, and the builds without the patch had cache hits for the diffe= rent command lines as well). The upstream distribution's root Makefile already sets PYTHONHASHSEED to av= oid this issue, but the port skips it by invoking waf directly. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262092-7788>