kitty: update to 0.14.4
This commit is contained in:
parent
e371ed7c6f
commit
068dbfc2b3
2 changed files with 2 additions and 39 deletions
|
@ -1,37 +0,0 @@
|
||||||
From 9cbb726566f14454b24d05e6e94c640997fc77ff Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kovid Goyal <kovid@kovidgoyal.net>
|
|
||||||
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] = "";
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'kitty'
|
# Template file for 'kitty'
|
||||||
pkgname=kitty
|
pkgname=kitty
|
||||||
version=0.14.3
|
version=0.14.4
|
||||||
revision=1
|
revision=1
|
||||||
pycompile_dirs="usr/lib/kitty"
|
pycompile_dirs="usr/lib/kitty"
|
||||||
hostmakedepends="ncurses pkg-config python3 wayland-devel wayland-protocols"
|
hostmakedepends="ncurses pkg-config python3 wayland-devel wayland-protocols"
|
||||||
|
@ -13,7 +13,7 @@ license="GPL-3.0-or-later"
|
||||||
homepage="https://sw.kovidgoyal.net/kitty/"
|
homepage="https://sw.kovidgoyal.net/kitty/"
|
||||||
changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
|
changelog="https://sw.kovidgoyal.net/kitty/changelog.html"
|
||||||
distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
|
distfiles="https://github.com/kovidgoyal/kitty/releases/download/v${version}/kitty-${version}.tar.xz"
|
||||||
checksum=f5e522a6e477acd8b4a9637261f20dc66d6f7b9e9229a4a957f10811708b8d8b
|
checksum=e18cefc29183b02fdb269c133aafc883b199081fb96452502a22931757cce6d5
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
pycompile_version="$py3_ver"
|
pycompile_version="$py3_ver"
|
||||||
LDFLAGS+=" -Wl,-z,stack-size=2097152"
|
LDFLAGS+=" -Wl,-z,stack-size=2097152"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue