[packages/libgav1] - up to 0.17.0, absl wants -std=c++11 aka cxx17 standard

baggins baggins at pld-linux.org
Wed Dec 1 22:41:10 CET 2021


commit 98b51385c9d24d8aaadf4af5e35e95ac63d81da3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Dec 1 22:40:25 2021 +0100

    - up to 0.17.0, absl wants -std=c++11 aka cxx17 standard

 cxx17.patch  | 13 +++++++++++++
 libgav1.spec |  8 +++++---
 2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/libgav1.spec b/libgav1.spec
index 5d8d702..e739aed 100644
--- a/libgav1.spec
+++ b/libgav1.spec
@@ -5,17 +5,18 @@
 Summary:	AV1 decoder library (10-bit)
 Summary(pl.UTF-8):	Biblioteka dekodera AV1 (10-bitowego)
 Name:		libgav1
-Version:	0.16.3
+Version:	0.17.0
 %define	gitref	ac9e35a6a5030fc8f26dcfde24ec8bc19ac12a94
-Release:	2
+Release:	1
 License:	Apache v2.0
 Group:		Libraries
 #Source0Download: https://chromium.googlesource.com/codecs/libgav1
 #Source0:	https://chromium.googlesource.com/codecs/libgav1/+archive/%{gitref}.tar.gz?/%{name}-%{version}.tar.gz
 # tarball is recreated on each download, so upload via dropin
 Source0:	%{name}-%{version}.tar.gz
-# Source0-md5:	e4147c91806c7786404ac493e67511dc
+# Source0-md5:	b4eca44acc66970b90a0465240c0d51f
 Patch0:		%{name}-system-libs.patch
+Patch1:		cxx17.patch
 URL:		https://chromium.googlesource.com/codecs/libgav1
 BuildRequires:	abseil-cpp-devel
 BuildRequires:	cmake >= 3.7.1
@@ -59,6 +60,7 @@ Statyczna biblioteka libgav1.
 %prep
 %setup -q -c
 %patch0 -p1
+%patch1 -p1
 
 %build
 install -d build
diff --git a/cxx17.patch b/cxx17.patch
new file mode 100644
index 0000000..c35d3f5
--- /dev/null
+++ b/cxx17.patch
@@ -0,0 +1,13 @@
+--- libgav1-0.17.0/CMakeLists.txt~	2021-12-01 22:30:13.000000000 +0100
++++ libgav1-0.17.0/CMakeLists.txt	2021-12-01 22:33:43.123981512 +0100
+@@ -16,8 +16,8 @@
+ cmake_minimum_required(VERSION 3.7.1 FATAL_ERROR)
+ 
+ # libgav1 requires C++11.
+-set(CMAKE_CXX_STANDARD 11)
+-set(ABSL_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
++set(ABSL_CXX_STANDARD 17)
+ 
+ project(libgav1 CXX)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libgav1.git/commitdiff/98b51385c9d24d8aaadf4af5e35e95ac63d81da3



More information about the pld-cvs-commit mailing list