Skip to content

Commit

Permalink
app-i18n/fbterm: fix build with >=sys-devel/autoconf-2.68
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Akinori Hattori <[email protected]>
  • Loading branch information
hattya committed Oct 6, 2021
1 parent 37e3307 commit ff4292a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app-i18n/fbterm/fbterm-1.7_p20190503.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand All @@ -16,13 +16,15 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="gpm video_cards_vesa"

BDEPEND="virtual/pkgconfig"
DEPEND="media-libs/fontconfig
RDEPEND="media-libs/fontconfig
media-libs/freetype:2
>=sys-libs/ncurses-6.1
gpm? ( sys-libs/gpm )
video_cards_vesa? ( dev-libs/libx86 )"
RDEPEND="${DEPEND}"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=( "${FILESDIR}"/${PN}-autoconf-2.68.patch )

FILECAPS=(
cap_sys_tty_config+ep usr/bin/${PN}
Expand Down
24 changes: 24 additions & 0 deletions app-i18n/fbterm/files/fbterm-autoconf-2.68.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--- a/configure.ac
+++ b/configure.ac
@@ -85,16 +85,16 @@

if test x"$EPOLL" = xauto -a x"$cross_compiling" = xno; then
AC_RUN_IFELSE(
- AC_LANG_PROGRAM([[#include <sys/epoll.h>]],
- [[if (epoll_create(10) >= 0) return 0; return 1;]]),
+ [AC_LANG_PROGRAM([[#include <sys/epoll.h>]],
+ [[if (epoll_create(10) >= 0) return 0; return 1;]])],
[EPOLL=yes]
)
fi

if test x"$SIGNALFD" = xauto -a x"$cross_compiling" = xno; then
AC_RUN_IFELSE(
- AC_LANG_PROGRAM([[#include <sys/signalfd.h>]],
- [[sigset_t mask; if (signalfd(-1, &mask, 0) >= 0) return 0; return 1;]]),
+ [AC_LANG_PROGRAM([[#include <sys/signalfd.h>]],
+ [[sigset_t mask; if (signalfd(-1, &mask, 0) >= 0) return 0; return 1;]])],
[SIGNALFD=yes]
)
fi
install-data-local:

0 comments on commit ff4292a

Please sign in to comment.