diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2020-08-15 15:19:23 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-09-05 10:53:46 +0300 |
commit | 7bf78890f5cca3110c700f56e2c661bae3d4c607 (patch) | |
tree | 3bca4953a936da22ebf303e73ac6b57c894e6631 /dev-util/cgdb | |
parent | sys-fs/simple-mtpfs: add new proxy maintainer (diff) | |
download | gentoo-7bf78890f5cca3110c700f56e2c661bae3d4c607.tar.gz gentoo-7bf78890f5cca3110c700f56e2c661bae3d4c607.tar.bz2 gentoo-7bf78890f5cca3110c700f56e2c661bae3d4c607.zip |
dev-util/cgdb: bump to 0.7.1
Closes: https://bugs.gentoo.org/696408
Bug: https://bugs.gentoo.org/682386
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/cgdb')
-rw-r--r-- | dev-util/cgdb/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cgdb/cgdb-0.7.1.ebuild | 68 | ||||
-rw-r--r-- | dev-util/cgdb/files/cgdb-test.patch | 55 |
3 files changed, 124 insertions, 0 deletions
diff --git a/dev-util/cgdb/Manifest b/dev-util/cgdb/Manifest index 9a6901ad5bf0..4297a57d0ca9 100644 --- a/dev-util/cgdb/Manifest +++ b/dev-util/cgdb/Manifest @@ -1,2 +1,3 @@ DIST cgdb-0.6.8.tar.gz 435115 BLAKE2B 31efcd8740dc0a0354c8d655cd7b77b18b25842dc39d1de42a92917305879394b425d7a7b0e555b368fc6a67f535fe9244c3fedeec9105c3622ace313b24c8c8 SHA512 ef3d94820bb5a37a8d7fbac48c8d144e0ac73c4f5a9d25bea33f2c4390080bb2dbdc5e7e21a5ef8a4980515cc48d80f140f7cf1f90eebac3f8bf1cc6168585ea DIST cgdb-0.7.0.tar.gz 319980 BLAKE2B bfc62f9214f6726e5df081119e85ccdeaea9a2310a9bb7a1746525ab998ea94ec1181efd3a1986ec0d33103c2f2b888e4d93c4ddaa4a996db4e47b0173c3b67c SHA512 83aeb919e96cd0981d8fe5cdd257df3e8d8bfbceea720ea66c1773b28c9f0ecb0e303e0585206c55242bc4438d505e328d43b4991c6ddc4e4202e048558c30d9 +DIST cgdb-0.7.1.tar.gz 314768 BLAKE2B 767a57d071fa4e3c75d231a1ec879d871669fcda9c733d157d380fa525dd321f1deb68d7ef7f424b3f36a115043a0a0faae271f24746f934e288ba7d9a4e7fa1 SHA512 050c7bad963d51c1a2cb309530319ca77e9d236f419fb0abac4ab5030ff1068d799fa626959a8b3036321711de98bddf40d264bf9367ff5697075e30ca8168c6 diff --git a/dev-util/cgdb/cgdb-0.7.1.ebuild b/dev-util/cgdb/cgdb-0.7.1.ebuild new file mode 100644 index 000000000000..9a57cd1d60f9 --- /dev/null +++ b/dev-util/cgdb/cgdb-0.7.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI=" + https://github.com/cgdb/cgdb.git + git@github.com:cgdb/cgdb.git" +else + SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +fi +inherit multilib-minimal + +DESCRIPTION="A curses front-end for GDB, the GNU debugger" +HOMEPAGE="http://cgdb.github.io/" +LICENSE="GPL-2" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0=" + +BDEPEND=" + test? ( + dev-util/dejagnu + app-misc/dtach + )" + +RDEPEND=" + ${DEPEND} + sys-devel/gdb" + +DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) + +PATCHES=( + # Bugs: #730138, #678006, #630512 + "${FILESDIR}/${PN}-test.patch" +) + +src_prepare() { + default + ./autogen.sh || die +} + +multilib_src_test() { + # Tests need an interactive shell, #654986 + + # real-time output of the log ;-) + touch "${T}/dtach-test.log" || die + tail -f "${T}/dtach-test.log" & + local tail_pid=${!} + + nonfatal dtach -N "${T}/dtach.sock" \ + bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' + + kill "${tail_pid}" + [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" + [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf +} diff --git a/dev-util/cgdb/files/cgdb-test.patch b/dev-util/cgdb/files/cgdb-test.patch new file mode 100644 index 000000000000..9bbb1749828f --- /dev/null +++ b/dev-util/cgdb/files/cgdb-test.patch @@ -0,0 +1,55 @@ +From a8a567fc46fca4ca10a23016e2fe9055669b9102 Mon Sep 17 00:00:00 2001 +From: Ian Dinwoodie <dinwoodieian@gmail.com> +Date: Wed, 29 Jan 2020 23:58:13 -0500 +Subject: [PATCH] Ncursesw should link with tinfow. + +This patch is a response to issue #219. + +Signed-off-by: Ian Dinwoodie <dinwoodieian@gmail.com> +--- + config/readline_check_version.m4 | 24 ++++++++++++++++++++---- + 1 file changed, 20 insertions(+), 4 deletions(-) + +diff --git a/config/readline_check_version.m4 b/config/readline_check_version.m4 +index 567bfbd4..01e61c28 100644 +--- a/config/readline_check_version.m4 ++++ b/config/readline_check_version.m4 +@@ -7,10 +7,23 @@ AC_MSG_CHECKING(which library has the termcap functions) + _bash_needmsg= + fi + AC_CACHE_VAL(bash_cv_termcap_lib, +-[AC_CHECK_LIB(]$curses_lib_name[, tgetent, bash_cv_termcap_lib=lib]$curses_lib_name[, +- [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo, +- [AC_CHECK_FUNC(tgetent, bash_cv_termcap_lib=libc, +- bash_cv_termcap_lib=gnutermcap)])])]) ++[AC_CHECK_FUNC(tgetent, bash_cv_termcap_lib=libc, ++if test "$curses_lib_name" = "ncursesw"; then ++ [AC_CHECK_LIB(ncursesw, tgetent, bash_cv_termcap_lib=libncursesw, ++ [AC_CHECK_LIB(tinfow, tgetent, bash_cv_termcap_lib=libtinfow)] ++ )] ++elif test "$curses_lib_name" = "ncurses"; then ++ [AC_CHECK_LIB(ncurses, tgetent, bash_cv_termcap_lib=libncurses, ++ [AC_CHECK_LIB(tinfo, tgetent, bash_cv_termcap_lib=libtinfo)] ++ )] ++elif test "$curses_lib_name" = "curses"; then ++ [AC_CHECK_LIB(curses, tgetent, bash_cv_termcap_lib=libcurses)] ++else ++ [AC_CHECK_LIB(termcap, tgetent, bash_cv_termcap_lib=libtermcap, ++ bash_cv_termcap_lib=gnutermcap ++ )] ++fi ++)]) + if test "X$_bash_needmsg" = "Xyes"; then + AC_MSG_CHECKING(which library has the termcap functions) + fi +@@ -19,6 +32,9 @@ if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then + LDFLAGS="$LDFLAGS -L./lib/termcap" + TERMCAP_LIB="./lib/termcap/libtermcap.a" + TERMCAP_DEP="./lib/termcap/libtermcap.a" ++elif test $bash_cv_termcap_lib = libtinfow; then ++TERMCAP_LIB=-ltinfow ++TERMCAP_DEP= + elif test $bash_cv_termcap_lib = libtinfo; then + TERMCAP_LIB=-ltinfo + TERMCAP_DEP= + |