From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E6E11158015 for ; Sun, 17 Dec 2023 16:07:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C52702BC09D; Sun, 17 Dec 2023 16:06:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 170892BC095 for ; Sun, 17 Dec 2023 16:06:09 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 5/8] profiles/use.desc: Make USE=lto global Date: Sun, 17 Dec 2023 17:05:29 +0100 Message-ID: <20231217160557.17569-6-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231217160557.17569-1-mgorny@gentoo.org> References: <20231217160557.17569-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: be1c1dbd-2aaa-431b-8478-424801e73579 X-Archives-Hash: acd4ebe5dacd4c9b8089541d4e39a103 Add a global USE=lto flag. The flag is used semi-consistently in 31 packages, with a few adding extra information. That said, probably many of these uses are invalid, as they are equivalent to adding `-flto` to CFLAGS. Signed-off-by: Michał Górny --- app-admin/clsync/metadata.xml | 1 - app-admin/sysstat/metadata.xml | 1 - app-containers/lxc/metadata.xml | 1 - app-editors/neovim/metadata.xml | 1 - app-mobilephone/scrcpy/metadata.xml | 3 --- app-text/crengine-ng/metadata.xml | 1 - dev-cpp/benchmark/metadata.xml | 3 --- dev-db/mongodb/metadata.xml | 1 - dev-java/openjdk/metadata.xml | 1 - dev-lang/R/metadata.xml | 3 --- dev-lang/gnat-gpl/metadata.xml | 1 - dev-lang/python/metadata.xml | 3 --- dev-lang/rust/metadata.xml | 1 - dev-lang/spidermonkey/metadata.xml | 1 - dev-libs/pocl/metadata.xml | 1 - games-action/prismlauncher/metadata.xml | 1 - mail-client/thunderbird/metadata.xml | 1 - media-sound/ncmpcpp/metadata.xml | 1 - net-analyzer/icinga2/metadata.xml | 1 - net-analyzer/netdata/metadata.xml | 1 - net-analyzer/wireshark/metadata.xml | 1 - net-irc/ircii/metadata.xml | 3 --- net-libs/nodejs/metadata.xml | 1 - net-misc/networkmanager/metadata.xml | 1 - profiles/use.desc | 1 + www-client/firefox/metadata.xml | 1 - 26 files changed, 1 insertion(+), 35 deletions(-) diff --git a/app-admin/clsync/metadata.xml b/app-admin/clsync/metadata.xml index 84cf8e321890..b72376271f95 100644 --- a/app-admin/clsync/metadata.xml +++ b/app-admin/clsync/metadata.xml @@ -24,7 +24,6 @@ Enable extra security checks. This will hurt performance. Enable GIO for FS monitoring (glib based alternative to inotify interface, not recommended; if both are compiled, may be selected at runtime). Allows to use spinlocks for short delays instead of mutexes, but only on SMP systems. - Build with link time optimization (LTO). Enable namespaces isolation. Build the control and monitoring socket library: libclsync. diff --git a/app-admin/sysstat/metadata.xml b/app-admin/sysstat/metadata.xml index 6e1b41958fce..e4acfbefca13 100644 --- a/app-admin/sysstat/metadata.xml +++ b/app-admin/sysstat/metadata.xml @@ -14,6 +14,5 @@ Adjust cronjobs to work properly under sys-process/dcron - Build using Link Time Optimizations (LTO) diff --git a/app-containers/lxc/metadata.xml b/app-containers/lxc/metadata.xml index a2d77654dbe8..7c423aeaca6f 100644 --- a/app-containers/lxc/metadata.xml +++ b/app-containers/lxc/metadata.xml @@ -11,7 +11,6 @@ Enable io_uring support, and use io_uring instead of epoll - Enable Link Time Optimization (LTO) Build and install additional command line tools diff --git a/app-editors/neovim/metadata.xml b/app-editors/neovim/metadata.xml index 28259891cdc2..5c58332c3ce4 100644 --- a/app-editors/neovim/metadata.xml +++ b/app-editors/neovim/metadata.xml @@ -14,7 +14,6 @@ Proxy Maintainers - Build with Link Time Optimization (LTO) Install nvimpager symlink to less.sh macro diff --git a/app-mobilephone/scrcpy/metadata.xml b/app-mobilephone/scrcpy/metadata.xml index 6d3156f41a83..b3504f704818 100644 --- a/app-mobilephone/scrcpy/metadata.xml +++ b/app-mobilephone/scrcpy/metadata.xml @@ -5,9 +5,6 @@ voyageur@gentoo.org Bernard Cafarelli - - Build with Link Time Optimization (LTO) - Genymobile/scrcpy diff --git a/app-text/crengine-ng/metadata.xml b/app-text/crengine-ng/metadata.xml index 6e310c98f9eb..8fec2108c8d1 100644 --- a/app-text/crengine-ng/metadata.xml +++ b/app-text/crengine-ng/metadata.xml @@ -20,7 +20,6 @@ Use dev-libs/libunibreak for hyphenation Support bidirectional text by dev-libs/fribidi Use dev-libs/libutf8proc for manipulating unicode strings - Use link time optimization coolreader-ng/crengine-ng diff --git a/dev-cpp/benchmark/metadata.xml b/dev-cpp/benchmark/metadata.xml index 1a6a996e42c9..ac75eeab418b 100644 --- a/dev-cpp/benchmark/metadata.xml +++ b/dev-cpp/benchmark/metadata.xml @@ -10,7 +10,4 @@ https://github.com/google/benchmark/tree/master/docs/ google/benchmark - - Optimize the build using Link Time Optimization (LTO) - diff --git a/dev-db/mongodb/metadata.xml b/dev-db/mongodb/metadata.xml index 4209dc659524..f8c3c65fba50 100644 --- a/dev-db/mongodb/metadata.xml +++ b/dev-db/mongodb/metadata.xml @@ -14,7 +14,6 @@ and powerful queries). - Adds support for link time optimization Install the MongoDB shell from app-admin/mongosh-bin Install the MongoDB tools (mongoimport, mongodump...) from app-admin/mongo-tools diff --git a/dev-java/openjdk/metadata.xml b/dev-java/openjdk/metadata.xml index 201e1fe75f50..367d2eb36d3e 100644 --- a/dev-java/openjdk/metadata.xml +++ b/dev-java/openjdk/metadata.xml @@ -23,7 +23,6 @@ Provide JavaFX support via dev-java/openjfx Import OpenJFX modules at build time, via dev-java/openjfx Build OpenJDK twice, the second time using the result of the first - Enable Link Time Optimization (LTO) Install JVM sources Bootstrap using installed openjdk Enable SystemTAP/DTrace tracing diff --git a/dev-lang/R/metadata.xml b/dev-lang/R/metadata.xml index a1ef08b1f6c4..c5ab836c4412 100644 --- a/dev-lang/R/metadata.xml +++ b/dev-lang/R/metadata.xml @@ -5,9 +5,6 @@ sci-mathematics@gentoo.org Gentoo Mathematics Project - - Use link-time optimization for R and its recommended packages. - R is GNU S, a system for statistical computation and graphics. It consists of a language plus a run-time environment with graphics, a diff --git a/dev-lang/gnat-gpl/metadata.xml b/dev-lang/gnat-gpl/metadata.xml index 2f5323748c2c..9d754256f541 100644 --- a/dev-lang/gnat-gpl/metadata.xml +++ b/dev-lang/gnat-gpl/metadata.xml @@ -20,7 +20,6 @@ Build SSP support into a dedicated library rather than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES) - Build using Link Time Optimizations (LTO) Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually) Build support for the Objective C code language diff --git a/dev-lang/python/metadata.xml b/dev-lang/python/metadata.xml index 66d5aec84c7a..1d85e227b848 100644 --- a/dev-lang/python/metadata.xml +++ b/dev-lang/python/metadata.xml @@ -23,9 +23,6 @@ by running Python's test suite and collecting statistics based on its performance. This will take longer to build. - - Optimize the build using Link Time Optimization (LTO) - Disable pymalloc when running under dev-util/valgrind is detected (may incur minor diff --git a/dev-lang/rust/metadata.xml b/dev-lang/rust/metadata.xml index d67d2777f5ae..e28f62701eb3 100644 --- a/dev-lang/rust/metadata.xml +++ b/dev-lang/rust/metadata.xml @@ -12,7 +12,6 @@ Install clippy, Rust code linter Install dist tarballs (used for bootstrapping) - Optimize the build using Link Time Optimization (LTO) Install miri, an interpreter for Rust's mid-level intermediate representation (requires USE=nightly, sometimes is broken) Enable nightly (UNSTABLE) features (NOTE: it does not install nightly version, just enables features marked as nightly at time of release) Build a multi-threaded rustc (experimental, not tested by upstream) diff --git a/dev-lang/spidermonkey/metadata.xml b/dev-lang/spidermonkey/metadata.xml index eb50caaedbf8..451d64839c6f 100644 --- a/dev-lang/spidermonkey/metadata.xml +++ b/dev-lang/spidermonkey/metadata.xml @@ -8,6 +8,5 @@ Use Clang compiler instead of GCC Enable assertions to allow for easier debugging of programs that link to spidermonkey -- note this will often crash software on regular end-user systems - Enable Link Time Optimization (LTO) diff --git a/dev-libs/pocl/metadata.xml b/dev-libs/pocl/metadata.xml index a08bc6bb7825..a4227dd06f59 100644 --- a/dev-libs/pocl/metadata.xml +++ b/dev-libs/pocl/metadata.xml @@ -13,7 +13,6 @@ Enable hwloc support Enables custom memory manager. Except for special circumstances, this should be disabled - Adds support for link time optimization pocl/pocl diff --git a/games-action/prismlauncher/metadata.xml b/games-action/prismlauncher/metadata.xml index f54dc7d44a8d..04368a2b7323 100644 --- a/games-action/prismlauncher/metadata.xml +++ b/games-action/prismlauncher/metadata.xml @@ -20,7 +20,6 @@ Prism Launcher is a multi-instance Minecraft launcher focused on user freedom, redistributability, and simplicity. - Enable link-time optimization Build with Qt6 support instead of the default Qt5 diff --git a/mail-client/thunderbird/metadata.xml b/mail-client/thunderbird/metadata.xml index 15c5d959f38e..51a24c64cf6b 100644 --- a/mail-client/thunderbird/metadata.xml +++ b/mail-client/thunderbird/metadata.xml @@ -10,7 +10,6 @@ Disable EME (DRM plugin) capability at build time Force-enable hardware-accelerated rendering (Mozilla bug 594876) Enable libproxy support - Enable Link Time Optimization (LTO) Use media-libs/openh264 for H.264 support instead of downloading binary blob from Mozilla at runtime Add support for profile-guided optimization using gcc-4.5, diff --git a/media-sound/ncmpcpp/metadata.xml b/media-sound/ncmpcpp/metadata.xml index 8487c821da85..9f24a3207164 100644 --- a/media-sound/ncmpcpp/metadata.xml +++ b/media-sound/ncmpcpp/metadata.xml @@ -11,7 +11,6 @@ Enable clock screen - Build with link-time optimisation Enable outputs screen Enable visualizer screen with sound wave/frequency spectrum modes diff --git a/net-analyzer/icinga2/metadata.xml b/net-analyzer/icinga2/metadata.xml index 092644b84488..7a4547f2335d 100644 --- a/net-analyzer/icinga2/metadata.xml +++ b/net-analyzer/icinga2/metadata.xml @@ -7,7 +7,6 @@ Adds support for line-editing in the console - Adds support for link time optimization Combine source files to speed up build process, requires more memory Allows for mailing of alerts Enable support for the mariadb database backend diff --git a/net-analyzer/netdata/metadata.xml b/net-analyzer/netdata/metadata.xml index 17119a893259..f1324e58552f 100644 --- a/net-analyzer/netdata/metadata.xml +++ b/net-analyzer/netdata/metadata.xml @@ -11,7 +11,6 @@ Enable the Netdata database engine Install sys-apps/ipmitool required for monitoring IPMI sensors. Enable optimization of JSON using dev-libs/json-c - Build with Link Time Optimization (LTO) Enable support for the mongodb backend Enable the nfacct plugin Enable use of nodejs (which some plugins use) diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml index 719a99791357..89ac9190ba3b 100644 --- a/net-analyzer/wireshark/metadata.xml +++ b/net-analyzer/wireshark/metadata.xml @@ -39,7 +39,6 @@ Use net-libs/nghttp2 for HTTP/2 support Build with iLBC support in RTP Player using media-libs/libilbc Use dev-libs/libxml2 for handling XML configuration in dissectors - Enable link time optimization Use dev-libs/libmaxminddb for IP address geolocation Install mergecap, to merge two or more capture files into one Build with zip file compression support diff --git a/net-irc/ircii/metadata.xml b/net-irc/ircii/metadata.xml index 0cdf261be819..aa20bff17b1d 100644 --- a/net-irc/ircii/metadata.xml +++ b/net-irc/ircii/metadata.xml @@ -5,7 +5,4 @@ bkohler@gentoo.org Ben Kohler - - Build using Link Time Optimizations (LTO) - diff --git a/net-libs/nodejs/metadata.xml b/net-libs/nodejs/metadata.xml index 4d8e1010ced8..a81beb28246a 100644 --- a/net-libs/nodejs/metadata.xml +++ b/net-libs/nodejs/metadata.xml @@ -8,7 +8,6 @@ Enable the experimental corepack package management tool Enable V8 inspector - Build with link-time optimisation Enable NPM package manager Enable building under a PaX enabled kernel Enable snapshot creation for faster startup diff --git a/net-misc/networkmanager/metadata.xml b/net-misc/networkmanager/metadata.xml index cc9b634fb71d..b052b568a851 100644 --- a/net-misc/networkmanager/metadata.xml +++ b/net-misc/networkmanager/metadata.xml @@ -14,7 +14,6 @@ Use net-firewall/iptables for connection sharing Use net-wireless/iwd instead of net-wireless/wpa_supplicant for wifi support by default Use public suffix list via net-libs/libpsl - Build using Link Time Optimizations (LTO) Enable support for mobile broadband devices using net-misc/modemmanager Use net-firewall/nftables for connection sharing Use dev-libs/nss for cryptography diff --git a/profiles/use.desc b/profiles/use.desc index 4d72d3ca42eb..ee61c317ccae 100644 --- a/profiles/use.desc +++ b/profiles/use.desc @@ -174,6 +174,7 @@ lirc - Add support for lirc (Linux's Infra-Red Remote Control) livecd - !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during livecd building llvm-libunwind - Use sys-libs/llvm-libunwind instead of sys-libs/libunwind lm-sensors - Add linux lm-sensors (hardware sensors) support +lto - Enable Link-Time Optimization (LTO) to optimize the build lua - Enable Lua scripting support lz4 - Enable support for lz4 compression (as implemented in app-arch/lz4) lzip - Enable support for lzip compression diff --git a/www-client/firefox/metadata.xml b/www-client/firefox/metadata.xml index 6215c1eac1fe..b0a1758bd35a 100644 --- a/www-client/firefox/metadata.xml +++ b/www-client/firefox/metadata.xml @@ -14,7 +14,6 @@ Force-enable hardware-accelerated rendering (Mozilla bug 594876) Enable unified build - combines source files to speed up build process, but requires more memory Enable libproxy support - Enable Link Time Optimization (LTO) Use media-libs/openh264 for H264 support instead of downloading binary blob from Mozilla at runtime Add support for profile-guided optimization for faster binaries - this -- 2.43.0