aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-07-22 01:59:28 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-07-22 01:59:28 -0600
commitc69e3a86b4b604b287b7539c32a6aac5a072ea27 (patch)
tree65f7413120661c473f666c5f4d669d9ca9c469bf
parentb77c059b70c77c1c584f57298a90f09ac87bc6c3 (diff)
downloadaports-c69e3a86b4b604b287b7539c32a6aac5a072ea27.tar.gz
aports-c69e3a86b4b604b287b7539c32a6aac5a072ea27.tar.bz2
aports-c69e3a86b4b604b287b7539c32a6aac5a072ea27.tar.xz
main/lua-evdev: fix time64 FTBFS
-rw-r--r--main/lua-evdev/APKBUILD6
-rw-r--r--main/lua-evdev/time64.patch12
2 files changed, 16 insertions, 2 deletions
diff --git a/main/lua-evdev/APKBUILD b/main/lua-evdev/APKBUILD
index 14b62fae26..21824b16f2 100644
--- a/main/lua-evdev/APKBUILD
+++ b/main/lua-evdev/APKBUILD
@@ -15,7 +15,8 @@ for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_package"
done
-source="$pkgname-$pkgver.tar.gz::https://github.com/Tangent128/$pkgname/archive/evdev-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/Tangent128/$pkgname/archive/evdev-$pkgver.tar.gz
+ time64.patch"
builddir="$srcdir/$pkgname-evdev-$pkgver"
prepare() {
@@ -57,4 +58,5 @@ _package() {
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
-sha512sums="6d8bfb148013c780f7276c884e297b7d6ea55c0c257ac074c677b0dc6495a6087e0e1cb671d844b22d13c9a4c19c544d22a10f3ded5ad3580ccce33c74690871 lua-evdev-2.2.1.tar.gz"
+sha512sums="6d8bfb148013c780f7276c884e297b7d6ea55c0c257ac074c677b0dc6495a6087e0e1cb671d844b22d13c9a4c19c544d22a10f3ded5ad3580ccce33c74690871 lua-evdev-2.2.1.tar.gz
+6842d2fb223aa44ae799b0f2841d4847c3bbe83d64dc643cf843592a4e84bc0f734b745868985b3cb1977417c9afce2108b5a8c4e8c8d147529b9c4bee1b473e time64.patch"
diff --git a/main/lua-evdev/time64.patch b/main/lua-evdev/time64.patch
new file mode 100644
index 0000000000..e440430c7c
--- /dev/null
+++ b/main/lua-evdev/time64.patch
@@ -0,0 +1,12 @@
+diff -urN lua-evdev-evdev-2.2.1.orig/evdev/core.c lua-evdev-evdev-2.2.1/evdev/core.c
+--- lua-evdev-evdev-2.2.1.orig/evdev/core.c 2020-07-22 01:58:24.039086727 -0600
++++ lua-evdev-evdev-2.2.1/evdev/core.c 2020-07-22 01:58:48.622532514 -0600
+@@ -99,7 +99,7 @@
+ }
+
+ /* return: timestamp, event type, event code, event value */
+- lua_pushnumber(L, evt.time.tv_sec + evt.time.tv_usec/1000000.0);
++ lua_pushnumber(L, evt.input_event_sec + evt.input_event_usec/1000000.0);
+ lua_pushinteger(L, evt.type);
+ lua_pushinteger(L, evt.code);
+ lua_pushinteger(L, evt.value);