Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| da341f31cf | |||
|
|
00638bbe5f |
29
usb_modeswitch-c23.patch
Normal file
29
usb_modeswitch-c23.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
see the message thread on upstream's bulletin board:
|
||||
www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=3122
|
||||
|
||||
|
||||
Build fix for gcc-15
|
||||
by heitbaum » 09 Dec 2024, 14:25
|
||||
|
||||
--- a/usb_modeswitch.c 2020-07-10 15:48:03.000000000 +0000
|
||||
+++ b/usb_modeswitch.c 2024-12-09 12:18:10.953574344 +0000
|
||||
@@ -570,7 +570,7 @@ int main(int argc, char **argv)
|
||||
/* Get current configuration of default device, note value if Configuration
|
||||
* parameter is set. Also sets active_config
|
||||
*/
|
||||
- currentConfigVal = get_current_config_value(dev);
|
||||
+ currentConfigVal = get_current_config_value();
|
||||
if (Configuration > -1) {
|
||||
SHOW_PROGRESS(output,"Current configuration number is %d\n", currentConfigVal);
|
||||
} else
|
||||
@@ -772,7 +772,7 @@ int main(int argc, char **argv)
|
||||
if (Configuration > 0) {
|
||||
if (currentConfigVal != Configuration) {
|
||||
if (switchConfiguration()) {
|
||||
- currentConfigVal = get_current_config_value(dev);
|
||||
+ currentConfigVal = get_current_config_value();
|
||||
if (currentConfigVal == Configuration) {
|
||||
SHOW_PROGRESS(output,"The configuration was set successfully\n");
|
||||
} else {
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 23 13:13:52 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
|
||||
|
||||
- add usb_modeswitch-c23.patch from upstream to fix gcc15 compile
|
||||
time error
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 20 15:39:41 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ Source2: https://www.draisberghof.de/usb_modeswitch/device_reference.txt
|
||||
Source3: https://www.draisberghof.de/usb_modeswitch/parameter_reference.txt
|
||||
Patch1: usb_modeswitch-fix_fsf_address.patch
|
||||
Patch2: harden_usb_modeswitch@.service.patch
|
||||
Patch3: usb_modeswitch-c23.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libusb-1.0)
|
||||
@@ -61,6 +62,7 @@ Data files for usb_modeswitch package.
|
||||
%setup -q -a1 -n %{source_name}-%{version}
|
||||
%patch -P 1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 3 -p1
|
||||
|
||||
cp %{SOURCE2} .
|
||||
cp %{SOURCE3} .
|
||||
|
||||
Reference in New Issue
Block a user