Page MenuHomeSolus

D8211.id19672.diff
No OneTemporary

D8211.id19672.diff

diff --git a/files/fix_delay.patch b/files/fix_delay.patch
new file mode 100644
--- /dev/null
+++ b/files/fix_delay.patch
@@ -0,0 +1,27 @@
+From 7326421eeaadbc2aeb3828628c2e65bb7be323a9 Mon Sep 17 00:00:00 2001
+From: buxit <buti@bux.at>
+Date: Wed, 2 Nov 2016 16:25:14 +0100
+Subject: [PATCH] fix 60 seconds delay
+
+use `libusb_handle_events_timeout_completed()` instead of `libusb_handle_events()`
+should fix #144
+---
+ src/usb_gsource.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/usb_gsource.cpp b/src/usb_gsource.cpp
+index 00bf1315..afb38f65 100644
+--- a/src/usb_gsource.cpp
++++ b/src/usb_gsource.cpp
+@@ -174,7 +174,10 @@ USBGSource::on_source_dispatch(GSource* source, GSourceFunc callback, gpointer u
+ gboolean
+ USBGSource::on_source()
+ {
+- libusb_handle_events(NULL);
++ struct timeval to;
++ to.tv_sec = 0;
++ to.tv_usec = 0;
++ libusb_handle_events_timeout_completed(NULL, &to, NULL);
+ return TRUE;
+ }
+
diff --git a/package.yml b/package.yml
--- a/package.yml
+++ b/package.yml
@@ -1,6 +1,6 @@
name : xboxdrv
version : 0.8.8
-release : 3
+release : 4
source :
- https://github.com/xboxdrv/xboxdrv/archive/v0.8.8.tar.gz : 2d0ee8c8c1c0e5c2d84e0302766012c95f063a82c3a6207d6f0298c32ae6a24b
license : GPL-3.0
@@ -16,6 +16,7 @@
- scons
setup : |
sed 's/\/local//' -i Makefile
+ %patch -p1 < $pkgfiles/fix_delay.patch
build : |
%make
install : |
diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml
--- a/pspec_x86_64.xml
+++ b/pspec_x86_64.xml
@@ -2,15 +2,15 @@
<Source>
<Name>xboxdrv</Name>
<Packager>
- <Name>Joey Riches</Name>
- <Email>josephriches@gmail.com</Email>
+ <Name>Thomas Staudinger</Name>
+ <Email>Staudi.Kaos@gmail.com</Email>
</Packager>
<License>GPL-3.0</License>
<PartOf>system.utils</PartOf>
<Summary xml:lang="en">Xbox/Xbox360 gamepad driver in userspace</Summary>
<Description xml:lang="en">Xbox/Xbox360 gamepad driver for Linux that works in userspace.
</Description>
- <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://solus-project.com/sources/README.Solus</Archive>
+ <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://getsol.us/sources/README.Solus</Archive>
</Source>
<Package>
<Name>xboxdrv</Name>
@@ -25,12 +25,12 @@
</Files>
</Package>
<History>
- <Update release="3">
- <Date>2018-07-29</Date>
+ <Update release="4">
+ <Date>2020-02-09</Date>
<Version>0.8.8</Version>
<Comment>Packaging update</Comment>
- <Name>Joey Riches</Name>
- <Email>josephriches@gmail.com</Email>
+ <Name>Thomas Staudinger</Name>
+ <Email>Staudi.Kaos@gmail.com</Email>
</Update>
</History>
</PISI>
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 11, 9:11 PM (2 h, 45 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5799839
Default Alt Text
D8211.id19672.diff (2 KB)

Event Timeline