diff options
author | Sam James <sam@gentoo.org> | 2023-02-14 03:20:49 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-14 03:20:49 +0000 |
commit | 39db959d41ca077c06ff375aa2774d20e515ec24 (patch) | |
tree | ecf55cfc527ca2304d0c09e67574c37a3bd713f6 /net-analyzer/monitoring-plugins | |
parent | app-crypt/tpm-tools: revbump to depend on app-crypt/trousers-0.3.15-r1 (diff) | |
download | gentoo-39db959d41ca077c06ff375aa2774d20e515ec24.tar.gz gentoo-39db959d41ca077c06ff375aa2774d20e515ec24.tar.bz2 gentoo-39db959d41ca077c06ff375aa2774d20e515ec24.zip |
net-analyzer/monitoring-plugins: add temporary musl workaround
This won't be needed in the next release.
Closes: https://bugs.gentoo.org/892645
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/monitoring-plugins')
-rw-r--r-- | net-analyzer/monitoring-plugins/monitoring-plugins-2.3.3-r1.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.3-r1.ebuild b/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.3-r1.ebuild index 555d75dae179..c5b2c08d156d 100644 --- a/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.3-r1.ebuild +++ b/net-analyzer/monitoring-plugins/monitoring-plugins-2.3.3-r1.ebuild @@ -3,7 +3,7 @@ EAPI="8" -inherit flag-o-matic +inherit autotools flag-o-matic DESCRIPTION="50+ standard plugins for Icinga, Naemon, Nagios, Shinken, Sensu" HOMEPAGE="https://www.monitoring-plugins.org/" @@ -53,6 +53,7 @@ RDEPEND="${DEPEND} acct-group/nagios acct-user/nagios !net-analyzer/nagios-plugins" +BDEPEND="sys-devel/gettext" # At least one test is interactive. RESTRICT="test" @@ -62,6 +63,19 @@ PATCHES=( "${FILESDIR}/${PN}-fix-check-http-segfault.patch" #893252 ) +src_prepare() { + default + + # Refresh the gettext macro to fix musl build, bug #892645 + # This should be unnecessary in the next release (>2.3.3) as upstream + # refreshed its copy of gnulib, so on next release: + # - We may be able to drop the gettext BDEPEND (check!) + # - Drop this cp call + # - Drop eautoreconf + cp "${BROOT}"/usr/share/aclocal/gettext.m4 gl/m4/ || die + eautoreconf +} + src_configure() { append-flags -fno-strict-aliasing |