Skip to content

Commit

Permalink
app-misc/cw: 1.0.16 revbump, fix build for clang16
Browse files Browse the repository at this point in the history
Fixes: af397b3
Closes: https://bugs.gentoo.org/870751
Signed-off-by: Pascal Jäger <[email protected]>
Closes: gentoo#27857
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
Schievel1 authored and thesamesam committed Oct 20, 2022
1 parent a001c80 commit 168b50a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

EAPI=8

inherit flag-o-matic toolchain-funcs
WANT_AUTOMAKE="none"
inherit autotools flag-o-matic toolchain-funcs

DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands"
HOMEPAGE="http://cwrapper.sourceforge.net"
Expand All @@ -19,6 +20,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-collision.patch
"${FILESDIR}"/${PV}-format-security.patch
"${FILESDIR}"/${P}-replace-isastream-with-fcntl.patch
"${FILESDIR}"/${P}-fix-configure-for-newer-autotools.patch
)

src_unpack() {
Expand All @@ -27,6 +29,11 @@ src_unpack() {
gunzip "${S}"/man/*.gz || die
}

src_prepare() {
default
eautoreconf
}

src_configure() {
tc-export CC

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/configure.in
+++ b/configure.in
@@ -17,7 +17,6 @@ ORIG_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall"
AC_TRY_COMPILE(,[return 0;],AC_MSG_RESULT(yes),AC_MSG_RESULT(no);CFLAGS="$ORIG_CFLAGS")
AC_CONFIG_HEADER(config.h)
-AC_REQUIRE([AC_HEADER_STDC])
AC_CHECK_LIB(util, openpty)
AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(HAVE_DEV_PTMX, 1, Have /dev/ptmx.))
AC_CHECK_FUNCS(getpt isatty isxdigit openpty putenv regcomp setenv setproctitle setsid sigaction sscanf uname unsetenv vsnprintf waitpid)

0 comments on commit 168b50a

Please sign in to comment.