added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
From 895b6996e232700fb2a428838feaef418cc64b70 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 30 Nov 2019 22:52:13 -0800
Subject: [PATCH] Fix build on 32bit arches with 64bit time_t
time element is deprecated on new input_event structure in kernel's
input.h [1]
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/frame-mtdev.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/frame-mtdev.c b/src/frame-mtdev.c
index c0f15d8..42ad380 100644
--- a/src/frame-mtdev.c
+++ b/src/frame-mtdev.c
@@ -25,6 +25,11 @@
#include <errno.h>
#include <math.h>
+#ifndef input_event_sec
+#define input_event_sec time.tv_sec
+#define input_event_usec time.tv_usec
+#endif
+
static int is_pointer(const struct evemu_device *dev)
{
return evemu_has_event(dev, EV_REL, REL_X) ||
@@ -200,7 +205,7 @@ static int handle_abs_event(utouch_frame_handle fh,
static utouch_frame_time_t get_evtime_ms(const struct input_event *syn)
{
static const utouch_frame_time_t ms = 1000;
- return syn->time.tv_usec / ms + syn->time.tv_sec * ms;
+ return syn->input_event_usec / ms + syn->input_event_sec * ms;
}
const struct utouch_frame *

View File

@@ -0,0 +1,29 @@
From 08b17ec505e09e8f5a4d73ffc3aa61561ec2e0da Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 30 Mar 2017 00:27:54 -0700
Subject: [PATCH] include sys/stat.h for fixing build issue on musl
error: field has incomplete
type 'struct stat'
struct stat fs;
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
tools/utouch-frame-test-mtdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/utouch-frame-test-mtdev.c b/tools/utouch-frame-test-mtdev.c
index 5253320..2032af4 100644
--- a/tools/utouch-frame-test-mtdev.c
+++ b/tools/utouch-frame-test-mtdev.c
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include "common-defs.h"
struct frame_test {
--
2.12.1

View File

@@ -0,0 +1,16 @@
configure.ac: never generate the docs even if a2x is found as xmllint will fail finding custom dtd files
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Derek Straka <derek@asterius.io>
--- git/configure.ac.orig 2016-08-15 09:53:46.787003658 -0400
+++ git/configure.ac 2016-08-15 09:53:51.698972432 -0400
@@ -37,7 +37,7 @@
])
AC_CHECK_PROG([ASCIIDOC], [a2x], [a2x])
-AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$ASCIIDOC" != "x"])
+AM_CONDITIONAL([HAVE_DOCTOOLS], [false])
AS_IF([test "x$ASCIIDOC" = "x"],
[AC_MSG_WARN([asciidoc not installed, man pages will not be created])])