commit:     c31ee12d006747270fa58e611aa42eb4f9dee663
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Jun 10 05:11:26 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 14 06:44:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c31ee12d

sys-cluster/pmix: make sure elibtoolize is applied, mark as LTO-unsafe

elibtoolize is needed to e.g. pass LTO warning flags through to the
linker. And indeed, once that is used, the build starts failing with LTO
error flags.

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

 sys-cluster/pmix/pmix-4.2.8.ebuild | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/pmix/pmix-4.2.8.ebuild 
b/sys-cluster/pmix/pmix-4.2.8.ebuild
index 313536a69a73..ce44f08ba0c0 100644
--- a/sys-cluster/pmix/pmix-4.2.8.ebuild
+++ b/sys-cluster/pmix/pmix-4.2.8.ebuild
@@ -1,8 +1,10 @@
-# 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 libtool
+
 DESCRIPTION="The Process Management Interface (PMI) Exascale"
 HOMEPAGE="https://openpmix.github.io/";
 
SRC_URI="https://github.com/openpmix/openpmix/releases/download/v${PV}/${P}.tar.bz2";
@@ -23,7 +25,16 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+       default
+       elibtoolize
+}
+
 src_configure() {
+       # -Werror=lto-type-mismatch
+       # https://github.com/openpmix/openpmix/issues/3350
+       filter-lto
+
        econf \
                --disable-werror \
                $(use_enable debug) \

Reply via email to