mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-06 21:25:02 +02:00
The aptly-named --enable-werror flag provided by upstream will carefully
enable -Werror in CI builds, even if you pass --disable-werror or
--enable-werror=no. This excellent diagnostics pass brought to you by
the world's most intuitive string validation and checking library, GNU
autoconf.
It is unclear to me why "sys-cluster/pmix: add 4.2.2" entailed adding
this configure option. The option was new in that version bump but
refraining from passing the option would do the correct thing...
Fixes: 8ad34c5cb7
Bug: https://bugs.gentoo.org/906972
Bug: https://bugs.gentoo.org/908551
Closes: https://bugs.gentoo.org/892023
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
50 lines
1 KiB
Bash
50 lines
1 KiB
Bash
# 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"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
# No support for 32-bit systems as of 4.2.8 (https://github.com/open-mpi/ompi/issues/11248)
|
|
KEYWORDS="~amd64 -x86 ~amd64-linux"
|
|
IUSE="debug +munge pmi"
|
|
|
|
RDEPEND="
|
|
dev-libs/libevent:=
|
|
sys-apps/hwloc:=
|
|
sys-cluster/ucx
|
|
sys-libs/zlib:=
|
|
munge? ( sys-auth/munge )
|
|
pmi? ( !sys-cluster/slurm )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
elibtoolize
|
|
}
|
|
|
|
src_configure() {
|
|
# -Werror=lto-type-mismatch
|
|
# https://github.com/openpmix/openpmix/issues/3350
|
|
filter-lto
|
|
|
|
econf \
|
|
$(use_enable debug) \
|
|
$(use_with munge)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
|
|
# bug #884765
|
|
mv "${ED}"/usr/bin/pquery "${ED}"/usr/bin/pmix-pquery || die
|
|
}
|