diff options
author | 2022-08-23 00:42:01 +0100 | |
---|---|---|
committer | 2022-08-26 16:56:53 -0700 | |
commit | 4afe1169372beb379f024cc5acdcdb2c48b6fe8b (patch) | |
tree | f916c9a9d8e1d2f0f724a670b8ebe014e1ed905d /app-misc/openrgb/files | |
parent | app-misc/dasel: add 1.26.1 (diff) | |
download | gentoo-4afe1169372beb379f024cc5acdcdb2c48b6fe8b.tar.gz gentoo-4afe1169372beb379f024cc5acdcdb2c48b6fe8b.tar.bz2 gentoo-4afe1169372beb379f024cc5acdcdb2c48b6fe8b.zip |
app-misc/openrgb: fix build with dev-cpp/nlohmann_json-3.11.2
Closes: https://bugs.gentoo.org/865133
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-misc/openrgb/files')
-rw-r--r-- | app-misc/openrgb/files/OpenRGB-0.7-json.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-misc/openrgb/files/OpenRGB-0.7-json.patch b/app-misc/openrgb/files/OpenRGB-0.7-json.patch new file mode 100644 index 000000000000..32474f545dd0 --- /dev/null +++ b/app-misc/openrgb/files/OpenRGB-0.7-json.patch @@ -0,0 +1,24 @@ +Fix build with dev-cpp/nlohmann_json-3.11.2 + +https://bugs.gentoo.org/865133 +https://gitlab.com/CalcProgrammer1/OpenRGB/-/merge_requests/1376 +--- a/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp ++++ b/Controllers/GigabyteRGBFusion2USBController/RGBController_GigabyteRGBFusion2USB.cpp +@@ -329,7 +329,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config() + } + else + { +- for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items()) ++ for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& it : device_settings[SectionLayout].items()) + { + MBName2Layout.insert( std::pair<std::string, std::string>(it.key(), it.value() )); + } +@@ -380,7 +380,7 @@ void RGBController_RGBFusion2USB::Load_Device_Config() + json json_HCL = device_settings[SectionCustom]["Data"]; + layout.clear(); + +- for(nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items()) ++ for(const nlohmann::detail::iteration_proxy_value<nlohmann::detail::iter_impl<nlohmann::json>>& json_layout_it : json_HCL.items()) + { + json json_zl = json_layout_it.value(); + std::vector<LedPort> v_lp; |