dev-libs/libzia: Fix segfault during configure

Closes: https://bugs.gentoo.org/878237
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2022-10-28 07:34:15 +02:00
parent 0bebef0e85
commit 2f9162a5a8
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/configure.ac b/configure.ac
index 9266d41..35c2455 100644
--- a/configure.ac
+++ b/configure.ac
@@ -97,6 +97,9 @@ if test "$cross_compiling" = yes; then
else
AC_TRY_RUN([
#include <features.h>
+#ifdef __GLIBC__
+#include <gnu/libc-version.h>
+#endif
#include <stdio.h>
#ifdef __CYGWIN__
#include <cygwin/version.h>

View File

@@ -25,7 +25,12 @@ BDEPEND="virtual/pkgconfig"
MAKEOPTS+=" -j1"
PATCHES=(
"${FILESDIR}/${PN}-4.37-configure.patch"
)
src_prepare() {
eapply ${PATCHES[@]}
eapply_user
sed -i -e "s/docsdir/#docsdir/g" \
-e "s/docs_/#docs_/g" Makefile.am || die