1 |
commit: 7bf78890f5cca3110c700f56e2c661bae3d4c607 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Aug 15 13:19:23 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 5 07:53:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf78890 |
7 |
|
8 |
dev-util/cgdb: bump to 0.7.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/696408 |
11 |
Bug: https://bugs.gentoo.org/682386 |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.23 |
13 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-util/cgdb/Manifest | 1 + |
17 |
dev-util/cgdb/cgdb-0.7.1.ebuild | 68 +++++++++++++++++++++++++++++++++++++ |
18 |
dev-util/cgdb/files/cgdb-test.patch | 55 ++++++++++++++++++++++++++++++ |
19 |
3 files changed, 124 insertions(+) |
20 |
|
21 |
diff --git a/dev-util/cgdb/Manifest b/dev-util/cgdb/Manifest |
22 |
index 9a6901ad5bf..4297a57d0ca 100644 |
23 |
--- a/dev-util/cgdb/Manifest |
24 |
+++ b/dev-util/cgdb/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST cgdb-0.6.8.tar.gz 435115 BLAKE2B 31efcd8740dc0a0354c8d655cd7b77b18b25842dc39d1de42a92917305879394b425d7a7b0e555b368fc6a67f535fe9244c3fedeec9105c3622ace313b24c8c8 SHA512 ef3d94820bb5a37a8d7fbac48c8d144e0ac73c4f5a9d25bea33f2c4390080bb2dbdc5e7e21a5ef8a4980515cc48d80f140f7cf1f90eebac3f8bf1cc6168585ea |
27 |
DIST cgdb-0.7.0.tar.gz 319980 BLAKE2B bfc62f9214f6726e5df081119e85ccdeaea9a2310a9bb7a1746525ab998ea94ec1181efd3a1986ec0d33103c2f2b888e4d93c4ddaa4a996db4e47b0173c3b67c SHA512 83aeb919e96cd0981d8fe5cdd257df3e8d8bfbceea720ea66c1773b28c9f0ecb0e303e0585206c55242bc4438d505e328d43b4991c6ddc4e4202e048558c30d9 |
28 |
+DIST cgdb-0.7.1.tar.gz 314768 BLAKE2B 767a57d071fa4e3c75d231a1ec879d871669fcda9c733d157d380fa525dd321f1deb68d7ef7f424b3f36a115043a0a0faae271f24746f934e288ba7d9a4e7fa1 SHA512 050c7bad963d51c1a2cb309530319ca77e9d236f419fb0abac4ab5030ff1068d799fa626959a8b3036321711de98bddf40d264bf9367ff5697075e30ca8168c6 |
29 |
|
30 |
diff --git a/dev-util/cgdb/cgdb-0.7.1.ebuild b/dev-util/cgdb/cgdb-0.7.1.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..9a57cd1d60f |
33 |
--- /dev/null |
34 |
+++ b/dev-util/cgdb/cgdb-0.7.1.ebuild |
35 |
@@ -0,0 +1,68 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+if [[ ${PV} = *9999* ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI=" |
44 |
+ https://github.com/cgdb/cgdb.git |
45 |
+ git@××××××.com:cgdb/cgdb.git" |
46 |
+else |
47 |
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
49 |
+fi |
50 |
+inherit multilib-minimal |
51 |
+ |
52 |
+DESCRIPTION="A curses front-end for GDB, the GNU debugger" |
53 |
+HOMEPAGE="http://cgdb.github.io/" |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+IUSE="test" |
57 |
+RESTRICT="!test? ( test )" |
58 |
+ |
59 |
+DEPEND=" |
60 |
+ sys-libs/ncurses:0= |
61 |
+ sys-libs/readline:0=" |
62 |
+ |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-util/dejagnu |
66 |
+ app-misc/dtach |
67 |
+ )" |
68 |
+ |
69 |
+RDEPEND=" |
70 |
+ ${DEPEND} |
71 |
+ sys-devel/gdb" |
72 |
+ |
73 |
+DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ # Bugs: #730138, #678006, #630512 |
77 |
+ "${FILESDIR}/${PN}-test.patch" |
78 |
+) |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ ./autogen.sh || die |
83 |
+} |
84 |
+ |
85 |
+multilib_src_test() { |
86 |
+ # Tests need an interactive shell, #654986 |
87 |
+ |
88 |
+ # real-time output of the log ;-) |
89 |
+ touch "${T}/dtach-test.log" || die |
90 |
+ tail -f "${T}/dtach-test.log" & |
91 |
+ local tail_pid=${!} |
92 |
+ |
93 |
+ nonfatal dtach -N "${T}/dtach.sock" \ |
94 |
+ bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' |
95 |
+ |
96 |
+ kill "${tail_pid}" |
97 |
+ [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" |
98 |
+ [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" |
99 |
+} |
100 |
+ |
101 |
+multilib_src_configure() { |
102 |
+ ECONF_SOURCE="${S}" econf |
103 |
+} |
104 |
|
105 |
diff --git a/dev-util/cgdb/files/cgdb-test.patch b/dev-util/cgdb/files/cgdb-test.patch |
106 |
new file mode 100644 |
107 |
index 00000000000..9bbb1749828 |
108 |
--- /dev/null |
109 |
+++ b/dev-util/cgdb/files/cgdb-test.patch |
110 |
@@ -0,0 +1,55 @@ |
111 |
+From a8a567fc46fca4ca10a23016e2fe9055669b9102 Mon Sep 17 00:00:00 2001 |
112 |
+From: Ian Dinwoodie <dinwoodieian@×××××.com> |
113 |
+Date: Wed, 29 Jan 2020 23:58:13 -0500 |
114 |
+Subject: [PATCH] Ncursesw should link with tinfow. |
115 |
+ |
116 |
+This patch is a response to issue #219. |
117 |
+ |
118 |
+Signed-off-by: Ian Dinwoodie <dinwoodieian@×××××.com> |
119 |
+--- |
120 |
+ config/readline_check_version.m4 | 24 ++++++++++++++++++++---- |
121 |
+ 1 file changed, 20 insertions(+), 4 deletions(-) |
122 |
+ |
123 |
+diff --git a/config/readline_check_version.m4 b/config/readline_check_version.m4 |
124 |
+index 567bfbd4..01e61c28 100644 |
125 |
+--- a/config/readline_check_version.m4 |
126 |
++++ b/config/readline_check_version.m4 |
127 |
+@@ -7,10 +7,23 @@ AC_MSG_CHECKING(which library has the termcap functions) |
128 |
+ _bash_needmsg= |
129 |
+ fi |
130 |
+ AC_CACHE_VAL(bash_cv_termcap_lib, |
131 |
+-[AC_CHECK_LIB(]$curses_lib_name[, tgetent, bash_cv_termcap_lib=lib]$curses_lib_name[, |
132 |
+- [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo, |
133 |
+- [AC_CHECK_FUNC(tgetent, bash_cv_termcap_lib=libc, |
134 |
+- bash_cv_termcap_lib=gnutermcap)])])]) |
135 |
++[AC_CHECK_FUNC(tgetent, bash_cv_termcap_lib=libc, |
136 |
++if test "$curses_lib_name" = "ncursesw"; then |
137 |
++ [AC_CHECK_LIB(ncursesw, tgetent, bash_cv_termcap_lib=libncursesw, |
138 |
++ [AC_CHECK_LIB(tinfow, tgetent, bash_cv_termcap_lib=libtinfow)] |
139 |
++ )] |
140 |
++elif test "$curses_lib_name" = "ncurses"; then |
141 |
++ [AC_CHECK_LIB(ncurses, tgetent, bash_cv_termcap_lib=libncurses, |
142 |
++ [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo)] |
143 |
++ )] |
144 |
++elif test "$curses_lib_name" = "curses"; then |
145 |
++ [AC_CHECK_LIB(curses, tgetent, bash_cv_termcap_lib=libcurses)] |
146 |
++else |
147 |
++ [AC_CHECK_LIB(termcap, tgetent, bash_cv_termcap_lib=libtermcap, |
148 |
++ bash_cv_termcap_lib=gnutermcap |
149 |
++ )] |
150 |
++fi |
151 |
++)]) |
152 |
+ if test "X$_bash_needmsg" = "Xyes"; then |
153 |
+ AC_MSG_CHECKING(which library has the termcap functions) |
154 |
+ fi |
155 |
+@@ -19,6 +32,9 @@ if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
156 |
+ LDFLAGS="$LDFLAGS -L./lib/termcap" |
157 |
+ TERMCAP_LIB="./lib/termcap/libtermcap.a" |
158 |
+ TERMCAP_DEP="./lib/termcap/libtermcap.a" |
159 |
++elif test $bash_cv_termcap_lib = libtinfow; then |
160 |
++TERMCAP_LIB=-ltinfow |
161 |
++TERMCAP_DEP= |
162 |
+ elif test $bash_cv_termcap_lib = libtinfo; then |
163 |
+ TERMCAP_LIB=-ltinfo |
164 |
+ TERMCAP_DEP= |
165 |
+ |