From 3d9d3427610133ad17a9198b756b26ea3d5da456 Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Mon, 29 Jul 2019 09:18:00 +0300 Subject: [PATCH] kitty: update to 0.14.3 --- srcpkgs/kitty/patches/musl.patch | 37 ++++++++++++++++++++++++++++++++ srcpkgs/kitty/template | 7 +++--- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/kitty/patches/musl.patch diff --git a/srcpkgs/kitty/patches/musl.patch b/srcpkgs/kitty/patches/musl.patch new file mode 100644 index 00000000000..99b86547a7b --- /dev/null +++ b/srcpkgs/kitty/patches/musl.patch @@ -0,0 +1,37 @@ +From 9cbb726566f14454b24d05e6e94c640997fc77ff Mon Sep 17 00:00:00 2001 +From: Kovid Goyal +Date: Tue, 30 Jul 2019 06:20:54 +0530 +Subject: [PATCH] Fix #1865 + +--- + glfw/linux_joystick.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/glfw/linux_joystick.c b/glfw/linux_joystick.c +index d40bf0233..70a86f6f3 100644 +--- a/glfw/linux_joystick.c ++++ b/glfw/linux_joystick.c +@@ -144,10 +144,10 @@ static bool openJoystickDevice(const char* path) + char absBits[(ABS_CNT + 7) / 8] = {0}; + struct input_id id; + +- if (ioctl(linjs.fd, EVIOCGBIT(0, sizeof(evBits)), evBits) < 0 || +- ioctl(linjs.fd, EVIOCGBIT(EV_KEY, sizeof(keyBits)), keyBits) < 0 || +- ioctl(linjs.fd, EVIOCGBIT(EV_ABS, sizeof(absBits)), absBits) < 0 || +- ioctl(linjs.fd, EVIOCGID, &id) < 0) ++ if (ioctl(linjs.fd, (int32_t)EVIOCGBIT(0, sizeof(evBits)), evBits) < 0 || ++ ioctl(linjs.fd, (int32_t)EVIOCGBIT(EV_KEY, sizeof(keyBits)), keyBits) < 0 || ++ ioctl(linjs.fd, (int32_t)EVIOCGBIT(EV_ABS, sizeof(absBits)), absBits) < 0 || ++ ioctl(linjs.fd, (int32_t)EVIOCGID, &id) < 0) + { + _glfwInputError(GLFW_PLATFORM_ERROR, + "Linux: Failed to query input device: %s", +@@ -165,7 +165,7 @@ static bool openJoystickDevice(const char* path) + + char name[256] = ""; + +- if (ioctl(linjs.fd, EVIOCGNAME(sizeof(name)), name) < 0) ++ if (ioctl(linjs.fd, (int32_t)EVIOCGNAME(sizeof(name)), name) < 0) + strncpy(name, "Unknown", sizeof(name)); + + char guid[33] = ""; diff --git a/srcpkgs/kitty/template b/srcpkgs/kitty/template index 5e07ef7ea69..7d06fcfaa3f 100644 --- a/srcpkgs/kitty/template +++ b/srcpkgs/kitty/template @@ -1,11 +1,11 @@ # Template file for 'kitty' pkgname=kitty -version=0.14.2 +version=0.14.3 revision=1 pycompile_dirs="usr/lib/kitty" hostmakedepends="ncurses pkg-config python3 wayland-devel wayland-protocols" makedepends="gettext-devel glfw-devel harfbuzz-devel libxkbcommon-devel - python3-devel wayland-devel wayland-protocols" + python3-devel wayland-devel wayland-protocols libcanberra-devel" depends="kitty-terminfo-${version}_${revision}" short_desc="Modern, hackable, featureful, OpenGL based terminal emulator" maintainer="Benjamin Slade " @@ -13,7 +13,8 @@ license="GPL-3.0-or-later" homepage="https://sw.kovidgoyal.net/kitty/" changelog="https://sw.kovidgoyal.net/kitty/changelog.html" distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz" -checksum=9eb32808425867dd63580718bc1b97bbd9046d4024279837c6132eb1ef37f189 +checksum=f5e522a6e477acd8b4a9637261f20dc66d6f7b9e9229a4a957f10811708b8d8b +patch_args="-Np1" pycompile_version="$py3_ver" LDFLAGS+=" -Wl,-z,stack-size=2097152"