From 235f90af8ab14048491d26a0e10c8153522bb214 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 23 Dec 2019 03:42:23 +0100 Subject: [PATCH] kitty: fix build on ppc*-musl --- srcpkgs/kitty/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template index 775808d9f53..9e8bb4fea96 100644 --- a/srcpkgs/kitty/template +++ b/srcpkgs/kitty/template @@ -18,6 +18,12 @@ patch_args="-Np1" pycompile_version="$py3_ver" LDFLAGS+=" -Wl,-z,stack-size=2097152" +# TIOCSWINSZ on ppc overflows signed int, used in ioctl() +# glibc defines it with ulong, musl with int (should be harmless) +case "$XBPS_TARGET_MACHINE" in + ppc*-musl) CFLAGS+=" -Wno-error=overflow";; +esac + do_build() { if [ "$CROSS_BUILD" ]; then CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"