Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/lynx/files/, www-client/lynx/
Date: Tue, 24 Nov 2015 17:20:44
Message-Id: 1448385559.6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38.vapier@gentoo
1 commit: 6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 24 17:19:19 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 24 17:19:19 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f1dbf0f
7
8 www-client/lynx: fix ncurses cross-compiling logic
9
10 www-client/lynx/files/lynx-2.8.9-cross-curses.patch | 19 +++++++++++++++++++
11 www-client/lynx/lynx-2.8.9_pre6.ebuild | 3 ++-
12 2 files changed, 21 insertions(+), 1 deletion(-)
13
14 diff --git a/www-client/lynx/files/lynx-2.8.9-cross-curses.patch b/www-client/lynx/files/lynx-2.8.9-cross-curses.patch
15 new file mode 100644
16 index 0000000..e541586
17 --- /dev/null
18 +++ b/www-client/lynx/files/lynx-2.8.9-cross-curses.patch
19 @@ -0,0 +1,19 @@
20 +the curses test logic does not provide a fallback case when trying to run
21 +the curses test program. set that here to true since we know the deps are
22 +sane via the ebuild.
23 +
24 +we could patch aclocal.m4, but this package doesn't rebuild autotools atm.
25 +
26 +--- a/configure
27 ++++ b/configure
28 +@@ -20146,9 +20146,7 @@
29 + echo "$as_me:20146: \$? = $ac_status" >&5
30 + (exit $ac_status); }; }; then
31 + if test "$cross_compiling" = yes; then
32 +- { { echo "$as_me:20149: error: cannot run test program while cross compiling" >&5
33 +-echo "$as_me: error: cannot run test program while cross compiling" >&2;}
34 +- { (exit 1); exit 1; }; }
35 ++cf_have_ncuconfig=yes
36 + else
37 + cat >conftest.$ac_ext <<_ACEOF
38 + #line 20154 "configure"
39
40 diff --git a/www-client/lynx/lynx-2.8.9_pre6.ebuild b/www-client/lynx/lynx-2.8.9_pre6.ebuild
41 index 3abdfda..265115a 100644
42 --- a/www-client/lynx/lynx-2.8.9_pre6.ebuild
43 +++ b/www-client/lynx/lynx-2.8.9_pre6.ebuild
44 @@ -53,6 +53,7 @@ pkg_setup() {
45 src_prepare() {
46 epatch "${FILESDIR}"/${PN}-2.8.6-mint.patch
47 epatch "${FILESDIR}"/${PN}-2.8.8_p1-parallel.patch
48 + epatch "${FILESDIR}"/${PN}-2.8.9-cross-curses.patch
49 }
50
51 src_configure() {
52 @@ -76,7 +77,7 @@ src_configure() {
53 $(use_enable unicode japanese-utf8) \
54 $(use_with bzip2 bzlib) \
55 $(usex ssl "--with-$(usex gnutls gnutls ssl)=${EPREFIX}/usr" "") \
56 - $(usex unicode "--with-screen=ncursesw" "")
57 + --with-screen=$(usex unicode "ncursesw" "ncurses")
58 }
59
60 src_install() {