commit:     cc36ef1ffb1a0245ee2c26e057e4542a301eb3bc
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 24 09:48:40 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Aug 24 09:48:52 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc36ef1f

sys-devel/autogen: override *_cv_* fro corss-case, bug #425174

A few autogen configure tests require running the program on machine:
    export ag_cv_run_strcspn=no
    export libopts_cv_with_libregex=yes

Pass these to get past ./configure. Autogen still reexecutes itself
at build time. Will need more fixes if feasible at all.

Reported-by: Thomas Sachau
Bug: https://bugs.gentoo.org/425174
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/autogen/autogen-5.18.16-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys-devel/autogen/autogen-5.18.16-r1.ebuild 
b/sys-devel/autogen/autogen-5.18.16-r1.ebuild
index d69abe1e265..b2f45d68237 100644
--- a/sys-devel/autogen/autogen-5.18.16-r1.ebuild
+++ b/sys-devel/autogen/autogen-5.18.16-r1.ebuild
@@ -43,6 +43,13 @@ src_configure() {
        # suppress possibly incorrect -R flag
        export ag_cv_test_ldflags=
 
+       # autogen requires run-time sanity of regex and string functions.
+       # Use defaults of linux-glibc until we need somethig more advanced.
+       if tc-is-cross-compiler ; then
+               export ag_cv_run_strcspn=no
+               export libopts_cv_with_libregex=yes
+       fi
+
        econf $(use_enable static-libs static)
 }
 

Reply via email to