Bug#1067616: FTBFS: error: ‘struct input_event’ has no member named ‘time’
Andreas Beckmann
anbe at debian.org
Fri Apr 19 21:07:56 BST 2024
Followup-For: Bug #1067616
Control: tag -1 patch
I'm attaching a patch fixing input_event.time usage.
Andreas
-------------- next part --------------
>From 8435c93a70ae65035002d0039a9a511a5974df90 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe at debian.org>
Date: Fri, 19 Apr 2024 17:12:42 +0200
Subject: [PATCH 1/2] fix --link-doc package
---
debian/changelog | 6 ++++++
debian/rules | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index a124d88..05ea064 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+clanlib (1.0~svn3827-12) UNRELEASED; urgency=medium
+
+ * Fix --link-doc package.
+
+ -- Andreas Beckmann <anbe at debian.org> Fri, 19 Apr 2024 17:10:30 +0200
+
clanlib (1.0~svn3827-11.1) unstable; urgency=medium
* Non-maintainer upload.
diff --git a/debian/rules b/debian/rules
index ccb1097..0bd042f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -46,7 +46,7 @@ override_dh_auto_clean:
rm -f Documentation/Tutorial/Kavanek/*.html
override_dh_installdocs-arch:
- dh_installdocs --link-doc=libclanapp-1.0v5
+ dh_installdocs --link-doc=libclanapp-1.0t64
override_dh_installexamples-indep:
dh_installexamples -pclanlib-doc Examples/*
--
2.20.1
-------------- next part --------------
>From 822447ffd6362ea37f48441f630275a98c0b2d34 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe at debian.org>
Date: Fri, 19 Apr 2024 18:22:23 +0200
Subject: [PATCH 2/2] work around struct input_event.time kernel api change
---
debian/changelog | 1 +
debian/patches/input_event.time.patch | 30 +++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 32 insertions(+)
create mode 100644 debian/patches/input_event.time.patch
diff --git a/debian/changelog b/debian/changelog
index 05ea064..4c916e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
clanlib (1.0~svn3827-12) UNRELEASED; urgency=medium
* Fix --link-doc package.
+ * Work around struct input_event.time kernel api change. (Closes: #1067616)
-- Andreas Beckmann <anbe at debian.org> Fri, 19 Apr 2024 17:10:30 +0200
diff --git a/debian/patches/input_event.time.patch b/debian/patches/input_event.time.patch
new file mode 100644
index 0000000..e52873d
--- /dev/null
+++ b/debian/patches/input_event.time.patch
@@ -0,0 +1,30 @@
+Author: Andreas Beckmann <anbe at debian.org>
+Description: work around struct input_event.time kernel api change
+ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f
+
+--- a/Sources/GL/GLX/input_device_linuxevent.cpp
++++ b/Sources/GL/GLX/input_device_linuxevent.cpp
+@@ -266,12 +266,12 @@ CL_InputDevice_LinuxEvent::keep_alive()
+ if (ev[i].type == EV_SYN)
+ {
+ printf("Event: time %ld.%06ld, -------------- %s ------------\n",
+- ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].code ? "Config Sync" : "Report Sync" );
++ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].code ? "Config Sync" : "Report Sync" );
+ }
+ else if (ev[i].type == EV_MSC && (ev[i].code == MSC_RAW || ev[i].code == MSC_SCAN))
+ {
+ printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %02x\n",
+- ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type,
++ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].type,
+ events[ev[i].type] ? events[ev[i].type] : "?",
+ ev[i].code,
+ names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?",
+@@ -280,7 +280,7 @@ CL_InputDevice_LinuxEvent::keep_alive()
+ else
+ {
+ printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %d\n",
+- ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type,
++ ev[i].input_event_sec, ev[i].input_event_usec, ev[i].type,
+ events[ev[i].type] ? events[ev[i].type] : "?",
+ ev[i].code,
+ names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?",
diff --git a/debian/patches/series b/debian/patches/series
index 06a562a..36c7e9e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
remove-special-variable-perl-5.30.patch
500_reproducible_build.patch
pthread_mutexattr_setkind_np.patch
+input_event.time.patch
--
2.20.1
More information about the Pkg-games-devel
mailing list