View | Details | Raw Unified | Return to bug 277652 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/keepassxc/Makefile (-1 / +1 lines)
Lines 1-5 Link Here
1
PORTNAME=	keepassxc
1
PORTNAME=	keepassxc
2
DISTVERSION=	2.7.6
2
DISTVERSION=	2.7.8
3
CATEGORIES=	security
3
CATEGORIES=	security
4
MASTER_SITES=	https://github.com/keepassxreboot/keepassxc/releases/download/${DISTVERSION}/
4
MASTER_SITES=	https://github.com/keepassxreboot/keepassxc/releases/download/${DISTVERSION}/
5
DISTNAME=	${PORTNAME}-${DISTVERSION}-src
5
DISTNAME=	${PORTNAME}-${DISTVERSION}-src
(-)b/security/keepassxc/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1692163985
1
TIMESTAMP = 1716409923
2
SHA256 (keepassxc-2.7.6-src.tar.xz) = a58074509fa8e90f152c6247f73e75e126303081f55eedb4ea0cbb6fa980d670
2
SHA256 (keepassxc-2.7.8-src.tar.xz) = 87d3101712b3c8656a24b908ad5b7e2529bc01717cb4156f53ba195fb81783a3
3
SIZE (keepassxc-2.7.6-src.tar.xz) = 8474624
3
SIZE (keepassxc-2.7.8-src.tar.xz) = 9764860
(-)b/security/keepassxc/files/patch-src_gui_osutils_nixutils_DeviceListenerLibUsb.cpp (+35 lines)
Added Link Here
1
--- src/gui/osutils/nixutils/DeviceListenerLibUsb.cpp.orig	2024-05-23 07:16:45 UTC
2
+++ src/gui/osutils/nixutils/DeviceListenerLibUsb.cpp
3
@@ -66,7 +66,7 @@ int DeviceListenerLibUsb::registerHotplugCallback(bool
4
         events |= LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT;
5
     }
6
 
7
-    int handle = 0;
8
+    Handle handle = 0;
9
     const QPointer that = this;
10
     const int ret = libusb_hotplug_register_callback(
11
         static_cast<libusb_context*>(m_ctx),
12
@@ -84,7 +84,7 @@ int DeviceListenerLibUsb::registerHotplugCallback(bool
13
             return 0;
14
         },
15
         that,
16
-        &handle);
17
+        reinterpret_cast<libusb_hotplug_callback_handle *>(&handle));
18
     if (ret != LIBUSB_SUCCESS) {
19
         qWarning("Failed to register USB listener callback.");
20
         handle = 0;
21
@@ -102,12 +102,12 @@ int DeviceListenerLibUsb::registerHotplugCallback(bool
22
     return handle;
23
 }
24
 
25
-void DeviceListenerLibUsb::deregisterHotplugCallback(int handle)
26
+void DeviceListenerLibUsb::deregisterHotplugCallback(Handle handle)
27
 {
28
     if (!m_ctx || !m_callbackHandles.contains(handle)) {
29
         return;
30
     }
31
-    libusb_hotplug_deregister_callback(static_cast<libusb_context*>(m_ctx), handle);
32
+    libusb_hotplug_deregister_callback(static_cast<libusb_context*>(m_ctx), (libusb_hotplug_callback_handle)handle);
33
     m_callbackHandles.remove(handle);
34
 
35
     if (m_callbackHandles.isEmpty() && m_usbEvents.isRunning()) {
(-)b/security/keepassxc/files/patch-src_gui_osutils_nixutils_DeviceListenerLibUsb.h (+26 lines)
Added Link Here
1
--- src/gui/osutils/nixutils/DeviceListenerLibUsb.h.orig	2024-05-05 20:40:29 UTC
2
+++ src/gui/osutils/nixutils/DeviceListenerLibUsb.h
3
@@ -32,12 +32,13 @@ class DeviceListenerLibUsb : public QObject (public)
4
     Q_OBJECT
5
 
6
 public:
7
+    typedef qintptr Handle;
8
     explicit DeviceListenerLibUsb(QWidget* parent);
9
     DeviceListenerLibUsb(const DeviceListenerLibUsb&) = delete;
10
     ~DeviceListenerLibUsb() override;
11
 
12
     int registerHotplugCallback(bool arrived, bool left, int vendorId = -1, int productId = -1, const QUuid* = nullptr);
13
-    void deregisterHotplugCallback(int handle);
14
+    void deregisterHotplugCallback(Handle handle);
15
     void deregisterAllHotplugCallbacks();
16
 
17
 signals:
18
@@ -45,7 +46,7 @@ signals: (private)
19
 
20
 private:
21
     void* m_ctx;
22
-    QSet<int> m_callbackHandles;
23
+    QSet<Handle> m_callbackHandles;
24
     QFuture<void> m_usbEvents;
25
     QAtomicInt m_completed;
26
 };
(-)b/security/keepassxc/files/patch-src_thirdparty_ykcore_CMakeLists.txt (-4 / +4 lines)
Lines 1-8 Link Here
1
--- src/thirdparty/ykcore/CMakeLists.txt.orig	2022-03-21 22:47:20 UTC
1
--- src/thirdparty/ykcore/CMakeLists.txt.orig	2024-05-05 20:40:29 UTC
2
+++ src/thirdparty/ykcore/CMakeLists.txt
2
+++ src/thirdparty/ykcore/CMakeLists.txt
3
@@ -27,7 +27,7 @@ elseif(UNIX AND NOT APPLE)
3
@@ -29,7 +29,7 @@ elseif(UNIX AND NOT APPLE)
4
 elseif(UNIX AND NOT APPLE)
4
 
5
     target_sources(ykcore PRIVATE ykcore_libusb-1.0.c)
5
     find_package(Threads REQUIRED)
6
 
6
 
7
-    find_library(LIBUSB_LIBRARY NAMES usb-1.0)
7
-    find_library(LIBUSB_LIBRARY NAMES usb-1.0)
8
+    find_library(LIBUSB_LIBRARY NAMES usb-1.0 usb)
8
+    find_library(LIBUSB_LIBRARY NAMES usb-1.0 usb)

Return to bug 277652