Accepting request 917612 from electronics
OBS-URL: https://build.opensuse.org/request/show/917612 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/brickv?expand=0&rev=9
This commit is contained in:
commit
a00f7e07e7
32
0001-udev-rules-Fix-ATTR-assignment.patch
Normal file
32
0001-udev-rules-Fix-ATTR-assignment.patch
Normal file
@ -0,0 +1,32 @@
|
||||
From 497f502561c805927ae7320bf19b9a54045fadc9 Mon Sep 17 00:00:00 2001
|
||||
From: Frank Kunz <mailinglists@kunz-im-inter.net>
|
||||
Date: Mon, 6 Sep 2021 22:01:53 +0200
|
||||
Subject: [PATCH] udev-rules: Fix ATTR assignment
|
||||
|
||||
Signed-off-by: Frank Kunz <mailinglists@kunz-im-inter.net>
|
||||
---
|
||||
.../lib/udev/rules.d/99-tinkerforge-brick-flash.rules | 2 +-
|
||||
.../linux/brickv/lib/udev/rules.d/99-tinkerforge-brickv.rules | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/build_data/linux/brick-flash/lib/udev/rules.d/99-tinkerforge-brick-flash.rules b/src/build_data/linux/brick-flash/lib/udev/rules.d/99-tinkerforge-brick-flash.rules
|
||||
index b50de5c8..e646f3ac 100644
|
||||
--- a/src/build_data/linux/brick-flash/lib/udev/rules.d/99-tinkerforge-brick-flash.rules
|
||||
+++ b/src/build_data/linux/brick-flash/lib/udev/rules.d/99-tinkerforge-brick-flash.rules
|
||||
@@ -1,3 +1,3 @@
|
||||
# Disable autosuspend for Tinkerforge Brick bootloader mode
|
||||
# Bootloader otherwise stops working the first time autosuspend is enabled
|
||||
-ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTR{idProduct}=="6124", TEST=="power/autosuspend", ATTR{power/autosuspend}:="-1"
|
||||
+ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTR{idProduct}=="6124", TEST=="power/autosuspend", ATTR{power/autosuspend}="-1"
|
||||
diff --git a/src/build_data/linux/brickv/lib/udev/rules.d/99-tinkerforge-brickv.rules b/src/build_data/linux/brickv/lib/udev/rules.d/99-tinkerforge-brickv.rules
|
||||
index b50de5c8..e646f3ac 100644
|
||||
--- a/src/build_data/linux/brickv/lib/udev/rules.d/99-tinkerforge-brickv.rules
|
||||
+++ b/src/build_data/linux/brickv/lib/udev/rules.d/99-tinkerforge-brickv.rules
|
||||
@@ -1,3 +1,3 @@
|
||||
# Disable autosuspend for Tinkerforge Brick bootloader mode
|
||||
# Bootloader otherwise stops working the first time autosuspend is enabled
|
||||
-ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTR{idProduct}=="6124", TEST=="power/autosuspend", ATTR{power/autosuspend}:="-1"
|
||||
+ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTR{idProduct}=="6124", TEST=="power/autosuspend", ATTR{power/autosuspend}="-1"
|
||||
--
|
||||
2.33.0
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 7 19:23:04 UTC 2021 - Frank Kunz <mailinglists@kunz-im-inter.net>
|
||||
|
||||
- Fix shebang
|
||||
- Add patch to fix udev rule warning
|
||||
0001-udev-rules-Fix-ATTR-assignment.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 14 20:33:11 UTC 2021 - Frank Kunz <mailinglists@kunz-im-inter.net>
|
||||
|
||||
|
@ -25,6 +25,7 @@ License: GPL-2.0-only
|
||||
Group: Development/Tools/Debuggers
|
||||
URL: http://www.tinkerforge.com
|
||||
Source0: https://github.com/Tinkerforge/brickv/archive/v%{version}.tar.gz
|
||||
Patch0: 0001-udev-rules-Fix-ATTR-assignment.patch
|
||||
BuildRequires: %{python_module qt5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@ -44,6 +45,10 @@ Small Qt GUI to control and test all Bricks and Bricklets from Tinkerforge.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
# remove unneeded shebangs
|
||||
sed -i 's|#!/usr/bin/env python3||g' src/brickv/main.py
|
||||
sed -i 's|#!/usr/bin/env python3||g' src/brickv/plugin_system/plugins/red/build_serviceproviders.py
|
||||
|
||||
%build
|
||||
export SERVICEPROVIDERS_XML_PATH=/usr/share/mobile-broadband-provider-info/serviceproviders.xml
|
||||
|
Loading…
Reference in New Issue
Block a user