Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/openrgb/files/
Date: Fri, 03 Mar 2023 21:21:10
Message-Id: 1677878464.be5d2ed93a38d1208916f3f8a8aad476ead53c1b.xgqt@gentoo
1 commit: be5d2ed93a38d1208916f3f8a8aad476ead53c1b
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Wed Mar 1 16:20:06 2023 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 21:21:04 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be5d2ed9
7
8 app-misc/openrgb: remove unused patches
9
10 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 app-misc/openrgb/files/OpenRGB-0.7-json.patch | 24 ------------------------
14 app-misc/openrgb/files/OpenRGB-0.7-plugins.patch | 24 ------------------------
15 app-misc/openrgb/files/OpenRGB-0.7-udev.patch | 16 ----------------
16 3 files changed, 64 deletions(-)
17
18 diff --git a/app-misc/openrgb/files/OpenRGB-0.7-json.patch b/app-misc/openrgb/files/OpenRGB-0.7-json.patch
19 deleted file mode 100644
20 index 32474f545dd0..000000000000
21 --- a/app-misc/openrgb/files/OpenRGB-0.7-json.patch
22 +++ /dev/null
23 @@ -1,24 +0,0 @@
24 -Fix build with dev-cpp/nlohmann_json-3.11.2
25 -
26 -https://bugs.gentoo.org/865133
27 -https://gitlab.com/CalcProgrammer1/OpenRGB/-/merge_requests/1376
28 ---- a/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp
29 -+++ b/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp
30 -@@ -329,7 +329,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config()
31 - }
32 - else
33 - {
34 -- for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items())
35 -+ for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items())
36 - {
37 - MBName2Layout.insert( std::pair<std::string, std::string>(it.key(), it.value() ));
38 - }
39 -@@ -380,7 +380,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config()
40 - json json_HCL = device_settings[SectionCustom]["Data"];
41 - layout.clear();
42 -
43 -- for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items())
44 -+ for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items())
45 - {
46 - json json_zl = json_layout_it.value();
47 - std::vector<LedPort> v_lp;
48
49 diff --git a/app-misc/openrgb/files/OpenRGB-0.7-plugins.patch b/app-misc/openrgb/files/OpenRGB-0.7-plugins.patch
50 deleted file mode 100644
51 index b9a6fb2cd16a..000000000000
52 --- a/app-misc/openrgb/files/OpenRGB-0.7-plugins.patch
53 +++ /dev/null
54 @@ -1,24 +0,0 @@
55 -Allow installation of plugins not only in ~/.config
56 -
57 -Used by app-misc/openrgb-plugin-* packages
58 -
59 ---- a/PluginManager.cpp
60 -+++ b/PluginManager.cpp
61 -@@ -35,7 +35,8 @@ void PluginManager::ScanAndLoadPlugins()
62 - | The plugins directory is a directory named "plugins" in |
63 - | the configuration directory |
64 - \*---------------------------------------------------------*/
65 -- const QDir plugins_dir = QString().fromStdString(ResourceManager::get()->GetConfigurationDirectory()) + "plugins/";
66 -+ for (const QDir plugins_dir : {QString().fromStdString(ResourceManager::get()->GetConfigurationDirectory()) + "plugins/",
67 -+ QString().fromStdString(GENTOO_PLUGINS_DIR)}) {
68 -
69 - /*---------------------------------------------------------*\
70 - | Get a list of all files in the plugins directory |
71 -@@ -56,6 +57,7 @@ void PluginManager::ScanAndLoadPlugins()
72 -
73 - AddPlugin(plugin_path);
74 - }
75 -+ }
76 - }
77 -
78 - void PluginManager::AddPlugin(std::string path)
79
80 diff --git a/app-misc/openrgb/files/OpenRGB-0.7-udev.patch b/app-misc/openrgb/files/OpenRGB-0.7-udev.patch
81 deleted file mode 100644
82 index a2feaf1c9378..000000000000
83 --- a/app-misc/openrgb/files/OpenRGB-0.7-udev.patch
84 +++ /dev/null
85 @@ -1,16 +0,0 @@
86 -Install udev rules to correct dir
87 -
88 -Revert https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/ccbe83919a70be346eea948fb2c4122ef9f34214
89 -
90 ---- a/OpenRGB.pro
91 -+++ b/OpenRGB.pro
92 -@@ -1246,7 +1246,7 @@ unix:!macx {
93 - icon.files+=qt/OpenRGB.png
94 - metainfo.path=$$PREFIX/share/metainfo/
95 - metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml
96 -+ rules.path=/lib/udev/rules.d/
97 -- rules.path=$$PREFIX/lib/udev/rules.d/
98 - rules.files+=60-openrgb.rules
99 - INSTALLS += target desktop icon metainfo rules
100 - }
101 -GitLab