From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2C2B4138334 for ; Sat, 4 Jan 2020 14:31:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48B2EE089D; Sat, 4 Jan 2020 14:31:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF878E089D for ; Sat, 4 Jan 2020 14:31:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2F2034DD46 for ; Sat, 4 Jan 2020 14:31:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5F8E3C for ; Sat, 4 Jan 2020 14:31:28 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1578148209.0146cd428adeb9fc3404a1869af788cbba1576ef.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/dosbox/, games-emulation/dosbox/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/dosbox/dosbox-0.74.3.ebuild games-emulation/dosbox/dosbox-0.75_pre4302.ebuild games-emulation/dosbox/dosbox-9999.ebuild games-emulation/dosbox/files/dosbox-0.74-ncurses.patch X-VCS-Directories: games-emulation/dosbox/files/ games-emulation/dosbox/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 0146cd428adeb9fc3404a1869af788cbba1576ef X-VCS-Branch: master Date: Sat, 4 Jan 2020 14:31:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d0564266-389d-4348-ab80-aa564aa84551 X-Archives-Hash: e8e084fa4e577057cbc987e8ef25335a commit: 0146cd428adeb9fc3404a1869af788cbba1576ef Author: James Le Cuirot gentoo org> AuthorDate: Sat Jan 4 12:55:29 2020 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Jan 4 14:30:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0146cd42 games-emulation/dosbox: Patch to fix USE=debug with ncurses[tinfo] Bug: https://bugs.gentoo.org/701688 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: James Le Cuirot gentoo.org> games-emulation/dosbox/dosbox-0.74.3.ebuild | 4 ++ games-emulation/dosbox/dosbox-0.75_pre4302.ebuild | 4 ++ games-emulation/dosbox/dosbox-9999.ebuild | 4 ++ .../dosbox/files/dosbox-0.74-ncurses.patch | 72 ++++++++++++++++++++++ 4 files changed, 84 insertions(+) diff --git a/games-emulation/dosbox/dosbox-0.74.3.ebuild b/games-emulation/dosbox/dosbox-0.74.3.ebuild index 167f646d360..418766f8d96 100644 --- a/games-emulation/dosbox/dosbox-0.74.3.ebuild +++ b/games-emulation/dosbox/dosbox-0.74.3.ebuild @@ -45,6 +45,10 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PN}-0.74-ncurses.patch +) + src_prepare() { default eautoreconf diff --git a/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild b/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild index ebcdda7b522..4a25d8ebdb4 100644 --- a/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild +++ b/games-emulation/dosbox/dosbox-0.75_pre4302.ebuild @@ -49,6 +49,10 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PN}-0.74-ncurses.patch +) + src_prepare() { use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff default diff --git a/games-emulation/dosbox/dosbox-9999.ebuild b/games-emulation/dosbox/dosbox-9999.ebuild index d6c94125051..3292eebd77d 100644 --- a/games-emulation/dosbox/dosbox-9999.ebuild +++ b/games-emulation/dosbox/dosbox-9999.ebuild @@ -49,6 +49,10 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PN}-0.74-ncurses.patch +) + src_prepare() { use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff default diff --git a/games-emulation/dosbox/files/dosbox-0.74-ncurses.patch b/games-emulation/dosbox/files/dosbox-0.74-ncurses.patch new file mode 100644 index 00000000000..dd7016f8c92 --- /dev/null +++ b/games-emulation/dosbox/files/dosbox-0.74-ncurses.patch @@ -0,0 +1,72 @@ +https://sourceforge.net/p/dosbox/patches/286/ + +--- a/configure.ac 2019-11-12 17:55:51.000000000 +0000 ++++ b/configure.ac 2020-01-02 21:26:27.551856431 +0000 +@@ -235,36 +235,38 @@ + #Features to enable/disable + AH_TEMPLATE(C_DEBUG,[Define to 1 to enable internal debugger, requires libcurses]) + AH_TEMPLATE(C_HEAVY_DEBUG,[Define to 1 to enable heavy debugging, also have to enable C_DEBUG]) +-AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[Enable debug mode]),[ +- AC_CHECK_HEADER(curses.h,have_curses_h=yes,) +- AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , ) +- AC_CHECK_LIB(ncurses, initscr, have_ncurses_lib=yes, , ) +- AC_CHECK_LIB(pdcurses, initscr, have_pdcurses_lib=yes, , ) ++AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[Enable debug mode]),,enable_debug=no) ++AC_MSG_CHECKING(whether debug will be enabled) ++ ++if test x$enable_debug = xno; then ++ AC_MSG_RESULT(no) ++else ++ AC_MSG_RESULT(yes) + +- if test x$enable_debug = xno; then +- AC_MSG_RESULT([Debugger not enabled]) +- elif test x$have_ncurses_lib = xyes -a x$have_curses_h = xyes ; then +- LIBS="$LIBS -lncurses" +- AC_DEFINE(C_DEBUG,1) +- if test x$enable_debug = xheavy ; then +- AC_DEFINE(C_HEAVY_DEBUG,1) +- fi +- elif test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then +- LIBS="$LIBS -lcurses" +- AC_DEFINE(C_DEBUG,1) +- if test x$enable_debug = xheavy ; then +- AC_DEFINE(C_HEAVY_DEBUG,1) +- fi +- elif test x$have_pdcurses_lib = xyes -a x$have_curses_h = xyes ; then +- LIBS="$LIBS -lpdcurses" +- AC_DEFINE(C_DEBUG,1) +- if test x$enable_debug = xheavy ; then +- AC_DEFINE(C_HEAVY_DEBUG,1) +- fi +- else +- AC_MSG_ERROR([Can't find curses, which is required for debug mode]) +- fi +-],) ++ PKG_CHECK_MODULES(NCURSES, ncurses, [ ++ LIBS="$LIBS $NCURSES_LIBS"; CFLAGS="$CFLAGS $NCURSES_CFLAGS" ++ ], [ ++ AC_CHECK_HEADER(curses.h,have_curses_h=yes,) ++ AC_CHECK_LIB(curses, initscr, have_curses_lib=yes, , ) ++ AC_CHECK_LIB(ncurses, initscr, have_ncurses_lib=yes, , ) ++ AC_CHECK_LIB(pdcurses, initscr, have_pdcurses_lib=yes, , ) ++ ++ if test x$have_ncurses_lib = xyes -a x$have_curses_h = xyes ; then ++ LIBS="$LIBS -lncurses" ++ elif test x$have_curses_lib = xyes -a x$have_curses_h = xyes ; then ++ LIBS="$LIBS -lcurses" ++ elif test x$have_pdcurses_lib = xyes -a x$have_curses_h = xyes ; then ++ LIBS="$LIBS -lpdcurses" ++ else ++ AC_MSG_ERROR([Can't find curses, which is required for debug mode]) ++ fi ++ ]) ++ ++ AC_DEFINE(C_DEBUG,1) ++ if test x$enable_debug = xheavy; then ++ AC_DEFINE(C_HEAVY_DEBUG,1) ++ fi ++fi + + AH_TEMPLATE(C_CORE_INLINE,[Define to 1 to use inlined memory functions in cpu core]) + AC_ARG_ENABLE(core-inline,AC_HELP_STRING([--disable-core-inline],[Disable inlined memory handling in CPU Core]),,enable_core_inline=yes)