[packages/gerbera] - added libfmt patch, release 3 (libfmt 10, spdlog 1.12)
qboosh
qboosh at pld-linux.org
Tue Jul 25 19:56:05 CEST 2023
commit c33b4256cd490ba414cb2bab07ad722e094f5523
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 25 19:35:28 2023 +0200
- added libfmt patch, release 3 (libfmt 10, spdlog 1.12)
gerbera-libfmt.patch | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++
gerbera.spec | 4 +-
2 files changed, 131 insertions(+), 1 deletion(-)
---
diff --git a/gerbera.spec b/gerbera.spec
index 7f30218..207cfda 100644
--- a/gerbera.spec
+++ b/gerbera.spec
@@ -6,12 +6,13 @@ Summary: UPnP Media Server
Summary(pl.UTF-8): Serwer mediów UPnP
Name: gerbera
Version: 1.12.1
-Release: 2
+Release: 3
License: GPL v2
Group: Applications/Multimedia
#Source0Download: https://github.com/gerbera/gerbera/releases
Source0: https://github.com/gerbera/gerbera/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: bd826f6060955a9b38c9faffdf4da951
+Patch0: %{name}-libfmt.patch
URL: https://gerbera.io/
BuildRequires: cmake >= 3.18
BuildRequires: curl-devel
@@ -57,6 +58,7 @@ urządzeniach zgodnych z UPnP.
%prep
%setup -q
+%patch0 -p1
%build
%cmake -B build \
diff --git a/gerbera-libfmt.patch b/gerbera-libfmt.patch
new file mode 100644
index 0000000..1b0a04c
--- /dev/null
+++ b/gerbera-libfmt.patch
@@ -0,0 +1,128 @@
+Not sure what was expected to be printed (`.name()`, `.value()`, `.child_value()`?)
+With older libfmt it probably used implicit conversion to bool, but it's unlikely to be wanted.
+
+--- gerbera-1.12.1/src/config/setup/config_setup_autoscan.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_autoscan.cc 2023-07-25 18:33:33.190773810 +0200
+@@ -243,7 +243,7 @@ std::shared_ptr<ConfigOption> ConfigAuto
+ {
+ auto result = std::vector<AutoscanDirectory>();
+ if (!createOptionFromNode(optValue, result)) {
+- throw_std_runtime_error("Init {} autoscan failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} autoscan failed '{}'", xpath, optValue.child_value());
+ }
+ optionValue = std::make_shared<AutoscanListOption>(result);
+ return optionValue;
+--- gerbera-1.12.1/src/config/setup/config_setup_array.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_array.cc 2023-07-25 18:35:27.616820577 +0200
+@@ -137,11 +137,11 @@ std::vector<std::string> ConfigArraySetu
+ std::vector<std::string> result;
+ if (initArray) {
+ if (!initArray(optValue, result, ConfigDefinition::mapConfigOption(nodeOption))) {
+- throw_std_runtime_error("Invalid {} array value '{}'", xpath, optValue);
++ throw_std_runtime_error("Invalid {} array value '{}'", xpath, optValue.child_value());
+ }
+ } else {
+ if (!createOptionFromNode(optValue, result)) {
+- throw_std_runtime_error("Invalid {} array value '{}'", xpath, optValue);
++ throw_std_runtime_error("Invalid {} array value '{}'", xpath, optValue.child_value());
+ }
+ }
+ if (result.empty()) {
+@@ -150,7 +150,7 @@ std::vector<std::string> ConfigArraySetu
+ result = defaultEntries;
+ }
+ if (notEmpty && result.empty()) {
+- throw_std_runtime_error("Invalid array {} empty '{}'", xpath, optValue);
++ throw_std_runtime_error("Invalid array {} empty '{}'", xpath, optValue.child_value());
+ }
+ return result;
+ }
+--- gerbera-1.12.1/src/config/setup/config_setup_client.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_client.cc 2023-07-25 18:38:46.295744241 +0200
+@@ -183,7 +183,7 @@ std::shared_ptr<ConfigOption> ConfigClie
+ auto result = std::make_shared<ClientConfigList>();
+
+ if (!createOptionFromNode(isEnabled ? optValue : pugi::xml_node(nullptr), result)) {
+- throw_std_runtime_error("Init {} client config failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} client config failed '{}'", xpath, optValue.child_value());
+ }
+ optionValue = std::make_shared<ClientConfigListOption>(result);
+ return optionValue;
+--- gerbera-1.12.1/src/config/setup/config_setup_dictionary.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_dictionary.cc 2023-07-25 18:40:20.188568914 +0200
+@@ -163,11 +163,11 @@ std::map<std::string, std::string> Confi
+ std::map<std::string, std::string> result;
+ if (initDict) {
+ if (!initDict(optValue, result)) {
+- throw_std_runtime_error("Init {} dictionary failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} dictionary failed '{}'", xpath, optValue.child_value());
+ }
+ } else {
+ if (!createOptionFromNode(optValue, result) && required) {
+- throw_std_runtime_error("Init {} dictionary failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} dictionary failed '{}'", xpath, optValue.child_value());
+ }
+ }
+ if (result.empty()) {
+@@ -176,7 +176,7 @@ std::map<std::string, std::string> Confi
+ result = defaultEntries;
+ }
+ if (notEmpty && result.empty()) {
+- throw_std_runtime_error("Invalid dictionary {} empty '{}'", xpath, optValue);
++ throw_std_runtime_error("Invalid dictionary {} empty '{}'", xpath, optValue.child_value());
+ }
+ return result;
+ }
+--- gerbera-1.12.1/src/config/setup/config_setup_dynamic.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_dynamic.cc 2023-07-25 18:41:05.124992139 +0200
+@@ -192,7 +192,7 @@ std::shared_ptr<ConfigOption> ConfigDyna
+ auto result = std::make_shared<DynamicContentList>();
+
+ if (!createOptionFromNode(optValue, result)) {
+- throw_std_runtime_error("Init {} DynamicContentList failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} DynamicContentList failed '{}'", xpath, optValue.child_value());
+ }
+ optionValue = std::make_shared<DynamicContentListOption>(result);
+ return optionValue;
+--- gerbera-1.12.1/src/config/setup/config_setup_transcoding.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_transcoding.cc 2023-07-25 18:42:14.297950730 +0200
+@@ -497,7 +497,7 @@ std::shared_ptr<ConfigOption> ConfigTran
+ auto result = std::make_shared<TranscodingProfileList>();
+
+ if (!createOptionFromNode(isEnabled ? optValue : pugi::xml_node(nullptr), result)) {
+- throw_std_runtime_error("Init {} transcoding failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} transcoding failed '{}'", xpath, optValue.child_value());
+ }
+ optionValue = std::make_shared<TranscodingProfileListOption>(result);
+ return optionValue;
+--- gerbera-1.12.1/src/config/setup/config_setup_tweak.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_tweak.cc 2023-07-25 18:43:05.837671515 +0200
+@@ -257,7 +257,7 @@ std::shared_ptr<ConfigOption> ConfigDire
+ auto result = std::make_shared<DirectoryConfigList>();
+
+ if (!createOptionFromNode(optValue, result)) {
+- throw_std_runtime_error("Init {} DirectoryConfigList failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} DirectoryConfigList failed '{}'", xpath, optValue.child_value());
+ }
+ optionValue = std::make_shared<DirectoryTweakOption>(result);
+ return optionValue;
+--- gerbera-1.12.1/src/config/setup/config_setup_vector.cc.orig 2023-01-02 18:11:40.000000000 +0100
++++ gerbera-1.12.1/src/config/setup/config_setup_vector.cc 2023-07-25 18:43:52.497418738 +0200
+@@ -181,7 +181,7 @@ std::vector<std::vector<std::pair<std::s
+ {
+ std::vector<std::vector<std::pair<std::string, std::string>>> result;
+ if (!createOptionFromNode(optValue, result) && required) {
+- throw_std_runtime_error("Init {} vector failed '{}'", xpath, optValue);
++ throw_std_runtime_error("Init {} vector failed '{}'", xpath, optValue.child_value());
+ }
+ if (result.empty()) {
+ log_debug("{} assigning {} default values", xpath, defaultEntries.size());
+@@ -189,7 +189,7 @@ std::vector<std::vector<std::pair<std::s
+ result = defaultEntries;
+ }
+ if (notEmpty && result.empty()) {
+- throw_std_runtime_error("Invalid vector {} empty '{}'", xpath, optValue);
++ throw_std_runtime_error("Invalid vector {} empty '{}'", xpath, optValue.child_value());
+ }
+ return result;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gerbera.git/commitdiff/c33b4256cd490ba414cb2bab07ad722e094f5523
More information about the pld-cvs-commit
mailing list