Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-evdev: update to 1.6.0.
@ 2022-08-11 15:16 darknebula05
  2022-08-12  6:42 ` [PR REVIEW] " classabbyamp
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: darknebula05 @ 2022-08-11 15:16 UTC (permalink / raw)
  To: ml

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

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

https://github.com/darknebula05/void-packages master
https://github.com/void-linux/void-packages/pull/38611

python3-evdev: update to 1.6.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES*

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-38611.patch --]
[-- Type: text/x-diff, Size: 3225 bytes --]

From abd9be13bf9e1b080b3ae9fd35ce1bfaa27efaa6 Mon Sep 17 00:00:00 2001
From: darknebula05 <camms205@aol.com>
Date: Thu, 11 Aug 2022 11:08:10 -0400
Subject: [PATCH] python3-evdev: update to 1.6.0.

---
 srcpkgs/python3-evdev/patches/time64.patch | 45 ----------------------
 srcpkgs/python3-evdev/template             |  6 +--
 2 files changed, 3 insertions(+), 48 deletions(-)
 delete mode 100644 srcpkgs/python3-evdev/patches/time64.patch

diff --git a/srcpkgs/python3-evdev/patches/time64.patch b/srcpkgs/python3-evdev/patches/time64.patch
deleted file mode 100644
index bfcb6598f0c5..000000000000
--- a/srcpkgs/python3-evdev/patches/time64.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- a/evdev/input.c	2019-04-07 17:40:25.000000000 +0200
-+++ b/evdev/input.c	2020-12-14 14:48:49.568344738 +0100
-@@ -60,8 +60,8 @@
-         return NULL;
-     }
- 
--    PyObject* sec  = PyLong_FromLong(event.time.tv_sec);
--    PyObject* usec = PyLong_FromLong(event.time.tv_usec);
-+    PyObject* sec  = PyLong_FromLong(event.input_event_sec);
-+    PyObject* usec = PyLong_FromLong(event.input_event_usec);
-     PyObject* val  = PyLong_FromLong(event.value);
-     PyObject* py_input_event = NULL;
- 
-@@ -102,8 +102,8 @@
- 
-     // Construct a list of event tuples, which we'll make sense of in Python
-     for (unsigned i = 0 ; i < nread/event_size ; i++) {
--        sec  = PyLong_FromLong(event[i].time.tv_sec);
--        usec = PyLong_FromLong(event[i].time.tv_usec);
-+        sec  = PyLong_FromLong(event[i].input_event_sec);
-+        usec = PyLong_FromLong(event[i].input_event_usec);
-         val  = PyLong_FromLong(event[i].value);
- 
-         py_input_event = Py_BuildValue("OOhhO", sec, usec, event[i].type, event[i].code, val);
---- a/evdev/uinput.c	2019-04-07 17:40:25.000000000 +0200
-+++ b/evdev/uinput.c	2020-12-14 14:51:58.809761744 +0100
-@@ -226,6 +226,7 @@
- static PyObject *
- uinput_write(PyObject *self, PyObject *args)
- {
-+    struct timeval tv;
-     int fd, type, code, value;
- 
-     int ret = PyArg_ParseTuple(args, "iiii", &fd, &type, &code, &value);
-@@ -233,7 +234,9 @@
- 
-     struct input_event event;
-     memset(&event, 0, sizeof(event));
--    gettimeofday(&event.time, 0);
-+    gettimeofday(&tv, 0);
-+    event.input_event_sec = tv.tv_sec;
-+    event.input_event_usec = tv.tv_usec;
-     event.type = type;
-     event.code = code;
-     event.value = value;
diff --git a/srcpkgs/python3-evdev/template b/srcpkgs/python3-evdev/template
index 962216d71325..4cb8835e340b 100644
--- a/srcpkgs/python3-evdev/template
+++ b/srcpkgs/python3-evdev/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-evdev'
 pkgname=python3-evdev
-version=1.2.0
-revision=5
+version=1.6.0
+revision=1
 wrksrc="python-evdev-$version"
 build_style=python3-module
 hostmakedepends="python3-setuptools"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
-checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+checksum=85877121b46e0eacf390c1ee4a07e6f5fcb3c603c1649efcccdd554f2fe0c3ab
 
 post_install() {
 	vlicense LICENSE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR REVIEW] python3-evdev: update to 1.6.0.
  2022-08-11 15:16 [PR PATCH] python3-evdev: update to 1.6.0 darknebula05
@ 2022-08-12  6:42 ` classabbyamp
  2022-08-12 19:47 ` [PR PATCH] [Updated] " darknebula05
  2022-08-12 19:50 ` [PR PATCH] [Closed]: " darknebula05
  2 siblings, 0 replies; 4+ messages in thread
From: classabbyamp @ 2022-08-12  6:42 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38611#discussion_r944157654

Comment:
```suggestion
homepage="https://github.com/gvalkov/python-evdev"
changelog="https://raw.githubusercontent.com/gvalkov/python-evdev/main/docs/changelog.rst"
```

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] python3-evdev: update to 1.6.0.
  2022-08-11 15:16 [PR PATCH] python3-evdev: update to 1.6.0 darknebula05
  2022-08-12  6:42 ` [PR REVIEW] " classabbyamp
@ 2022-08-12 19:47 ` darknebula05
  2022-08-12 19:50 ` [PR PATCH] [Closed]: " darknebula05
  2 siblings, 0 replies; 4+ messages in thread
From: darknebula05 @ 2022-08-12 19:47 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by darknebula05 against master on the void-packages repository

https://github.com/darknebula05/void-packages master
https://github.com/void-linux/void-packages/pull/38611

python3-evdev: update to 1.6.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES*

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-38611.patch --]
[-- Type: text/x-diff, Size: 3225 bytes --]

From 5975cce80488b22f19a88f3d78a99a273c8e6213 Mon Sep 17 00:00:00 2001
From: darknebula05 <camms205@aol.com>
Date: Thu, 11 Aug 2022 11:08:10 -0400
Subject: [PATCH] python3-evdev: update to 1.6.0.

---
 srcpkgs/python3-evdev/patches/time64.patch | 45 ----------------------
 srcpkgs/python3-evdev/template             |  6 +--
 2 files changed, 3 insertions(+), 48 deletions(-)
 delete mode 100644 srcpkgs/python3-evdev/patches/time64.patch

diff --git a/srcpkgs/python3-evdev/patches/time64.patch b/srcpkgs/python3-evdev/patches/time64.patch
deleted file mode 100644
index bfcb6598f0c5..000000000000
--- a/srcpkgs/python3-evdev/patches/time64.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- a/evdev/input.c	2019-04-07 17:40:25.000000000 +0200
-+++ b/evdev/input.c	2020-12-14 14:48:49.568344738 +0100
-@@ -60,8 +60,8 @@
-         return NULL;
-     }
- 
--    PyObject* sec  = PyLong_FromLong(event.time.tv_sec);
--    PyObject* usec = PyLong_FromLong(event.time.tv_usec);
-+    PyObject* sec  = PyLong_FromLong(event.input_event_sec);
-+    PyObject* usec = PyLong_FromLong(event.input_event_usec);
-     PyObject* val  = PyLong_FromLong(event.value);
-     PyObject* py_input_event = NULL;
- 
-@@ -102,8 +102,8 @@
- 
-     // Construct a list of event tuples, which we'll make sense of in Python
-     for (unsigned i = 0 ; i < nread/event_size ; i++) {
--        sec  = PyLong_FromLong(event[i].time.tv_sec);
--        usec = PyLong_FromLong(event[i].time.tv_usec);
-+        sec  = PyLong_FromLong(event[i].input_event_sec);
-+        usec = PyLong_FromLong(event[i].input_event_usec);
-         val  = PyLong_FromLong(event[i].value);
- 
-         py_input_event = Py_BuildValue("OOhhO", sec, usec, event[i].type, event[i].code, val);
---- a/evdev/uinput.c	2019-04-07 17:40:25.000000000 +0200
-+++ b/evdev/uinput.c	2020-12-14 14:51:58.809761744 +0100
-@@ -226,6 +226,7 @@
- static PyObject *
- uinput_write(PyObject *self, PyObject *args)
- {
-+    struct timeval tv;
-     int fd, type, code, value;
- 
-     int ret = PyArg_ParseTuple(args, "iiii", &fd, &type, &code, &value);
-@@ -233,7 +234,9 @@
- 
-     struct input_event event;
-     memset(&event, 0, sizeof(event));
--    gettimeofday(&event.time, 0);
-+    gettimeofday(&tv, 0);
-+    event.input_event_sec = tv.tv_sec;
-+    event.input_event_usec = tv.tv_usec;
-     event.type = type;
-     event.code = code;
-     event.value = value;
diff --git a/srcpkgs/python3-evdev/template b/srcpkgs/python3-evdev/template
index 962216d71325..4cb8835e340b 100644
--- a/srcpkgs/python3-evdev/template
+++ b/srcpkgs/python3-evdev/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-evdev'
 pkgname=python3-evdev
-version=1.2.0
-revision=5
+version=1.6.0
+revision=1
 wrksrc="python-evdev-$version"
 build_style=python3-module
 hostmakedepends="python3-setuptools"
@@ -11,7 +11,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="BSD-3-Clause"
 homepage="https://github.com/gvalkov/python-evdev"
 distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
-checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
+checksum=85877121b46e0eacf390c1ee4a07e6f5fcb3c603c1649efcccdd554f2fe0c3ab
 
 post_install() {
 	vlicense LICENSE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Closed]: python3-evdev: update to 1.6.0.
  2022-08-11 15:16 [PR PATCH] python3-evdev: update to 1.6.0 darknebula05
  2022-08-12  6:42 ` [PR REVIEW] " classabbyamp
  2022-08-12 19:47 ` [PR PATCH] [Updated] " darknebula05
@ 2022-08-12 19:50 ` darknebula05
  2 siblings, 0 replies; 4+ messages in thread
From: darknebula05 @ 2022-08-12 19:50 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

python3-evdev: update to 1.6.0.
https://github.com/void-linux/void-packages/pull/38611

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES*

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-12 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 15:16 [PR PATCH] python3-evdev: update to 1.6.0 darknebula05
2022-08-12  6:42 ` [PR REVIEW] " classabbyamp
2022-08-12 19:47 ` [PR PATCH] [Updated] " darknebula05
2022-08-12 19:50 ` [PR PATCH] [Closed]: " darknebula05

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).