1 |
commit: cc36ef1ffb1a0245ee2c26e057e4542a301eb3bc |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 24 09:48:40 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 24 09:48:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc36ef1f |
7 |
|
8 |
sys-devel/autogen: override *_cv_* fro corss-case, bug #425174 |
9 |
|
10 |
A few autogen configure tests require running the program on machine: |
11 |
export ag_cv_run_strcspn=no |
12 |
export libopts_cv_with_libregex=yes |
13 |
|
14 |
Pass these to get past ./configure. Autogen still reexecutes itself |
15 |
at build time. Will need more fixes if feasible at all. |
16 |
|
17 |
Reported-by: Thomas Sachau |
18 |
Bug: https://bugs.gentoo.org/425174 |
19 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
20 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
21 |
|
22 |
sys-devel/autogen/autogen-5.18.16-r1.ebuild | 7 +++++++ |
23 |
1 file changed, 7 insertions(+) |
24 |
|
25 |
diff --git a/sys-devel/autogen/autogen-5.18.16-r1.ebuild b/sys-devel/autogen/autogen-5.18.16-r1.ebuild |
26 |
index d69abe1e265..b2f45d68237 100644 |
27 |
--- a/sys-devel/autogen/autogen-5.18.16-r1.ebuild |
28 |
+++ b/sys-devel/autogen/autogen-5.18.16-r1.ebuild |
29 |
@@ -43,6 +43,13 @@ src_configure() { |
30 |
# suppress possibly incorrect -R flag |
31 |
export ag_cv_test_ldflags= |
32 |
|
33 |
+ # autogen requires run-time sanity of regex and string functions. |
34 |
+ # Use defaults of linux-glibc until we need somethig more advanced. |
35 |
+ if tc-is-cross-compiler ; then |
36 |
+ export ag_cv_run_strcspn=no |
37 |
+ export libopts_cv_with_libregex=yes |
38 |
+ fi |
39 |
+ |
40 |
econf $(use_enable static-libs static) |
41 |
} |