commit:     b11c7460abd9916be76f8831466d5cc63bd079bf
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Jan 18 21:53:57 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 06:54:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b11c7460

sys-fs/xfsprogs: migrate checking for enabled lto, to tc-is-lto

This toolchain func was recently added, and is a lot more reliable than
get-flagq, for example if the active flags contain `-flto -fno-lto` then
tc-is-lto gets it correct. We would rather use this wherever possible.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/xfsprogs/xfsprogs-6.3.0.ebuild | 6 +++---
 sys-fs/xfsprogs/xfsprogs-6.4.0.ebuild | 6 +++---
 sys-fs/xfsprogs/xfsprogs-6.5.0.ebuild | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/sys-fs/xfsprogs/xfsprogs-6.3.0.ebuild 
b/sys-fs/xfsprogs/xfsprogs-6.3.0.ebuild
index 412d486c3314..b59bbeb5ee65 100644
--- a/sys-fs/xfsprogs/xfsprogs-6.3.0.ebuild
+++ b/sys-fs/xfsprogs/xfsprogs-6.3.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic systemd usr-ldscript
+inherit flag-o-matic systemd usr-ldscript toolchain-funcs
 
 DESCRIPTION="XFS filesystem utilities"
 HOMEPAGE="https://xfs.wiki.kernel.org/ 
https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/";
@@ -75,7 +75,7 @@ src_configure() {
                $(use_enable libedit editline)
        )
 
-       if is-flagq -flto ; then
+       if tc-is-lto ; then
                myconf+=( --enable-lto )
        else
                myconf+=( --disable-lto )

diff --git a/sys-fs/xfsprogs/xfsprogs-6.4.0.ebuild 
b/sys-fs/xfsprogs/xfsprogs-6.4.0.ebuild
index afc21c0b6d8c..5ee0fb214a0e 100644
--- a/sys-fs/xfsprogs/xfsprogs-6.4.0.ebuild
+++ b/sys-fs/xfsprogs/xfsprogs-6.4.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic systemd usr-ldscript
+inherit flag-o-matic systemd usr-ldscript toolchain-funcs
 
 DESCRIPTION="XFS filesystem utilities"
 HOMEPAGE="https://xfs.wiki.kernel.org/ 
https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/";
@@ -76,7 +76,7 @@ src_configure() {
                $(use_enable libedit editline)
        )
 
-       if is-flagq -flto ; then
+       if tc-is-lto ; then
                myconf+=( --enable-lto )
        else
                myconf+=( --disable-lto )

diff --git a/sys-fs/xfsprogs/xfsprogs-6.5.0.ebuild 
b/sys-fs/xfsprogs/xfsprogs-6.5.0.ebuild
index ab3847406679..a450486a8f38 100644
--- a/sys-fs/xfsprogs/xfsprogs-6.5.0.ebuild
+++ b/sys-fs/xfsprogs/xfsprogs-6.5.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic systemd udev usr-ldscript
+inherit flag-o-matic systemd udev usr-ldscript toolchain-funcs
 
 DESCRIPTION="XFS filesystem utilities"
 HOMEPAGE="https://xfs.wiki.kernel.org/ 
https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/";
@@ -77,7 +77,7 @@ src_configure() {
                $(use_enable libedit editline)
        )
 
-       if is-flagq -flto ; then
+       if tc-is-lto ; then
                myconf+=( --enable-lto )
        else
                myconf+=( --disable-lto )

Reply via email to