Github messages for voidlinux
 help / color / mirror / Atom feed
From: pullmoll <pullmoll@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] xf86-input-synaptics: fix build w/ musl-1.2.1
Date: Wed, 02 Dec 2020 23:23:00 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26890@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

There is a new pull request by pullmoll against master on the void-packages repository

https://github.com/pullmoll/void-packages xf86-input-synaptics
https://github.com/void-linux/void-packages/pull/26890

xf86-input-synaptics: fix build w/ musl-1.2.1
Graceful transition to 64 bit time.

A patch file from https://github.com/void-linux/void-packages/pull/26890.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xf86-input-synaptics-26890.patch --]
[-- Type: text/x-diff, Size: 2689 bytes --]

From 534cf153ebeee0ccc59bdacadf234e19da278450 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= <pullmoll@t-online.de>
Date: Tue, 1 Dec 2020 21:37:28 +0100
Subject: [PATCH] xf86-input-synaptics: fix build w/ musl-1.2.1

Graceful transition to 64 bit time.
---
 .../patches/fix-input_event-time.patch        | 27 +++++++++++++++++++
 srcpkgs/xf86-input-synaptics/template         |  4 +--
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/xf86-input-synaptics/patches/fix-input_event-time.patch

diff --git a/srcpkgs/xf86-input-synaptics/patches/fix-input_event-time.patch b/srcpkgs/xf86-input-synaptics/patches/fix-input_event-time.patch
new file mode 100644
index 00000000000..af3b593e429
--- /dev/null
+++ b/srcpkgs/xf86-input-synaptics/patches/fix-input_event-time.patch
@@ -0,0 +1,27 @@
+--- src/eventcomm.c	2018-05-29 05:18:45.000000000 +0200
++++ src/eventcomm.c	2020-12-01 21:27:55.746811502 +0100
+@@ -575,9 +575,12 @@
+         ev->type = EV_SYN;
+         ev->code = SYN_REPORT;
+         ev->value = 0;
+-        ev->time = last_event_time;
+-    } else if (ev->type == EV_SYN)
+-        last_event_time = ev->time;
++        ev->input_event_sec = last_event_time.tv_sec;
++        ev->input_event_usec = last_event_time.tv_usec;
++    } else if (ev->type == EV_SYN) {
++        last_event_time.tv_sec = ev->input_event_sec;
++        last_event_time.tv_usec = ev->input_event_usec;
++    }
+ 
+     return TRUE;
+ }
+@@ -725,7 +728,7 @@
+             case SYN_REPORT:
+                 hw->numFingers = count_fingers(pInfo, comm);
+                 if (proto_data->have_monotonic_clock)
+-                    hw->millis = 1000 * ev.time.tv_sec + ev.time.tv_usec / 1000;
++                    hw->millis = 1000 * ev.input_event_sec + ev.input_event_usec / 1000;
+                 else
+                     hw->millis = GetTimeInMillis();
+                 SynapticsCopyHwState(hwRet, hw);
diff --git a/srcpkgs/xf86-input-synaptics/template b/srcpkgs/xf86-input-synaptics/template
index cc2b2ea105e..d39dcdc98ae 100644
--- a/srcpkgs/xf86-input-synaptics/template
+++ b/srcpkgs/xf86-input-synaptics/template
@@ -1,8 +1,7 @@
 # Template file for 'xf86-input-synaptics'
 pkgname=xf86-input-synaptics
 version=1.9.1
-revision=1
-lib32disabled=yes
+revision=2
 build_style=gnu-configure
 hostmakedepends="pkg-config"
 makedepends="libX11-devel libXtst-devel libevdev-devel
@@ -14,6 +13,7 @@ license="MIT"
 homepage="http://www.x.org/"
 distfiles="${XORG_SITE}/driver/${pkgname}-${version}.tar.bz2"
 checksum=7af83526eff1c76e8b9e1553b34245c203d029028d8044dd9dcf71eef1001576
+lib32disabled=yes
 
 post_install() {
 	vlicense COPYING

             reply	other threads:[~2020-12-02 22:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 22:23 pullmoll [this message]
2020-12-06  9:03 ` [PR PATCH] [Updated] " pullmoll
2020-12-06  9:35 ` [PR PATCH] [Merged]: " pullmoll
  -- strict thread matches above, loose matches on Subject: below --
2020-12-01 20:42 [PR PATCH] " pullmoll

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26890@inbox.vuxu.org \
    --to=pullmoll@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).