summaryrefslogtreecommitdiffstats
path: root/source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-06-18 20:33:08 +0000
committer Eric Hameleers <alien@slackware.com>2021-06-19 02:59:56 +0200
commitd982348571d80dbef6cd54f4af963ffe8237b9a9 (patch)
tree8b84c61e396b2989872537d0e3b0ee7f5d683a5f /source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch
parent485160d3b1290e06e312141561f1f64c7ed64040 (diff)
downloadcurrent-d982348571d80dbef6cd54f4af963ffe8237b9a9.tar.gz
current-d982348571d80dbef6cd54f4af963ffe8237b9a9.tar.xz
Fri Jun 18 20:33:08 UTC 202120210618203308
a/kernel-generic-5.12.12-x86_64-1.txz: Upgraded. a/kernel-huge-5.12.12-x86_64-1.txz: Upgraded. a/kernel-modules-5.12.12-x86_64-1.txz: Upgraded. a/upower-0.99.12-x86_64-1.txz: Upgraded. d/kernel-headers-5.12.12-x86-1.txz: Upgraded. d/rust-1.53.0-x86_64-1.txz: Upgraded. k/kernel-source-5.12.12-noarch-1.txz: Upgraded. kde/kdeconnect-kde-21.04.2-x86_64-2.txz: Rebuilt. Recompiled against pulseaudio-qt-1.3. l/gdbm-1.20-x86_64-1.txz: Upgraded. n/bind-9.16.18-x86_64-1.txz: Upgraded. n/openvpn-2.5.3-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch')
-rw-r--r--source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch76
1 files changed, 0 insertions, 76 deletions
diff --git a/source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch b/source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch
deleted file mode 100644
index 2426e044b..000000000
--- a/source/a/upower/patches/0011-linux-Add-support-for-iPhone-XR-XS-models.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From 97185bae75b16bea48d532aa5511417e485b1c06 Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess@hadess.net>
-Date: Wed, 17 Jun 2020 10:51:09 +0200
-Subject: [PATCH 1/4] linux: Add support for iPhone XR, XS models
-
-Modifying the udev serial to be acceptable as an hyphened UDID, as the
-usbmux stack expects.
-
-Closes: #114
----
- src/linux/up-device-idevice.c | 28 ++++++++++++++++++++++++++--
- 1 file changed, 26 insertions(+), 2 deletions(-)
-
-diff --git a/src/linux/up-device-idevice.c b/src/linux/up-device-idevice.c
-index a808269..d2fa0a1 100644
---- a/src/linux/up-device-idevice.c
-+++ b/src/linux/up-device-idevice.c
-@@ -203,6 +203,28 @@ out:
- return G_SOURCE_CONTINUE;
- }
-
-+static char *
-+get_device_uuid (GUdevDevice *native)
-+{
-+ const char *uuid;
-+ char *retval;
-+
-+ uuid = g_udev_device_get_property (native, "ID_SERIAL_SHORT");
-+ if (uuid == NULL)
-+ return NULL;
-+
-+ if (strlen (uuid) != 24)
-+ return g_strdup (uuid);
-+
-+ /* new style UDID: add hyphen between first 8 and following 16 digits */
-+ retval = g_malloc0 (24 + 1 + 1);
-+ memcpy (&retval[0], &uuid[0], 8);
-+ retval[8] = '-';
-+ memcpy (&retval[9], &uuid[8], 16);
-+
-+ return retval;
-+}
-+
- /**
- * up_device_idevice_coldplug:
- *
-@@ -213,7 +235,7 @@ up_device_idevice_coldplug (UpDevice *device)
- {
- UpDeviceIdevice *idevice = UP_DEVICE_IDEVICE (device);
- GUdevDevice *native;
-- const gchar *uuid;
-+ char *uuid;
- const gchar *model;
- UpDeviceKind kind;
-
-@@ -223,7 +245,7 @@ up_device_idevice_coldplug (UpDevice *device)
- return FALSE;
-
- /* Get the UUID */
-- uuid = g_udev_device_get_property (native, "ID_SERIAL_SHORT");
-+ uuid = get_device_uuid (native);
- if (uuid == NULL)
- return FALSE;
-
-@@ -253,6 +275,8 @@ up_device_idevice_coldplug (UpDevice *device)
- g_source_set_name_by_id (idevice->priv->start_id,
- "[upower] up_device_idevice_start_poll_cb (linux)");
-
-+ g_free (uuid);
-+
- return TRUE;
- }
-
---
-2.27.0
-