Re: git: a7cf5f2a3a2c - main - lang/python311: Improve build times

From: Piotr Kubaj <pkubaj_at_anongoth.pl>
Date: Mon, 24 Jun 2024 20:18:07 UTC
LTO is default enabled, you should bump PORTREVISION.

On 24-06-23 18:38:50, Daniel Engberg wrote:
>The branch main has been updated by diizzy:
>
>URL: https://cgit.FreeBSD.org/ports/commit/?id=a7cf5f2a3a2c8adb21d4cdb5a8ed6dd48a636b5d
>
>commit a7cf5f2a3a2c8adb21d4cdb5a8ed6dd48a636b5d
>Author:     Daniel Engberg <diizzy@FreeBSD.org>
>AuthorDate: 2024-06-23 17:48:15 +0000
>Commit:     Daniel Engberg <diizzy@FreeBSD.org>
>CommitDate: 2024-06-23 18:19:18 +0000
>
>    lang/python311: Improve build times
>
>    Don't generate debug symbols by default, we discard these anyway and on my
>    Tigerlake laptop it reduces build time roughly by 25% with LTO enabled
>    Switch from -flto=thin to (fat)lto, there's no parallization so it's
>    actually slower and produces slightly larger binaries
>
>    PR:             279585
>    Approved by:    portmgr (maintainer timeout, 2+ weeks)
>---
> lang/python311/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/lang/python311/Makefile b/lang/python311/Makefile
>index f2b04ef29cc9..c996da90018c 100644
>--- a/lang/python311/Makefile
>+++ b/lang/python311/Makefile
>@@ -28,7 +28,7 @@ SHEBANG_FILES+=	Lib/test/ziptestdata/exe_with_z64 \
> DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
> CONFIGURE_ARGS+=	--enable-shared --without-ensurepip \
> 			--with-system-ffi
>-CONFIGURE_ENV+=		OPT="" # Null out OPT to respect user CFLAGS and remove optimizations
>+CONFIGURE_ENV+=		OPT="" ac_cv_prog_cc_g=false # Null out OPT to respect user CFLAGS and remove optimizations
>
> INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
>
>@@ -68,7 +68,7 @@ IPV6_CONFIGURE_ENABLE=	ipv6
> LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
> LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
>
>-LTO_CONFIGURE_ON=	--with-lto=thin
>+LTO_CONFIGURE_ON=	--with-lto
>
> # Use CPPFLAGS over CFLAGS due to -I ordering, causing elementtree and pyexpat
> # to break in Python 2.7, or preprocessor complaints in Python >= 3.3