Bug#1067083: python-uinput: FTBFS on arm{el,hf}: libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member named ‘time’

2024-03-18 Thread Simon McVittie
On Mon, 18 Mar 2024 at 09:12:36 +0100, Sebastian Ramacher wrote:
> arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g 
> -Werror=implicit-function-declaration -fstack-protector-strong 
> -fstack-clash-protection -Wformat -Werror=format-security -g -O2 
> -Werror=implicit-function-declaration -ffile-prefix-map=/<>=. 
> -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
> -I/usr/include/python3.11 -c libsuinput/src/suinput.c -o 
> build/temp.linux-armv7l-cpython-311/libsuinput/src/suinput.o
> libsuinput/src/suinput.c: In function ‘suinput_emit’:
> libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member 
> named ‘time’
>48 | gettimeofday(, 0);
>   |^

This is probably the same thing fixed by
. Untested pseudocode
for a fix:

-gettimeofday(, 0);
+struct timeval timestamp;
+gettimeofday(, 0);
+event.input_event_sec = timestamp.tv_sec;
+event.input_event_usec = timestamp.tv_usec;

smcv



Bug#1067083: python-uinput: FTBFS on arm{el,hf}: libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member named ‘time’

2024-03-18 Thread Sebastian Ramacher
Source: python-uinput
Version: 1.0.1-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=python-uinput=armhf=1.0.1-1=1710718026=0

arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g 
-Werror=implicit-function-declaration -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security -g -O2 
-Werror=implicit-function-declaration -ffile-prefix-map=/<>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.11 
-c libsuinput/src/suinput.c -o 
build/temp.linux-armv7l-cpython-311/libsuinput/src/suinput.o
libsuinput/src/suinput.c: In function ‘suinput_emit’:
libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member named 
‘time’
   48 | gettimeofday(, 0);
  |^
error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: 
python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir 
/<>/.pybuild/cpython3_3.11

Cheers
-- 
Sebastian Ramacher