Date: Friday, August 19, 2022 @ 12:17:24
  Author: felixonmars
Revision: 1270023

upgpkg: gerbera 1.11.0-2: rebuild with fmt 9.0

Added:
  gerbera/trunk/gerbera-fmt-9.0.patch
Modified:
  gerbera/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |    8 ++++----
 gerbera-fmt-9.0.patch |   22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-08-19 12:12:41 UTC (rev 1270022)
+++ PKGBUILD    2022-08-19 12:17:24 UTC (rev 1270023)
@@ -4,7 +4,7 @@
 
 pkgname=gerbera
 pkgver=1.11.0
-pkgrel=1
+pkgrel=2
 pkgdesc="UPnP Media Server (Based on MediaTomb)"
 arch=(x86_64)
 url="https://github.com/gerbera/gerbera";
@@ -16,17 +16,17 @@
 install=gerbera.install
 options=('emptydirs')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/gerbera/gerbera/archive/v$pkgver.tar.gz";
-       
https://github.com/gerbera/gerbera/commit/82d84ac5e62c23e717198fc7b2ef190ff95e70d1.patch
 # fmt 8 support
+       gerbera-fmt-9.0.patch
        gerbera.sysusers
        gerbera.tmpfiles)
 sha256sums=('0c13049792a28ec0e3086ba61c7f9675626a1dbadb043650a452192727418be7'
-            'a0bc6664e9c2bab50d1628b2c6560e0c8d33fdd18eb7f6763dd765fe80a6e909'
+            '6d98004cfce2a44402f4fa2e961c160a6e789309c83b804551521f1688f18e79'
             '0b55a4e1886f7aad0528446658433327815fd3f4d06e260518423f86dbe32dcc'
             '452f5d4b5661e0262cb4a48d62a54f5f26d53c6d3aebf502cde072214a8b30d8')
 
 prepare() {
        cd "${srcdir}/${pkgname}-${pkgver}"
-#      patch -Np1 -i ../82d84ac5e62c23e717198fc7b2ef190ff95e70d1.patch
+       patch -Np1 -i ../gerbera-fmt-9.0.patch
 }
 
 build() {

Added: gerbera-fmt-9.0.patch
===================================================================
--- gerbera-fmt-9.0.patch                               (rev 0)
+++ gerbera-fmt-9.0.patch       2022-08-19 12:17:24 UTC (rev 1270023)
@@ -0,0 +1,22 @@
+diff --git a/src/database/sql_format.h b/src/database/sql_format.h
+index 32dc00ef..e4e1909a 100644
+--- a/src/database/sql_format.h
++++ b/src/database/sql_format.h
+@@ -42,7 +42,7 @@ struct SQLIdentifier {
+ template <>
+ struct fmt::formatter<SQLIdentifier> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const SQLIdentifier& tn, FormatContext& ctx) -> 
decltype(ctx.out())
++    auto format(const SQLIdentifier& tn, FormatContext& ctx) const -> 
decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{}{}{}", tn.quote_begin, tn.name, 
tn.quote_end);
+     }
+@@ -61,7 +61,7 @@ struct ColumnUpdate {
+ template <>
+ struct fmt::formatter<ColumnUpdate> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const ColumnUpdate& a, FormatContext& ctx) -> 
decltype(ctx.out())
++    auto format(const ColumnUpdate& a, FormatContext& ctx) const -> 
decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{} = {}", a.column, a.value);
+     }

Reply via email to