Commit 8361be0c authored by Antoine Fontaine's avatar Antoine Fontaine Committed by Rasmus Thomsen
Browse files

community/libmanette: fix build on 32bits archs

parent 33a29464
Pipeline #33526 failed with stages
in 1 minute and 24 seconds
......@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libmanette
pkgver=0.2.4
pkgrel=0
pkgrel=1
pkgdesc="Simple GObject game controller library"
url="https://gitlab.gnome.org/aplazas/libmanette"
arch="all"
......@@ -10,7 +10,8 @@ license="LGPL-2.1-or-later"
makedepends="meson glib-dev libgudev-dev libevdev-dev gobject-introspection-dev
vala"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/libmanette/${pkgver%.*}/libmanette-$pkgver.tar.xz"
source="https://download.gnome.org/sources/libmanette/${pkgver%.*}/libmanette-$pkgver.tar.xz
time64.patch"
build() {
meson \
......@@ -33,4 +34,5 @@ package() {
DESTDIR="$pkgdir" ninja -C output install
}
sha512sums="713686e3fd515a09846def3283a9e687571dfe47357af00f95739b6e888a454ab14c526a11b38c4ad19bdf928fc3b13b8be32612557dd0ecc743efd2cb6e0792 libmanette-0.2.4.tar.xz"
sha512sums="713686e3fd515a09846def3283a9e687571dfe47357af00f95739b6e888a454ab14c526a11b38c4ad19bdf928fc3b13b8be32612557dd0ecc743efd2cb6e0792 libmanette-0.2.4.tar.xz
e82a3ebcc04842e419dfd2d76e3c7deed6bdc1d4efca0c039b45b5cbbba3d73e9744b0150d538f86cc47d9aa6eb5f373876d9a5a086d1bb030771eb5fe518c8e time64.patch"
This patch fixes the build, but may not actually fix the issue
(manette_event.any.time is a guint32)
upstreaming: https://gitlab.gnome.org/aplazas/libmanette/-/merge_requests/28
--- a/src/manette-device.c
+++ b/src/manette-device.c
@@ -415,8 +415,8 @@ on_evdev_event (ManetteDevice *self
ManetteEvent manette_event;
manette_event.any.device = self;
- manette_event.any.time = evdev_event->time.tv_sec * 1000 +
- evdev_event->time.tv_usec / 1000;
+ manette_event.any.time = evdev_event->input_event_sec * 1000 +
+ evdev_event->input_event_usec / 1000;
manette_event.any.hardware_type = evdev_event->type;
manette_event.any.hardware_code = evdev_event->code;
manette_event.any.hardware_value = evdev_event->value;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment