Compare commits

...

No commits in common. "c8s" and "c8-beta" have entirely different histories.
c8s ... c8-beta

9 changed files with 2 additions and 137 deletions

1
.evemu.metadata Normal file
View File

@ -0,0 +1 @@
16c6e1484253e1610a019dcca22b1698002824ca SOURCES/evemu-2.7.0.tar.xz

3
.gitignore vendored
View File

@ -1,2 +1 @@
/evemu-2.6.0.tar.xz SOURCES/evemu-2.7.0.tar.xz
/evemu-2.7.0.tar.xz

View File

@ -1,54 +0,0 @@
From 095fc44e699b79ce28d30151e3768b933cf8e461 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Wed, 28 Jan 2015 10:02:17 +1000
Subject: [PATCH evemu 1/2] tools: handle holes in the event node lists
The current code simply counts the number of directory entries and takes that
as the maximum event node given. That isn't true if we have a hole in the
event range after removing a device, making the last device in the list
unaccessible.
Fix this by actually looking at the event node numbers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
---
tools/find_event_devices.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tools/find_event_devices.c b/tools/find_event_devices.c
index fd975aa..1f7539a 100644
--- a/tools/find_event_devices.c
+++ b/tools/find_event_devices.c
@@ -46,6 +46,7 @@ char* find_event_devices(void)
struct dirent **namelist;
int i, ndev, devnum;
char *filename;
+ int max_device = 0;
ndev = scandir(DEV_INPUT_EVENT, &namelist, is_event_device, versionsort);
if (ndev <= 0)
@@ -68,13 +69,18 @@ char* find_event_devices(void)
fprintf(stderr, "%s: %s\n", fname, name);
close(fd);
+
+ sscanf(namelist[i]->d_name, "event%d", &devnum);
+ if (devnum > max_device)
+ max_device = devnum;
+
free(namelist[i]);
}
- fprintf(stderr, "Select the device event number [0-%d]: ", ndev - 1);
+ fprintf(stderr, "Select the device event number [0-%d]: ", max_device);
scanf("%d", &devnum);
- if (devnum >= ndev || devnum < 0)
+ if (devnum > max_device || devnum < 0)
return NULL;
asprintf(&filename, "%s/%s%d",
--
2.4.2

View File

@ -1,56 +0,0 @@
From b9052900ba09005754114684789497f04040811b Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu, 11 Jun 2015 11:14:17 +1000
Subject: [PATCH evemu 2/2] Print uname in the header comments
Knowing what approximate kernel version this was recorded against help
identify a few bugs before we spend too much time trying to reproduce it on
other kernels.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
---
src/evemu.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/evemu.c b/src/evemu.c
index b98d340..b800998 100644
--- a/src/evemu.c
+++ b/src/evemu.c
@@ -52,6 +52,7 @@
#include <poll.h>
#include <ctype.h>
#include <unistd.h>
+#include <sys/utsname.h>
#include "version.h"
@@ -343,11 +344,24 @@ static void write_desc(const struct evemu_device *dev, FILE *fp)
#endif
}
+static void
+write_header(FILE *fp)
+{
+ struct utsname u;
+
+ fprintf(fp, "# EVEMU %d.%d\n", EVEMU_FILE_MAJOR, EVEMU_FILE_MINOR);
+
+ if (uname(&u) == -1)
+ return;
+
+ fprintf(fp, "# Kernel: %s\n", u.release);
+}
+
int evemu_write(const struct evemu_device *dev, FILE *fp)
{
int i;
- fprintf(fp, "# EVEMU %d.%d\n", EVEMU_FILE_MAJOR, EVEMU_FILE_MINOR);
+ write_header(fp);
write_desc(dev, fp);
--
2.4.2

View File

@ -1 +0,0 @@
eba96a4d2be7260b5843e65c4b99c8b06a1f4c9d

View File

@ -1,6 +0,0 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

View File

@ -1,17 +0,0 @@
#!/bin/sh
DIRNAME=evemu-$( date +%Y%m%d )
rm -rf $DIRNAME
git clone git://git.freedesktop.org/git/evemu $DIRNAME
cd $DIRNAME
if [ -z "$1" ]; then
git log | head -1
else
git checkout $1
fi
git log | head -1 | awk '{ print $2 }' > ../commitid
git repack -a -d
cd ..
tar jcf $DIRNAME.tar.bz2 $DIRNAME
rm -rf $DIRNAME

View File

@ -1 +0,0 @@
SHA512 (evemu-2.7.0.tar.xz) = a8b09717f84df440c230bb65d3d50d81ce6a722a7cdb281981792435ea591186c28dbec215a0314542e0e36bab06bb1800851bbe32cf2a0e7712adaeaceaeb76