commit:     3d9ac4116142cf74cd8a37906d70a778bdd82569
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 30 02:01:02 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 30 02:01:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d9ac411

sys-apps/groff: fix build failure on musl

Give configure a hint for now until a release of groff
is made with updated gnulib upstream.

Closes: https://bugs.gentoo.org/678026
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/groff/groff-1.22.4.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys-apps/groff/groff-1.22.4.ebuild 
b/sys-apps/groff/groff-1.22.4.ebuild
index 722ce444a7f..a8d2517a24c 100644
--- a/sys-apps/groff/groff-1.22.4.ebuild
+++ b/sys-apps/groff/groff-1.22.4.ebuild
@@ -62,6 +62,14 @@ src_prepare() {
 }
 
 src_configure() {
+       if use elibc_musl ; then
+               # This should be safe to drop in the release after 1.22.4
+               # gnulib was rather out of date and didn't include musl in its
+               # CHOST checks.
+               # bug #678026
+               export gl_cv_func_signbit_gcc=yes
+       fi
+
        local myeconfargs=(
                --with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults
                $(use_with uchardet)

Reply via email to