• Bug#1067076: x11vnc: FTBFS on arm{el,hf}: uinput.c:723:25: error: =?UTF

    From Sebastian Ramacher@21:1/5 to All on Mon Mar 18 00:50:01 2024
    Source: x11vnc
    Version: 0.9.16-9
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=x11vnc&arch=armhf&ver=0.9.16-9%2Bb1&stamp=1710639780&raw=0

    gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-
    clash-protection -Wformat -Werror=format-security -c -o x11vnc-user.o `test -f 'user.c' || echo './'`user.c
    uinput.c: In function ‘ptr_move’:
    uinput.c:723:25: error: ‘struct input_event’ has no member named ‘time’
    723 | gettimeofday(&ev.time, NULL);
    | ^
    uinput.c: In function ‘ptr_abs’:
    uinput.c:776:25: error: ‘struct input_event’ has no member named ‘time’
    776 | gettimeofday(&ev.time, NULL);
    | ^
    uinput.c: In function ‘button_click’:
    uinput.c:962:25: error: ‘struct input_event’ has no member named ‘time’
    962 | gettimeofday(&ev.time, NULL);
    | ^
    uinput.c: In function ‘uinput_key_command’:
    uinput.c:1256:25: error: ‘struct input_event’ has no member named ‘time’
    1256 | gettimeofday(&ev.time, NULL);
    | ^

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 21 04:10:01 2024
    Processing control commands:

    tags -1 patch
    Bug #1067076 [src:x11vnc] x11vnc: FTBFS on arm{el,hf}: uinput.c:723:25: error: ‘struct input_event’ has no member named ‘time’
    Added tag(s) patch.

    --
    1067076: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067076
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Hudson-Doyle@21:1/5 to All on Thu Mar 21 04:10:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: x11vnc
    Followup-For: Bug #1067076
    User: ubuntu-devel@lists.ubuntu.com
    Usertags: origin-ubuntu noble ubuntu-patch
    X-Debbugs-Cc: michael.hudson@ubuntu.com
    Control: tags -1 patch

    Dear Maintainer,

    In Ubuntu, the attached patch was applied to achieve the following:

    * debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch:
    Use clock_gettime to replace gettimeofday.

    Thanks for considering the patch.


    -- System Information:
    Debian Release: trixie/sid
    APT prefers mantic-updates
    APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.5.0-25-generic (SMP w/16 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    diff -Nru x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch
    --- x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch 1970-01-01 12:00:00.000000000 +1200
    +++ x11vnc-0.9.16/debian/patches/0007-use-clock_gettime-to-replace-gettimeofday.patch 2024-03-21 15:26:54.000000000 +1300
    @@ -0,0 +1,86 @@
    +Description: Use clock_gettime to replace gettimeofday
    + So that the program is compatible with 64-bit time_t types on 32-bit systems +Author: Zixing Liu <zixing.liu@canonical.com>
    +Forwarded: no
    +Last-Update: 2024-03-21
    +
    +Index: x11vnc/src/uinput.c +===================================================================
    +--- x11vnc.orig/src/uinput.c
    ++++ x11vnc/src/uinput.c
    +@@ -710,6 +710,7 @@ void parse_uinput_str(char *in) {
    + static void ptr_move(int dx, int dy) {
    + #ifdef UINPUT_OK
    + struct input_event ev;
    ++ struct timespec tv;
    + int d = direct_rel_fd < 0 ? fd : direct_rel_fd;
    +
    + if (injectable && strchr(injectable, 'M') == NULL) {
    +@@ -720,7 +721,9 @@ static void ptr_move(int dx, int dy) {
    +
    + if (db) fprintf(stderr, "p
  • From Mike Gabriel@21:1/5 to All on Sat Apr 6 09:52:40 2024
    Control: tag -1 pending

    Hello,

    Bug #1067076 in x11vnc reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/debian-remote-team/x11vnc/-/commit/8bc94652676a6e4d700ab2c5b6850876dab2796f

    ------------------------------------------------------------------------ debian/patches: Add 0007-use-clock_gettime-to-replace-gettimeofday.patch. Fix FTBFS related to time_64t transition. (Closes: #1067076).
    ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1067076

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)