From 1b0a49c2372ad7efed42e22cbca1bcb5717ef7fd Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Sun, 5 Apr 2026 14:22:20 +0200 Subject: [PATCH] app-accessibility/speech-dispatcher: pass LDFLAGS, don't call help2man w/ cross-compile fix LDFLAGS= in src/modules/Makefile.am (fixed in master) manpages can't be generated w/ cross-compile, just launch --help Closes: https://bugs.gentoo.org/954366 Signed-off-by: Nicolas PARLANT Part-of: https://codeberg.org/gentoo/gentoo/pulls/633 Merges: https://codeberg.org/gentoo/gentoo/pulls/633 Signed-off-by: Sam James --- .../speech-dispatcher-0.12.1.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app-accessibility/speech-dispatcher/speech-dispatcher-0.12.1.ebuild b/app-accessibility/speech-dispatcher/speech-dispatcher-0.12.1.ebuild index 7063e1c902324..d90653e4fe2bb 100644 --- a/app-accessibility/speech-dispatcher/speech-dispatcher-0.12.1.ebuild +++ b/app-accessibility/speech-dispatcher/speech-dispatcher-0.12.1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{11..14} ) -inherit python-r1 systemd +inherit python-r1 systemd toolchain-funcs DESCRIPTION="Speech synthesis interface" HOMEPAGE="https://freebsoft.org/speechd" @@ -41,6 +41,9 @@ src_configure() { # bug 573732 export GIT_CEILING_DIRECTORIES="${WORKDIR}" + # manpages can't be generated w/o launching programs + tc-is-cross-compiler && export ac_cv_prog_HELP2MAN= + local myeconfargs=( --disable-ltdl --disable-python @@ -72,7 +75,8 @@ src_configure() { src_compile() { use python && python_copy_sources - emake + # LDFLAGS fixed in master, remove w/ >0.12.1 + emake LDFLAGS="${LDFLAGS}" if use python; then building() { @@ -124,4 +128,9 @@ pkg_postinst() { ewarn "and make sure the settings there match your system." ewarn fi + + if tc-is-cross-compiler; then + ewarn "The manpages are not generated due to cross-compilation." + ewarn "Launching the commands with --help is equivalent." + fi }